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
Modifier and TypeInterfaceDescriptionstatic interface
Available version status. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the user who checked out the version.void
checkIn()
Check in a version.void
checkOut()
Check out a version.Gets the associatedIAttachmentTemplate
object.getCurrentTaskInstance
(IContext context) Gets the current task instance.Collection
<? extends IVersion> Gets the down links as a collection ofIVersion
objects.Gets the owner of the version.Gets the parent folder.Collection
<? extends IVersion> Gets the up links as a collection ofIVersion
objects.int
Gets the version statusGets the associated workflow.boolean
Check if the version has been checked out.boolean
Move a version to a folder.void
Sets the name of the version.void
Sets the owner of the version.void
Undo check out.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
Methods 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, setValueNoEvents
Methods 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
IUser
object.
-
setOwner
Sets the owner of the version.- Parameters:
user
- aIUser
object.
-
getAttachmentTemplate
IAttachmentTemplate getAttachmentTemplate()Gets the associatedIAttachmentTemplate
object.- Returns:
- a
IAttachmentTemplate
object.
-
getWorkflow
IWorkflow getWorkflow()Gets the associated workflow.- Returns:
- a
IWorkflow
object.
-
getCurrentTaskInstance
Gets the current task instance.- Parameters:
context
- The execution context.- Returns:
- a
ITaskInstance
object.
-
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
IUser
object.
-
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
IFolder
object.
-
getVersionStatus
int getVersionStatus()Gets the version status- Returns:
- the version status
- See Also:
-
moveTo
Move a version to a folder.- Parameters:
destFolder
- TheIFolder
to put the version to.- Returns:
- true if succeed,
invalid @link
{@link false
-
getUpLinks
Collection<? extends IVersion> getUpLinks()Gets the up links as a collection ofIVersion
objects.- Returns:
- A
Collection
of (@link IVersion} objects.
-
getDownLinks
Collection<? extends IVersion> getDownLinks()Gets the down links as a collection ofIVersion
objects.- Returns:
- A
Collection
of (@link IVersion} objects.
-