Show / Hide Table of Contents

Class EjCategoryCache

Cache holding information about the ejcategories and category memberships

Inheritance
Object
CacheBaseV2
EjCategoryCache
Implements
IFlushableV2
IDisposable
Inherited Members
CacheBaseV2.IsCacheInvalidated(String, Int32, PrivateSave)
CacheBaseV2.Dispose()
CacheBaseV2.Flush()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.GetCurrent<T>()
CacheBaseV2.Load()
CacheBaseV2.Disposed
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class EjCategoryCache : CacheBaseV2, IFlushableV2, IDisposable

Constructors

EjCategoryCache()

Cache holding information about the ejcategories and category memberships

Declaration
public EjCategoryCache()

Properties

TableNames

Cache holding information about the ejcategories and category memberships

Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type Description
IEnumerable<String>
Overrides
CacheBaseV2.TableNames

Methods

GetCategoriesUserIsMasterOf(Int32)

Get the categories that the given userId is master of

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

GetCategoriesUserIsMemberOrMasterOf(Int32)

Get the categories that the given userId is member or master of

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

GetCurrent()

Cache holding information about the ejcategories and category memberships

Declaration
public static EjCategoryCache GetCurrent()
Returns
Type Description
EjCategoryCache

GetEffectiveReplyTemplateId(Int32)

Get the ReplyTemplate Id, taking into account any 'apply to subcategories' flag in the parent chain

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

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

OnLoad()

Cache holding information about the ejcategories and category memberships

Declaration
protected override void OnLoad()
Overrides
CacheBaseV2.OnLoad()

RestrictedCategories(Int32)

Get the categories that the given userId is restricted out of

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

Implements

IFlushableV2
System.IDisposable

Extension Methods

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