C# Class BExIS.Web.Shell.Areas.Sam.Controllers.DatasetController

Manages all funactions an authorized user can do with datasets and their versions
Inheritance: Controller
Show file Open project: BEXIS2/Core

Public Methods

Method Description
Checkin ( int id ) : System.Web.Mvc.ActionResult
Checkout ( int id ) : System.Web.Mvc.ActionResult
Delete ( long id ) : System.Web.Mvc.ActionResult

Deletes a dataset, which means the dataset is marked as deleted, but is not physically removed from the database.

When a dataset is deleted, it is consodered as non-exisiting, but for the sake or provenance, citation, history, etc, it is not removed froom the database. The function to recover a deleted dataset, will not be provided.

Index ( ) : System.Web.Mvc.ActionResult

Shows a berif intro about the functions available as well as some warnings that inofrom the user about non recoverability of some of the operations such as purge.

List ( ) : System.Web.Mvc.ActionResult

Lists all exisiting datasets alongside with their current status

Purge ( long id ) : System.Web.Mvc.ActionResult

Purges a dataset, which means the dataset and all its versions will be physically removed from the database.

This operation is not revocerable.

Rollback ( int id ) : System.Web.Mvc.ActionResult
Version ( int id ) : System.Web.Mvc.ActionResult

Shows the content of a specific dataset version

Versions ( int id ) : System.Web.Mvc.ActionResult

Having the identifier of a dataset, lists all its versions.

Method Details

Checkin() public method

public Checkin ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Checkout() public method

public Checkout ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Delete() public method

Deletes a dataset, which means the dataset is marked as deleted, but is not physically removed from the database.
When a dataset is deleted, it is consodered as non-exisiting, but for the sake or provenance, citation, history, etc, it is not removed froom the database. The function to recover a deleted dataset, will not be provided.
public Delete ( long id ) : System.Web.Mvc.ActionResult
id long the identifier of the dataset to be purged.
return System.Web.Mvc.ActionResult

Index() public method

Shows a berif intro about the functions available as well as some warnings that inofrom the user about non recoverability of some of the operations such as purge.
public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

List() public method

Lists all exisiting datasets alongside with their current status
public List ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Purge() public method

Purges a dataset, which means the dataset and all its versions will be physically removed from the database.
This operation is not revocerable.
public Purge ( long id ) : System.Web.Mvc.ActionResult
id long the identifier of the dataset to be purged.
return System.Web.Mvc.ActionResult

Rollback() public method

public Rollback ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Version() public method

Shows the content of a specific dataset version
public Version ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Versions() public method

Having the identifier of a dataset, lists all its versions.
public Versions ( int id ) : System.Web.Mvc.ActionResult
id int the identifier of the dataset.
return System.Web.Mvc.ActionResult