Class ModuleService
- Namespace
- Dynamicweb.Modules
- Assembly
- Dynamicweb.dll
public class ModuleService : IModuleService, 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
int- Key to reset
Delete(int)
Deletes the module settings with the specified id
public void Delete(int id)
Parameters
id
int- The id of the module settings to delete
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
GetControlPanelModules()
[Obsolete("Do not use")]
public IEnumerable<Module> GetControlPanelModules()
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
GetScriptPanelModules()
[Obsolete("Do not use")]
public IEnumerable<Module> GetScriptPanelModules()
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
bool- if set to
true
[access].