Show / Hide Table of Contents

Class EjCategoryCache

Cache holding information about the ejcategories and category memberships

Inheritance
Object
CacheBase
EjCategoryCache
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 EjCategoryCache : 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 EjCategoryCache GetCurrent()
Returns
Type Description
EjCategoryCache

GetFlags(Int32)

Get the access level for an ejCategory

Declaration
public int GetFlags(int ejCategoryId)
Parameters
Type Name Description
Int32 ejCategoryId
Returns
Type Description
Int32

GetOwnCategoriesFromEjUserId(Int32)

Get the categories that the given userId is a member of

Declaration
public int[] GetOwnCategoriesFromEjUserId(int ejUserId)
Parameters
Type Name Description
Int32 ejUserId
Returns
Type Description
Int32[]

IsMemberOfCategory(Int32, Int32)

Check if the ejuser is member of a given ejCategory.

Declaration
public bool IsMemberOfCategory(int ejCategoryId, int ejUserId)
Parameters
Type Name Description
Int32 ejCategoryId
Int32 ejUserId
Returns
Type Description
Boolean

IsMemberOrMasterOfCategory(Int32, Int32)

Check if the ejuser is member or master of a given ejCategory.

Declaration
public bool IsMemberOrMasterOfCategory(int ejCategoryId, int ejUserId)
Parameters
Type Name Description
Int32 ejCategoryId
Int32 ejUserId
Returns
Type Description
Boolean

OnFlush()

Handle flushing of the cache.

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

OnRefresh()

Handle refreshing the cache.

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