|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VersionCatalog
Access the set of available Versions of a Document
| Method Summary | |
|---|---|
java.util.Iterator<Version> |
all()
Returns an Iterator to all available Versions of this Document |
void |
createVersion(java.lang.String... labels)
Create a new Version of the live Document stored in the repository. |
boolean |
hasVersions()
Returns true if this Document has stored Version documents in the repository. |
void |
remove(Version version)
Remove the specified Version Documents for this item. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
boolean hasVersions()
true if this Document has stored Version documents in the repository.
Versions that exist for this Document.java.util.Iterator<Version> all()
Iterator to all available Versions of this Document
Document if they exist.
void remove(Version version)
throws AuthorizationException,
DocumentNotFoundException,
DocumentLockedException,
VersioningException
Version Documents for this item.
version - to be removed
AuthorizationException - if the current user does not have sufficient access rights to remove the version
DocumentNotFoundException - if the version could be found in the repository
DocumentLockedException - if the live item is currently locked
VersioningException - if an error occurred trying to remove the version from the repository
BaseVersionDeletionException - when attempting to remove the most recent (the base) version created of an Item
LastVersionDeletionException - when attempting to remove the last remaining Version of a deleted item
void createVersion(java.lang.String... labels)
throws AuthorizationException,
OperationFailedException,
DocumentNotFoundException
Version of the live Document stored in the repository.
Note: An single empty string is treated as a value and is not the same as passing in null or an empty String[].
labels - the String labels to set on the new Version
AuthorizationException - if the current user does not have sufficient access rights to remove the version
DocumentNotFoundException - if the version could be found in the repository
OperationFailedException - if an error occurred trying to remove the version from the repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||