C# Class Unicorn.SerializationLoader

Custom loader that processes serialization loading with progress and additional rules options
Datei anzeigen Open project: connectivedx/Unicorn

Public Methods

Method Description
LoadTree ( AdvancedLoadOptions options ) : void

Loads a preset from serialized items on disk.

Private Methods

Method Description
DeleteItem ( System.Item item, IProgressStatus progress ) : bool

Deletes an item from Sitecore

DeleteItems ( IEnumerable items, IProgressStatus progress ) : bool

Deletes a list of items. Ensures that obsolete cache data is also removed.

DeserializationFinished ( string databaseName ) : void

Raises the "serialization finished" event.

DoLoadItem ( string path, AdvancedLoadOptions options, ItemLoadResult &loadResult ) : System.Item

Loads a specific item from disk

DoLoadTree ( string path, AdvancedLoadOptions options ) : void

Loads a specific path recursively, using any exclusions in the options' preset

GetTargetDatabase ( string path, LoadOptions options ) : string
IsStandardValuesItem ( string fileName, ID &itemId ) : bool

Determines whether [is standard values item] [the specified file name].

LoadOneLevel ( string path, AdvancedLoadOptions options, List retryList ) : void

Loads a set of children from a serialized path

LoadTreePaths ( string physicalPath, AdvancedLoadOptions options ) : void
LoadTreeRecursive ( string path, AdvancedLoadOptions options, List retryList ) : void

Recursive method that loads a given tree and retries failures already present if any

LogLocalized ( string message ) : void

Logs localized strings.

LogLocalizedError ( string message ) : void

Logs localized strings.

ShouldForceUpdate ( SyncItem syncItem, IProgressStatus progress ) : bool

Checks to see if we should force an item to be written from the serialized version. This changes the rules slightly from the default deserializer by forcing if the dates are different instead of only if they are newer on disk.

Method Details

LoadTree() public method

Loads a preset from serialized items on disk.
public LoadTree ( AdvancedLoadOptions options ) : void
options AdvancedLoadOptions
return void