Interface PathAdminSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface PathAdminSession extends OsidSession

This session creates, updates, and deletes Paths . The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a Path , a PathForm is requested using gePathFormForCreate() specifying desired record Types or none if no record Types are needed. The returned PathForm will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once the PathForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each PathForm corresponds to an attempted transaction.

For updates, PathForms are requested to the Path Id that is to be updated using getPathFormForUpdate() . Similarly, the PathForm has metadata about the data that can be updated and it can perform validation before submitting the update. The PathForm can only be used once for a successful update and cannot be reused.

The delete operations delete Paths . To unmap a Path from the current Graph , the PathGraphAssignmentSession should be used. These delete operations attempt to remove the Path itself thus removing it from all known Graph catalogs.

This session includes an Id aliasing mechanism to assign an external Id to an internally assigned Id.