public interface IVersion extends IResource, IDeletionSupport, ISearchSupport, IUriSupport, IDelegationSupport, IProtocolSupport
IResource
,
IWorkflow
,
ITaskInstance
Modifier and Type | Interface and Description |
---|---|
static interface |
IVersion.IVersionStatus
Available version status.
|
Modifier and Type | Method and Description |
---|---|
IUser |
checkedOutBy()
Retrieve the user who checked out the version.
|
void |
checkIn()
Check in a version.
|
void |
checkOut()
Check out a version.
|
IAttachmentTemplate |
getAttachmentTemplate()
Gets the associated
IAttachmentTemplate object. |
ITaskInstance |
getCurrentTaskInstance(IContext context)
Gets the current task instance.
|
Collection<? extends IVersion> |
getDownLinks()
Gets the down links as a collection of
IVersion objects. |
IUser |
getOwnedBy()
Gets the owner of the version.
|
IFolder |
getParentFolder()
Gets the parent folder.
|
Collection<? extends IVersion> |
getUpLinks()
Gets the up links as a collection of
IVersion objects. |
int |
getVersionStatus()
Gets the version status
|
IWorkflow |
getWorkflow()
Gets the associated workflow.
|
boolean |
isCheckedOut()
Check if the version has been checked out.
|
boolean |
moveTo(IFolder destFolder)
Move a version to a folder.
|
void |
setName(String name)
Sets the name of the version.
|
void |
setOwner(IUser user)
Sets the owner of the version.
|
void |
undoCheckOut()
Undo check out.
|
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
getId, getModule, getNativeObject, getPath, save
delete
getProtocolURI, getProtocolURI
getURI
void setName(String name)
name
- the new name to set.void setOwner(IUser user)
user
- a IUser
object.IAttachmentTemplate getAttachmentTemplate()
IAttachmentTemplate
object.IAttachmentTemplate
object.ITaskInstance getCurrentTaskInstance(IContext context)
context
- The execution context.ITaskInstance
object.void checkOut()
void undoCheckOut()
void checkIn()
IUser checkedOutBy()
IUser
object.boolean isCheckedOut()
int getVersionStatus()
IVersion.IVersionStatus
boolean moveTo(IFolder destFolder)
destFolder
- The IFolder
to put the version to.false
otherwise.Collection<? extends IVersion> getUpLinks()
IVersion
objects.Collection
of (@link IVersion} objects.Collection<? extends IVersion> getDownLinks()
IVersion
objects.Collection
of (@link IVersion} objects.Copyright © 2022 Visiativ. All rights reserved.