N2CMS

Classes | Enumerations

Package N2.Integrity

Classes

class  AllowedChildrenAttribute
 A class decoration used to define which items are allowed below this item. When this attribute intersects with RestrictParentsAttribute, the union of these two are considered to be allowed. More...
class  AllowedZonesAttribute
 Class decoration that lets N2 which zones a data item can be added to. This is mostly a hint for the user interface. Placing an item in a zone. More...
class  AvailableZoneAttribute
 Class decoration that lets N2 know that a class has zones where to which data items can be bound (ZoneName). More...
class  CannotDeleteRootException
 Exception thrown when an attempt to remove the root item is made. More...
class  DestinationOnOrBelowItselfException
 Exception thrown when an attempt to move an item onto or below itself is made. More...
interface  IIntegrityEnforcer
interface  IIntegrityManager
 Classes implementing this interface are responsible of the integrity between content items in a N2 cms systems. This probably involves checking which items may be placed below which and ensuring that no items are placed below themselves. More...
class  IntegrityEnforcer
 Subscribes to persister envents and throws exceptions if something illegal is about to be done. More...
class  IntegrityManager
class  IntegrityMappingAttribute
 Attribute used to map allowed children to an item type. This attribute is useful in scenarios where you can't change the item definitions, e.g. if they are defined in an external assembly. More...
class  NameOccupiedException
class  RestrictChildrenAttribute
 This attribute replace the children allowed with the types. More...
class  RestrictParentsAttribute
 A class decoration used to restrict which items may be placed under which. When this attribute intersects with AllowedChildrenAttribute, the union of these two are considered to be allowed. More...
class  TypeIntegrityAttribute
 Base class for attributes used to restrict which types can be created below which. More...
class  AllowedParentsAttribute
 A class decoration used to restrict which items may be placed under which. When this attribute intersects with AllowedChildrenAttribute, the union of these two are considered to be allowed. More...

Enumerations

enum  AllowedTypes { All, None }
enum  AllowedZones { All, AllNamed, SpecifiedZones, None }
 

Determines which zones an item is allowed to exist in.

More...
enum  IntegrityMappingOption { AddToExising, RemoveOthers }
 

Flag used to control how types defined by the IntegrityMappingAttribute are added to item definitions.

More...

Enumeration Type Documentation

Enumerator:
All 
None 

Definition at line 3 of file AllowedTypes.cs.

Determines which zones an item is allowed to exist in.

Enumerator:
All 

The item may be added to a zone with any name.

AllNamed 

The item may be added to zones with a name but not without zones.

SpecifiedZones 

Allowed in the specified zones. This is the default setting.

None 

The item is not allowed to be placed in a zone.

Definition at line 6 of file AllowedZones.cs.

Flag used to control how types defined by the IntegrityMappingAttribute are added to item definitions.

Enumerator:
AddToExising 

Add defined types to existing ones.

RemoveOthers 

Add defined types to existing ones and remove existing types not fullfilling defined types.

Definition at line 7 of file IntegrityMappingOption.cs.