Package com.axemble.vdoc.sdk.interfaces
Interface IVersion
- All Superinterfaces:
IDelegationSupport,IDeletionSupport,IElement,IProtocolSupport,IResource,ISearchSupport,ISecuritySupport,IUriSupport,Serializable
public interface IVersion
extends IResource, IDeletionSupport, ISearchSupport, IUriSupport, IDelegationSupport, IProtocolSupport
This class represents a version of a document.
- Since:
- 1.0
- Version:
- 1.0, 10/06/2010
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAvailable version status. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the user who checked out the version.voidcheckIn()Check in a version.voidcheckOut()Check out a version.Gets the associatedIAttachmentTemplateobject.getCurrentTaskInstance(IContext context) Gets the current task instance.Collection<? extends IVersion> Gets the down links as a collection ofIVersionobjects.Gets the owner of the version.Gets the parent folder.Collection<? extends IVersion> Gets the up links as a collection ofIVersionobjects.intGets the version statusGets the associated workflow.booleanCheck if the version has been checked out.booleanMove a version to a folder.voidSets the name of the version.voidSets the owner of the version.voidUndo check out.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURIMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IResource
addLinkedResource, addLinkedResources, allowEvents, createLinkedResource, deleteLinkedResource, deleteLinkedResources, denyEvents, exists, getCreatedBy, getCreatedDate, getDefinition, getHistory, getLinkedResources, getList, getModifiedBy, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setCreatedBy, setCreatedDate, setList, setModifiedBy, setModifiedDate, setValue, setValueNoEventsMethods inherited from interface com.axemble.vdoc.sdk.supports.IUriSupport
getURI
-
Method Details
-
setName
Sets the name of the version.- Parameters:
name- the new name to set.
-
getOwnedBy
IUser getOwnedBy()Gets the owner of the version.- Returns:
- a
IUserobject.
-
setOwner
Sets the owner of the version.- Parameters:
user- aIUserobject.
-
getAttachmentTemplate
IAttachmentTemplate getAttachmentTemplate()Gets the associatedIAttachmentTemplateobject.- Returns:
- a
IAttachmentTemplateobject.
-
getWorkflow
IWorkflow getWorkflow()Gets the associated workflow.- Returns:
- a
IWorkflowobject.
-
getCurrentTaskInstance
Gets the current task instance.- Parameters:
context- The execution context.- Returns:
- a
ITaskInstanceobject.
-
checkOut
void checkOut()Check out a version. -
undoCheckOut
void undoCheckOut()Undo check out. -
checkIn
void checkIn()Check in a version. -
checkedOutBy
IUser checkedOutBy()Retrieve the user who checked out the version.- Returns:
- a
IUserobject.
-
isCheckedOut
boolean isCheckedOut()Check if the version has been checked out.- Returns:
- true if the version has been checked out, false otherwise.
-
getParentFolder
IFolder getParentFolder()Gets the parent folder.- Returns:
- a
IFolderobject.
-
getVersionStatus
int getVersionStatus()Gets the version status- Returns:
- the version status
- See Also:
-
moveTo
Move a version to a folder.- Parameters:
destFolder- TheIFolderto put the version to.- Returns:
- true if succeed,
} otherwise.
invalid @link
{@link false
-
getUpLinks
Collection<? extends IVersion> getUpLinks()Gets the up links as a collection ofIVersionobjects.- Returns:
- A
Collectionof (@link IVersion} objects.
-
getDownLinks
Collection<? extends IVersion> getDownLinks()Gets the down links as a collection ofIVersionobjects.- Returns:
- A
Collectionof (@link IVersion} objects.
-