public interface AssetVersion extends ManagedElement
Versions are constructed as side-effects of other versioning operations: creating a new asset, and checking-in a working version. When a resource is first put under version control:
Versions are managed by the asset they represent. Versions maintain references to their predecessors and successors within the version hierarchy. The initial version does not have any predecessors.
A version has an identifier that is unique within the history of the associated asset.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
static int |
STATUS_ALL_CODE |
static java.lang.String |
STATUS_DELETED |
static int |
STATUS_DELETED_CODE |
static java.lang.String |
STATUS_MODIFIED |
static int |
STATUS_MODIFIED_CODE |
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getAllParentVersions()
Gets a set of all prior versions of this asset back to the original.
|
Asset |
getAsset()
Versions are associated with an asset.
|
Workspace |
getCreatedInWorkspace()
Versions have a workspace that created them
containing comment, user agent, creation time.
|
DevelopmentLine |
getDevelopmentLine()
Returns the development line that owns this asset version.
|
java.util.Set |
getLaterVersions()
Get the set of successor versions.
|
AssetVersion |
getParentVersion()
Get the version immediately before this one.
|
RepositoryItem |
getRepositoryItem()
Get the underlying RepositoryItem
|
java.lang.Class |
getResourceType()
Returns the type of the resource that backs up this AssetVersion.
|
java.lang.String |
getStatus()
Gets the status of the asset (one of STATUS_ADDED, STATUS_DELETED, STATUS_MODIFIED)
|
int |
getStatusCode()
Gets the status of the asset (one of STATUS_ADDED_CODE, STATUS_DELETED_CODE, STATUS_MODIFIED_CODE)
|
VersionID |
getVersion()
Returns the version
|
atg.vfs.repository.RepositoryVirtualFile |
getVirtualFile()
Gets the VirtualFile that backs this resource.
|
VirtualFileSystem |
getVirtualFileSystem()
Gets the VirtualFileSystem that this resource is drawn from
|
WorkingVersion |
getWorkingVersion()
Returns the existing working version if this asset version is already checked out.
|
java.util.Set |
getWorkingVersions()
Get the current checked-out working versions for all development lines.
|
boolean |
hasLaterVersion(AssetVersion version)
Test if the given version is a newer version of this asset.
|
boolean |
hasParentVersion(AssetVersion version)
Check to see if the given AssetVersion is an earlier version of
this asset.
|
boolean |
isCheckedOut()
A version may have been checked-out into
one or more workspaces.
|
boolean |
isDeleted()
Test if this version of the asset has been marked as deleted.
|
boolean |
isHeadOfLine(DevelopmentLine line)
Returns true if this version of the asset is the current head version
on the given development line.
|
getDisplayName, getName, getURI, getVersionManager
static final java.lang.String CLASS_VERSION
static final int STATUS_MODIFIED_CODE
static final int STATUS_DELETED_CODE
static final int STATUS_ALL_CODE
static final java.lang.String STATUS_MODIFIED
static final java.lang.String STATUS_DELETED
Asset getAsset() throws VersionException
VersionException
VersionID getVersion() throws VersionException
VersionException
RepositoryItem getRepositoryItem() throws VersionException, RepositoryException
VersionException
RepositoryException
atg.vfs.repository.RepositoryVirtualFile getVirtualFile() throws VersionException
VersionException
VirtualFileSystem getVirtualFileSystem() throws VersionException
VersionException
java.lang.Class getResourceType() throws VersionException
VersionException
DevelopmentLine getDevelopmentLine() throws VersionException
VersionException
Workspace getCreatedInWorkspace() throws VersionException
VersionException
boolean isDeleted() throws VersionException
VersionException
boolean isCheckedOut() throws VersionException
VersionException
WorkingVersion getWorkingVersion()
id
- java.util.Set getWorkingVersions() throws VersionException
VersionException
AssetVersion getParentVersion() throws VersionException
VersionException
java.util.Set getAllParentVersions() throws VersionException
VersionException
boolean hasParentVersion(AssetVersion version) throws VersionException
version
- to look forVersionException
java.util.Set getLaterVersions() throws VersionException
VersionException
boolean hasLaterVersion(AssetVersion version) throws VersionException
version
- to look forVersionException
boolean isHeadOfLine(DevelopmentLine line) throws VersionException
VersionException
int getStatusCode() throws VersionException
VersionException
java.lang.String getStatus() throws VersionException
VersionException