C# Class Sitecore.Data.Mappings.AbstractMapping

Inheritance: IMapping
Mostra file Open project: Sitecore/Sitecore.JsonDataProvider Class Usage Examples

Protected Properties

Property Type Description
Lock ReaderWriterLockSlim

Public Methods

Method Description
AcceptsNewChildrenOf ( ID itemID ) : bool
AddVersion ( ID itemID, VersionUri versionUri ) : int
ChangeFieldSharing ( ID fieldID, TemplateFieldSharing sharing ) : void
Commit ( ) : void
CopyItem ( ID sourceItemID, ID destinationItemID, ID copyID, string copyName, CallContext context ) : bool
CreateItem ( ID itemID, string itemName, ID templateID, ID parentID ) : bool
DeleteItem ( ID itemID ) : bool
GetChildIDs ( ID itemId ) : IEnumerable
GetIDs ( ) : IEnumerable
GetItemDefinition ( ID itemID ) : ItemDefinition
GetItemFields ( ID itemID, VersionUri versionUri ) : FieldList
GetItemVersions ( ID itemID ) : VersionUriList
GetLanguages ( ) : ID>>.IEnumerable
GetParentID ( ID itemID ) : ID
GetTemplateItemIDs ( ) : IEnumerable
Initialize ( ) : void
MoveItem ( ID itemID, ID targetID ) : bool
RemoveVersion ( ID itemID, VersionUri versionUri ) : bool
RemoveVersions ( ID itemID, Language language ) : bool
ResolveNames ( string itemName ) : IEnumerable
ResolvePath ( string path, CallContext context ) : IEnumerable
SaveItem ( ID itemID, ItemChanges changes ) : bool

Protected Methods

Method Description
AbstractMapping ( [ mappingElement, [ databaseName ) : System
DoCopy ( ID sourceItemID, ID destinationItemID, ID copyID, string copyName, CallContext context ) : JsonItem
DoDeleteItem ( [ item ) : void
IgnoreItem ( [ item ) : bool
InitializeItemTree ( [ item ) : void

Private Methods

Method Description
ChangeFieldSharingToShared ( [ item, [ fieldID ) : void
ChangeFieldSharingToUnversioned ( [ item, [ fieldID ) : void
ChangeFieldSharingToVersioned ( [ item, [ fieldID ) : void
DeleteItemTreeFromItemsCache ( [ item ) : void
GetItem ( [ itemID ) : JsonItem
GetItemRaw ( [ itemID ) : JsonItem
ResolvePath ( [ children, [ words, int index ) : IEnumerable

Method Details

AbstractMapping() protected method

protected AbstractMapping ( [ mappingElement, [ databaseName ) : System
mappingElement [
databaseName [
return System

AcceptsNewChildrenOf() public abstract method

public abstract AcceptsNewChildrenOf ( ID itemID ) : bool
itemID ID
return bool

AddVersion() public method

public AddVersion ( ID itemID, VersionUri versionUri ) : int
itemID ID
versionUri VersionUri
return int

ChangeFieldSharing() public method

public ChangeFieldSharing ( ID fieldID, TemplateFieldSharing sharing ) : void
fieldID ID
sharing TemplateFieldSharing
return void

Commit() public abstract method

public abstract Commit ( ) : void
return void

CopyItem() public abstract method

public abstract CopyItem ( ID sourceItemID, ID destinationItemID, ID copyID, string copyName, CallContext context ) : bool
sourceItemID ID
destinationItemID ID
copyID ID
copyName string
context CallContext
return bool

CreateItem() public abstract method

public abstract CreateItem ( ID itemID, string itemName, ID templateID, ID parentID ) : bool
itemID ID
itemName string
templateID ID
parentID ID
return bool

DeleteItem() public method

public DeleteItem ( ID itemID ) : bool
itemID ID
return bool

DoCopy() protected method

protected DoCopy ( ID sourceItemID, ID destinationItemID, ID copyID, string copyName, CallContext context ) : JsonItem
sourceItemID ID
destinationItemID ID
copyID ID
copyName string
context CallContext
return Sitecore.Data.Items.JsonItem

DoDeleteItem() protected abstract method

protected abstract DoDeleteItem ( [ item ) : void
item [
return void

GetChildIDs() public abstract method

public abstract GetChildIDs ( ID itemId ) : IEnumerable
itemId ID
return IEnumerable

GetIDs() public method

public GetIDs ( ) : IEnumerable
return IEnumerable

GetItemDefinition() public method

public GetItemDefinition ( ID itemID ) : ItemDefinition
itemID ID
return ItemDefinition

GetItemFields() public method

public GetItemFields ( ID itemID, VersionUri versionUri ) : FieldList
itemID ID
versionUri VersionUri
return FieldList

GetItemVersions() public method

public GetItemVersions ( ID itemID ) : VersionUriList
itemID ID
return VersionUriList

GetLanguages() public method

public GetLanguages ( ) : ID>>.IEnumerable
return ID>>.IEnumerable

GetParentID() public method

public GetParentID ( ID itemID ) : ID
itemID ID
return ID

GetTemplateItemIDs() public method

public GetTemplateItemIDs ( ) : IEnumerable
return IEnumerable

IgnoreItem() protected abstract method

protected abstract IgnoreItem ( [ item ) : bool
item [
return bool

Initialize() public abstract method

public abstract Initialize ( ) : void
return void

InitializeItemTree() protected method

protected InitializeItemTree ( [ item ) : void
item [
return void

MoveItem() public abstract method

public abstract MoveItem ( ID itemID, ID targetID ) : bool
itemID ID
targetID ID
return bool

RemoveVersion() public method

public RemoveVersion ( ID itemID, VersionUri versionUri ) : bool
itemID ID
versionUri VersionUri
return bool

RemoveVersions() public method

public RemoveVersions ( ID itemID, Language language ) : bool
itemID ID
language Language
return bool

ResolveNames() public method

public ResolveNames ( string itemName ) : IEnumerable
itemName string
return IEnumerable

ResolvePath() public method

public ResolvePath ( string path, CallContext context ) : IEnumerable
path string
context CallContext
return IEnumerable

SaveItem() public method

public SaveItem ( ID itemID, ItemChanges changes ) : bool
itemID ID
changes ItemChanges
return bool

Property Details

Lock protected_oe property

protected ReaderWriterLockSlim Lock
return ReaderWriterLockSlim