Table of Contents

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

MetadataContainer

Methods

AfterCheck(CreationRuleContext, Page, bool)

protected virtual void AfterCheck(CreationRuleContext context, Page parent, bool result)

Parameters

context CreationRuleContext
parent Page
result bool

BeforeCheck(CreationRuleContext, Page)

protected virtual void BeforeCheck(CreationRuleContext context, Page parent)

Parameters

context CreationRuleContext
parent 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 CreationRuleContext
parent Page

Returns

bool

Check<T>(ItemType, string)

protected bool Check<T>(ItemType itemType, string value) where T : CreationRule

Parameters

itemType ItemType
value string

Returns

bool

Type Parameters

T

CheckRuleValue(IEnumerable<string>, string)

protected virtual bool CheckRuleValue(IEnumerable<string> ruleValues, string currentValue)

Parameters

ruleValues IEnumerable<string>
currentValue string

Returns

bool

CheckValue<T>(ItemType, string)

[Obsolete("Use Check instead.")]
protected bool CheckValue<T>(ItemType itemType, string val) where T : CreationRule

Parameters

itemType ItemType
val string

Returns

bool

Type Parameters

T

GetParent(CreationRuleContext)

protected static Page GetParent(CreationRuleContext context)

Parameters

context CreationRuleContext

Returns

Page
To top