Class EjCategoryCache
Cache holding information about the ejcategories and category memberships
Inheritance
System.Object
EjCategoryCache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class EjCategoryCache : CacheBaseV2, IFlushableV2, IDisposable
Constructors
EjCategoryCache()
Declaration
Properties
TableNames
Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
Methods
GetCategoriesUserIsMasterOf(Int32)
Get the categories that the given userId is master of
Declaration
public int[] GetCategoriesUserIsMasterOf(int ejUserId)
Parameters
Type |
Name |
Description |
System.Int32 |
ejUserId |
|
Returns
Type |
Description |
System.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 |
System.Int32 |
ejUserId |
|
Returns
Type |
Description |
System.Int32[] |
|
GetCurrent()
Declaration
public static EjCategoryCache GetCurrent()
Returns
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 |
System.Int32 |
ejCategoryId |
|
Returns
Type |
Description |
System.Int32 |
|
GetFlags(Int32)
Get the access level for an ejCategory
Declaration
public int GetFlags(int ejCategoryId)
Parameters
Type |
Name |
Description |
System.Int32 |
ejCategoryId |
|
Returns
Type |
Description |
System.Int32 |
|
GetOwnCategoriesFromEjUserId(Int32)
Get the categories that the given userId is a member of
Declaration
public int[] GetOwnCategoriesFromEjUserId(int ejUserId)
Parameters
Type |
Name |
Description |
System.Int32 |
ejUserId |
|
Returns
Type |
Description |
System.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 |
System.Int32 |
ejCategoryId |
|
System.Int32 |
ejUserId |
|
Returns
Type |
Description |
System.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 |
System.Int32 |
ejCategoryId |
|
System.Int32 |
ejUserId |
|
Returns
Type |
Description |
System.Boolean |
|
OnLoad()
Declaration
protected override void OnLoad()
Overrides
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)