Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Design DocumentVersioningObsolete Pages
Back to Main Page > Specification > Versioning
OBSOLETE PAGE
The version store is responsible for the storage and retrieval of version information.
The API is internal and should be simple. It must wrap the underlying version storage implementation to allow its subsitution without distruption to the rest of the system.
VersionHistory getVersionHistory(wsid, node);
Description:
Gets a node of type VersionHistory that contains the version tree for the node specified.
Parameters:
Result:
Node of type VersionHistory containing the version tree for the node specified.
Exception cases:
Node get(wsid, version_id);
Description:
Gets the node representing the state of the object associated with the version id specified.
Parameters:
Result:
A node representing the state of the object associated with the version specified.
Exception cases:
Version put(wsid, node, description=null);
Version[] put(wsid, node_list, description=null);
Description:
Places a new version in the version store based on the state of the passed node(s). The predessor node is implied by the node's current version and content is taken from the node.
Parameters:
Result:
Node(s) of type Version representing the data relating to the newly created version.
Exception cases:
Version getInfo(wsid, version_id);
Description:
Gets the information held about a version. This is retrived a node of type Version that contains the version data.
Parameters:
Result:
A node of type Version that contains the data about this version.
Exception cases: