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

Handles persistence of configured forms to JSON on the file system.
Inheritance: IConfiguredFormPersistence
Mostra file Open project: rhythmagency/formulate

Private Properties

Property Type Description

Public Methods

Method Description
Delete ( System.Guid configuredFormId ) : void

Deletes the specified configured form.

Delete ( string configuredFormAlias ) : void

Deletes the configured form with the specified alias.

JsonConfiguredFormPersistence ( ) : System

Default constructor.

Persist ( ConfiguredForm configuredForm ) : void

Persists a configured form to the file system.

Retrieve ( System.Guid configuredFormId ) : ConfiguredForm

Gets the configured form with the specified ID.

Retrieve ( string configuredFormAlias ) : ConfiguredForm

Gets the configured form with the specified alias.

RetrieveChildren ( System.Guid parentId ) : IEnumerable

Gets all the configured forms that are the children of the folder with the specified ID.

Method Details

Delete() public method

Deletes the specified configured form.
public Delete ( System.Guid configuredFormId ) : void
configuredFormId System.Guid The ID of the configured form to delete.
return void

Delete() public method

Deletes the configured form with the specified alias.
public Delete ( string configuredFormAlias ) : void
configuredFormAlias string The alias of the configured form to delete.
return void

JsonConfiguredFormPersistence() public method

Default constructor.
public JsonConfiguredFormPersistence ( ) : System
return System

Persist() public method

Persists a configured form to the file system.
public Persist ( ConfiguredForm configuredForm ) : void
configuredForm ConfiguredForm The configured form to persist.
return void

Retrieve() public method

Gets the configured form with the specified ID.
public Retrieve ( System.Guid configuredFormId ) : ConfiguredForm
configuredFormId System.Guid The ID of the configured form.
return ConfiguredForm

Retrieve() public method

Gets the configured form with the specified alias.
public Retrieve ( string configuredFormAlias ) : ConfiguredForm
configuredFormAlias string The alias of the configured form.
return ConfiguredForm

RetrieveChildren() public method

Gets all the configured forms that are the children of the folder with the specified ID.
public RetrieveChildren ( System.Guid parentId ) : IEnumerable
parentId System.Guid The parent ID.
return IEnumerable