Table of Contents

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

Module

GetBySystemName(string)

public Module GetBySystemName(string moduleSystemName)

Parameters

moduleSystemName string

Returns

Module

GetContentModules()

public IEnumerable<Module> GetContentModules()

Returns

IEnumerable<Module>

GetControlPanelModules()

[Obsolete("Do not use")]
public IEnumerable<Module> GetControlPanelModules()

Returns

IEnumerable<Module>

GetDisabledModules()

public IEnumerable<Module> GetDisabledModules()

Returns

IEnumerable<Module>

GetEnabledModules()

public IEnumerable<Module> GetEnabledModules()

Returns

IEnumerable<Module>

GetModules()

public IEnumerable<Module> GetModules()

Returns

IEnumerable<Module>

GetModulesBySystemNames(IEnumerable<string>)

public IEnumerable<Module> GetModulesBySystemNames(IEnumerable<string> moduleSystemNames)

Parameters

moduleSystemNames IEnumerable<string>

Returns

IEnumerable<Module>

GetNonHiddenModules()

public IEnumerable<Module> GetNonHiddenModules()

Returns

IEnumerable<Module>

GetScriptPanelModules()

[Obsolete("Do not use")]
public IEnumerable<Module> GetScriptPanelModules()

Returns

IEnumerable<Module>

GetSearchModules()

public IEnumerable<Module> GetSearchModules()

Returns

IEnumerable<Module>

Save(Module)

public Module Save(Module m)

Parameters

m Module

Returns

Module

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].
To top