Show / Hide Table of Contents

Class FunctionRightCache

Summary description for FunctionRightCache.

Inheritance
Object
CacheBase
FunctionRightCache
Implements
IDisposable
IFlushable
Inherited Members
CacheBase._lastUpdated
CacheBase._cacheState
CacheBase.IsCacheInvalidated(Int32, SqlType, Int32)
CacheBase.Dispose()
CacheBase.Validate()
CacheBase.Refresh()
CacheBase.Flush()
CacheBase.OnExpired()
CacheBase.OnRefreshed()
CacheBase.OnFlushed()
CacheBase.OnDisposed()
CacheBase.Lock
CacheBase.Name
CacheBase.CacheType
CacheBase.Timeout
CacheBase.State
CacheBase.IsValid
CacheBase.Expired
CacheBase.Refreshed
CacheBase.Flushed
CacheBase.Disposed
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
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
CacheBase.GetCachedTableNumbers()

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
CacheBase.OnFlush()

OnRefresh()

Declaration
protected override void OnRefresh()
Overrides
CacheBase.OnRefresh()

Implements

System.IDisposable
IFlushable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top