Class ModuleService
- Namespace
- Dynamicweb.Modules
- Assembly
- Dynamicweb.dll
public class ModuleService : ICacheStorage<int, Module>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
ModuleService
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
key
intKey to reset
Delete(int)
public void Delete(int id)
Parameters
id
int
Get(int)
public Module Get(int id)
Parameters
id
int
Returns
GetBySystemName(string)
public Module GetBySystemName(string moduleSystemName)
Parameters
moduleSystemName
string
Returns
GetContentModules()
public IEnumerable<Module> GetContentModules()
Returns
GetDisabledModules()
public IEnumerable<Module> GetDisabledModules()
Returns
GetEnabledModules()
public IEnumerable<Module> GetEnabledModules()
Returns
GetModules()
public IEnumerable<Module> GetModules()
Returns
GetModulesBySystemNames(IEnumerable<string>)
public IEnumerable<Module> GetModulesBySystemNames(IEnumerable<string> moduleSystemNames)
Parameters
moduleSystemNames
IEnumerable<string>
Returns
GetNonHiddenModules()
public IEnumerable<Module> GetNonHiddenModules()
Returns
GetSearchModules()
public IEnumerable<Module> GetSearchModules()
Returns
Save(Module)
public Module Save(Module m)
Parameters
m
Module
Returns
UpdateModuleAccess(IEnumerable<string>, bool)
Updates the module access.
public void UpdateModuleAccess(IEnumerable<string> moduleSystemNames, bool access)
Parameters
moduleSystemNames
IEnumerable<string>The modules.
access
boolif set to
true
[access].