C# Class formulate.app.Persistence.Internal.JsonDataValuePersistence

Handles persistence of data values to JSON on the file system.
Inheritance: IDataValuePersistence
Mostrar archivo Open project: rhythmagency/formulate

Private Properties

Property Type Description

Public Methods

Method Description
Delete ( System.Guid dataValueId ) : void

Deletes the specified data value.

Delete ( string dataValueAlias ) : void

Deletes the data value with the specified alias.

JsonDataValuePersistence ( ) : System

Default constructor.

Persist ( DataValue dataValue ) : void

Persists a data value to the file system.

Retrieve ( System.Guid dataValueId ) : DataValue

Gets the data value with the specified ID.

Retrieve ( string dataValueAlias ) : DataValue

Gets the data value with the specified alias.

RetrieveChildren ( System.Guid parentId ) : IEnumerable

Gets all the data values that are the children of the folder with the specified ID.

You can specify a parent ID of null to get the root data values.

Method Details

Delete() public method

Deletes the specified data value.
public Delete ( System.Guid dataValueId ) : void
dataValueId System.Guid The ID of the data value to delete.
return void

Delete() public method

Deletes the data value with the specified alias.
public Delete ( string dataValueAlias ) : void
dataValueAlias string /// The alias of the data value to delete. ///
return void

JsonDataValuePersistence() public method

Default constructor.
public JsonDataValuePersistence ( ) : System
return System

Persist() public method

Persists a data value to the file system.
public Persist ( DataValue dataValue ) : void
dataValue DataValue The data value to persist.
return void

Retrieve() public method

Gets the data value with the specified ID.
public Retrieve ( System.Guid dataValueId ) : DataValue
dataValueId System.Guid /// The ID of the data value. ///
return DataValue

Retrieve() public method

Gets the data value with the specified alias.
public Retrieve ( string dataValueAlias ) : DataValue
dataValueAlias string The alias of the data value.
return DataValue

RetrieveChildren() public method

Gets all the data values that are the children of the folder with the specified ID.
You can specify a parent ID of null to get the root data values.
public RetrieveChildren ( System.Guid parentId ) : IEnumerable
parentId System.Guid The parent ID.
return IEnumerable