Class CreationRuleBase
- Namespace
- Dynamicweb.Content.Items.Activation
- Assembly
- Dynamicweb.dll
public abstract class CreationRuleBase : CreationRule
- Inheritance
-
CreationRuleBase
- Inherited Members
Properties
CachedMetadata
Gets or sets the cached metadata.
protected MetadataContainer CachedMetadata { get; set; }
Property Value
Methods
AfterCheck(CreationRuleContext, Page, bool)
protected virtual void AfterCheck(CreationRuleContext context, Page parent, bool result)
Parameters
context
CreationRuleContextparent
Pageresult
bool
BeforeCheck(CreationRuleContext, Page)
protected virtual void BeforeCheck(CreationRuleContext context, Page parent)
Parameters
context
CreationRuleContextparent
Page
CanCreate(CreationRuleContext)
Returns value indicating whether item of can be created according to the given creation context.
public override bool CanCreate(CreationRuleContext context)
Parameters
context
CreationRuleContext- Creation context.
Returns
- bool
- Value indicating whether item of can be created according to the given creation context.
CanCreateInner(CreationRuleContext, Page)
protected abstract bool CanCreateInner(CreationRuleContext context, Page parent)
Parameters
context
CreationRuleContextparent
Page
Returns
Check<T>(ItemType, string)
protected bool Check<T>(ItemType itemType, string value) where T : CreationRule
Parameters
Returns
Type Parameters
T
CheckRuleValue(IEnumerable<string>, string)
protected virtual bool CheckRuleValue(IEnumerable<string> ruleValues, string currentValue)
Parameters
ruleValues
IEnumerable<string>currentValue
string
Returns
CheckValue<T>(ItemType, string)
[Obsolete("Use Check instead.")]
protected bool CheckValue<T>(ItemType itemType, string val) where T : CreationRule
Parameters
Returns
Type Parameters
T
GetParent(CreationRuleContext)
protected static Page GetParent(CreationRuleContext context)
Parameters
context
CreationRuleContext