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, getVersionManagerstatic 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
VersionExceptionVersionID getVersion() throws VersionException
VersionExceptionRepositoryItem getRepositoryItem() throws VersionException, RepositoryException
VersionExceptionRepositoryExceptionatg.vfs.repository.RepositoryVirtualFile getVirtualFile()
                                                        throws VersionException
VersionExceptionVirtualFileSystem getVirtualFileSystem() throws VersionException
VersionExceptionjava.lang.Class getResourceType()
                                throws VersionException
VersionExceptionDevelopmentLine getDevelopmentLine() throws VersionException
VersionExceptionWorkspace getCreatedInWorkspace() throws VersionException
VersionExceptionboolean isDeleted()
                  throws VersionException
VersionExceptionboolean isCheckedOut()
                     throws VersionException
VersionExceptionWorkingVersion getWorkingVersion()
id - java.util.Set getWorkingVersions()
                                 throws VersionException
VersionExceptionAssetVersion getParentVersion() throws VersionException
VersionExceptionjava.util.Set getAllParentVersions()
                                   throws VersionException
VersionExceptionboolean hasParentVersion(AssetVersion version) throws VersionException
version - to look forVersionExceptionjava.util.Set getLaterVersions()
                               throws VersionException
VersionExceptionboolean hasLaterVersion(AssetVersion version) throws VersionException
version - to look forVersionExceptionboolean isHeadOfLine(DevelopmentLine line) throws VersionException
VersionExceptionint getStatusCode()
                  throws VersionException
VersionExceptionjava.lang.String getStatus()
                           throws VersionException
VersionException