C# Class Orchard.Modules.Services.ModuleService

Inheritance: IModuleService
Mostrar archivo Open project: ucdavis/Orchard

Public Methods

Method Description
DisableFeatures ( IEnumerable featureIds ) : void

Disables a list of features.

DisableFeatures ( IEnumerable featureIds, bool force ) : void

Disables a list of features.

EnableFeatures ( IEnumerable featureIds ) : void

Enables a list of features.

EnableFeatures ( IEnumerable featureIds, bool force ) : void

Enables a list of features.

GetAvailableFeatures ( ) : IEnumerable

Retrieves an enumeration of the available features together with its state (enabled / disabled).

IsRecentlyInstalled ( Orchard.Environment.Extensions.Models.ExtensionDescriptor extensionDescriptor ) : bool

Determines if a module was recently installed by using the project's last written time.

ModuleService ( IFeatureManager featureManager, IOrchardServices orchardServices, IVirtualPathProvider virtualPathProvider, IExtensionManager extensionManager, IShellDescriptorManager shellDescriptorManager, ICacheManager cacheManager ) : System

Private Methods

Method Description
AssembleModuleFromDescriptor ( Orchard.Environment.Extensions.Models.Feature feature, bool isEnabled ) : ModuleFeature
GenerateWarning ( string messageFormat, string featureName, IEnumerable featuresInQuestion ) : void
GetManifestPath ( Orchard.Environment.Extensions.Models.ExtensionDescriptor extensionDescriptor ) : string

Retrieves the full path of the manifest file for a module's extension descriptor.

Method Details

DisableFeatures() public method

Disables a list of features.
public DisableFeatures ( IEnumerable featureIds ) : void
featureIds IEnumerable The IDs for the features to be disabled.
return void

DisableFeatures() public method

Disables a list of features.
public DisableFeatures ( IEnumerable featureIds, bool force ) : void
featureIds IEnumerable The IDs for the features to be disabled.
force bool Boolean parameter indicating if the feature should disable the features which depend on it if required or fail otherwise.
return void

EnableFeatures() public method

Enables a list of features.
public EnableFeatures ( IEnumerable featureIds ) : void
featureIds IEnumerable The IDs for the features to be enabled.
return void

EnableFeatures() public method

Enables a list of features.
public EnableFeatures ( IEnumerable featureIds, bool force ) : void
featureIds IEnumerable The IDs for the features to be enabled.
force bool Boolean parameter indicating if the feature should enable it's dependencies if required or fail otherwise.
return void

GetAvailableFeatures() public method

Retrieves an enumeration of the available features together with its state (enabled / disabled).
public GetAvailableFeatures ( ) : IEnumerable
return IEnumerable

IsRecentlyInstalled() public method

Determines if a module was recently installed by using the project's last written time.
public IsRecentlyInstalled ( Orchard.Environment.Extensions.Models.ExtensionDescriptor extensionDescriptor ) : bool
extensionDescriptor Orchard.Environment.Extensions.Models.ExtensionDescriptor The extension descriptor.
return bool

ModuleService() public method

public ModuleService ( IFeatureManager featureManager, IOrchardServices orchardServices, IVirtualPathProvider virtualPathProvider, IExtensionManager extensionManager, IShellDescriptorManager shellDescriptorManager, ICacheManager cacheManager ) : System
featureManager IFeatureManager
orchardServices IOrchardServices
virtualPathProvider IVirtualPathProvider
extensionManager IExtensionManager
shellDescriptorManager IShellDescriptorManager
cacheManager ICacheManager
return System