Class EjCategoryCache
Cache holding information about the ejcategories and category memberships
Inheritance
EjCategoryCache
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
Properties
TableNames
Gets the names of the table data that are cached in this cache. When these tables are updated
the cache will be disposed so a new cache instance can take its place.
Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Overrides
Methods
GetCategoriesUserIsMasterOf(int)
Get the categories that the given userId is master of
Declaration
public int[] GetCategoriesUserIsMasterOf(int ejUserId)
Parameters
Type |
Name |
Description |
int |
ejUserId |
|
Returns
GetCategoriesUserIsMemberOrMasterOf(int)
Get the categories that the given userId is member or master of
Declaration
public int[] GetCategoriesUserIsMemberOrMasterOf(int ejUserId)
Parameters
Type |
Name |
Description |
int |
ejUserId |
|
Returns
GetCurrent()
Cache holding information about the ejcategories and category memberships
Declaration
public static EjCategoryCache GetCurrent()
Returns
GetEffectiveReplyTemplateId(int)
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 |
int |
ejCategoryId |
|
Returns
GetFlags(int)
Get the access level for an ejCategory
Declaration
public int GetFlags(int ejCategoryId)
Parameters
Type |
Name |
Description |
int |
ejCategoryId |
|
Returns
GetOwnCategoriesFromEjUserId(int)
Get the categories that the given userId is a member of
Declaration
public int[] GetOwnCategoriesFromEjUserId(int ejUserId)
Parameters
Type |
Name |
Description |
int |
ejUserId |
|
Returns
IsMemberOfCategory(int, int)
Check if the ejuser is member of a given ejCategory
Declaration
public bool IsMemberOfCategory(int ejCategoryId, int ejUserId)
Parameters
Type |
Name |
Description |
int |
ejCategoryId |
|
int |
ejUserId |
|
Returns
IsMemberOrMasterOfCategory(int, int)
Check if the ejuser is member or master of a given ejCategory
Declaration
public bool IsMemberOrMasterOfCategory(int ejCategoryId, int ejUserId)
Parameters
Type |
Name |
Description |
int |
ejCategoryId |
|
int |
ejUserId |
|
Returns
OnLoad()
Cache holding information about the ejcategories and category memberships
Declaration
protected override void OnLoad()
Overrides
Implements
Extension Methods