Class ActivationManager
- Namespace
- Dynamicweb.Content.Items.Activation
- Assembly
- Dynamicweb.dll
Represents an activation manager. This class cannot be inherited.
public sealed class ActivationManager
- Inheritance
-
ActivationManager
- Inherited Members
Properties
Current
Gets the current instance of the activation manager.
public static ActivationManager Current { get; }
Property Value
Methods
CreateRule(Type)
Creates an instance of the specified creation rule.
public CreationRule CreateRule(Type ruleType)
Parameters
ruleType
TypeRule type.
Returns
- CreationRule
An instance of the specified creation rule.
CreateRule<T>()
Creates an instance of the specified creation rule.
public T CreateRule<T>() where T : CreationRule
Returns
- T
An instance of the specified creation rule.
Type Parameters
T
Rule type.
GetAllowedChildTypes(CreationRuleContext)
Get structure type that can be created as child of specified item.
public IEnumerable<ChildRestrictionType> GetAllowedChildTypes(CreationRuleContext context)
Parameters
context
CreationRuleContext
Returns
- IEnumerable<ChildRestrictionType>
Returns structure type that can be created as child of specified item.
GetAllowedChildTypes(ItemType)
Get structure type that can be created as child of specified item.
public IEnumerable<ChildRestrictionType> GetAllowedChildTypes(ItemType item)
Parameters
item
ItemType
Returns
- IEnumerable<ChildRestrictionType>
Returns structure type that can be created as child of specified item.
GetAllowedItems(CreationRuleContext)
Returns value indicating whether items can be created according to the given creation rule context.
public IEnumerable<ItemType> GetAllowedItems(CreationRuleContext context)
Parameters
context
CreationRuleContextCreation rule context.
Returns
- IEnumerable<ItemType>
Value indicating whether items can be created according to the given creation rule context.
GetAllowedItems(CreationRuleContext, IEnumerable<Type>)
Returns value indicating whether items can be created according to the given rules and context.
public IEnumerable<ItemType> GetAllowedItems(CreationRuleContext context, IEnumerable<Type> ruleTypes)
Parameters
context
CreationRuleContextCreation rule context.
ruleTypes
IEnumerable<Type>List of creation rule types.
Returns
GetAllowedItemsByStructureType(StructureContextType)
Get items that can be created on specified StructureContextType (page/paragraph/ItemList etc.)
public IEnumerable<ItemType> GetAllowedItemsByStructureType(StructureContextType structureType)
Parameters
structureType
StructureContextTypeStructure context type.
Returns
- IEnumerable<ItemType>
Returns items that can be created on specified StructureContextType.
GetAllowedItemsByStructureTypes(IEnumerable<StructureContextType>)
Get items that can be created on specified StructureContextType (page/paragraph/ItemList etc.)
public IEnumerable<ItemType> GetAllowedItemsByStructureTypes(IEnumerable<StructureContextType> structureTypes)
Parameters
structureTypes
IEnumerable<StructureContextType>
Returns
- IEnumerable<ItemType>
Returns items that can be created on specified StructureContextType.
GetAllowedItemsForArea(Area)
Get items that can be created on specified area.
public IEnumerable<ItemType> GetAllowedItemsForArea(Area area)
Parameters
area
Area
Returns
- IEnumerable<ItemType>
Returns items that can be created on specified area.
GetAllowedItemsForArea(int)
Get items that can be created on specified area.
public IEnumerable<ItemType> GetAllowedItemsForArea(int areaId)
Parameters
areaId
int
Returns
- IEnumerable<ItemType>
Returns items that can be created on specified area.
GetAllowedItemsForPagesAndParagraphs()
Get items that can be created on page or paragraph.
public IEnumerable<ItemType> GetAllowedItemsForPagesAndParagraphs()
Returns
- IEnumerable<ItemType>
Returns items that can be created on page or paragraph.
GetAllowedItemsForUser()
Get items that can be created on user.
public IEnumerable<ItemType> GetAllowedItemsForUser()
Returns
- IEnumerable<ItemType>
Returns items that can be created on user.
GetAllowedItemsForUserGroup()
Get items that can be created on user group.
public IEnumerable<ItemType> GetAllowedItemsForUserGroup()
Returns
- IEnumerable<ItemType>
Returns items that can be created on user group.
GetRuleName(CreationRule)
Gets the user-friendly name of the given creation rule.
public string GetRuleName(CreationRule rule)
Parameters
rule
CreationRuleCreation rule.
Returns
- string
The user-friendly name of the creation rule.
GetRuleName(Type)
Gets the user-friendly name of the given creation rule.
public string GetRuleName(Type ruleType)
Parameters
ruleType
TypeRule type.
Returns
- string
The user-friendly name of the creation rule.
GetRuleSortIndex(Type)
Gets the sort index of the given creation rule.
public int GetRuleSortIndex(Type ruleType)
Parameters
ruleType
TypeRule type.
Returns
- int
The sort index of the given creation rule.
Remarks
It's only for editor rendering.
GetRuleTypes()
Returns all creation rule types.
public IEnumerable<Type> GetRuleTypes()
Returns
- IEnumerable<Type>
All creation rule types.
GetRuleTypes(string)
Returns all creation rule types for specified target.
public IEnumerable<Type> GetRuleTypes(string target)
Parameters
target
string
Returns
- IEnumerable<Type>
All creation rule types for specified target.