Class FunctionRightCache
Summary description for FunctionRightCache.
Inherited Members
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public class FunctionRightCache : CacheBase, IDisposable, IFlushable
Methods
GetCachedTableNumbers()
Declaration
public override int[] GetCachedTableNumbers()
Returns
Type | Description |
---|---|
Int32[] |
Overrides
GetCurrent()
Obtain an instance of the cache
Declaration
public static FunctionRightCache GetCurrent()
Returns
Type | Description |
---|---|
FunctionRightCache |
GetFunctionRightNameById(Int32)
Get the functional right identified by the primary key.
Declaration
public string GetFunctionRightNameById(int functionRightId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | functionRightId |
Returns
Type | Description |
---|---|
String | The function right name if found; null if it does not exist. |
GetFunctionRights()
Get the functional rights for the currently logged on user.
Declaration
public string[] GetFunctionRights()
Returns
Type | Description |
---|---|
String[] | Array with the list of the names for all the rights. |
GetFunctionRights(Int32)
Get the functional rights for the roler.
Declaration
public string[] GetFunctionRights(int roleId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | roleId | Id of the role. |
Returns
Type | Description |
---|---|
String[] | Array with the list of the names for all the rights. |
GetRoleType(Int32)
Return the role type based on the role id. Role Type maps to UserType.
Declaration
public RoleType GetRoleType(int roleId)
Parameters
Type | Name | Description |
---|---|---|
Int32 | roleId | primary key |
Returns
Type | Description |
---|---|
RoleType | Assoc/ System / Anon / Extern |
HasFunctionRight(String)
Check if the logged on user has the given right.
Declaration
public bool HasFunctionRight(string functionRight)
Parameters
Type | Name | Description |
---|---|---|
String | functionRight | Name of the right like 'amin-all'. |
Returns
Type | Description |
---|---|
Boolean | True if the logged on user has the functional right. |
HasFunctionRight(String, Int32)
Does the given role have the given right
Declaration
public bool HasFunctionRight(string functionRight, int roleId)
Parameters
Type | Name | Description |
---|---|---|
String | functionRight | Name of the right like 'amin-all'. |
Int32 | roleId | Id of the role. |
Returns
Type | Description |
---|---|
Boolean | True if the role has the functional right. |
OnFlush()
Declaration
protected override void OnFlush()
Overrides
OnRefresh()
Declaration
protected override void OnRefresh()