public interface Asset extends ManagedElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAllVersions()
Returns all versions for this asset.
|
AssetVersion |
getInitialVersion()
Returns the first version of the asset that was imported
or checked in.
|
AssetVersion |
getInitialVersion(Branch branch)
Returns the first version of an asset on a given branch.
|
AssetVersion |
getMainVersion()
Convenience method to get current version on main.
|
AssetVersion |
getVersion(DevelopmentLine line)
Gets the latest version of this asset in the given development
line.
|
AssetVersion |
getVersion(java.lang.String id)
Look-up a version by local revision id.
|
int |
getVersionCount()
Get the number of versions in the history.
|
WorkingVersion |
getWorkingVersion(VersionManagerURI workspaceURI)
Get the checked-out working version for the given workspace.
|
WorkingVersion |
getWorkingVersion(Workspace workspace)
Get the checked-out working version for the given workspace.
|
boolean |
isDeleted(DevelopmentLine codeline)
Has this asset has been deleted in the given code line?
|
boolean |
isLive(DevelopmentLine codeline)
Returns true for everything except WorkingVersions since this type of
version does not automatically change when other users check in new head
revisions.
|
boolean |
isLocked()
Has this asset has been locked for deployment?
|
Workspace |
lockedBy()
Get the workspace that has this asset locked.
|
getDisplayName, getName, getURI, getVersionManagerstatic final java.lang.String CLASS_VERSION
AssetVersion getVersion(DevelopmentLine line) throws VersionException
VersionExceptionAssetVersion getMainVersion() throws VersionException
VersionExceptionWorkingVersion getWorkingVersion(Workspace workspace) throws VersionException
workspace - to be searched for check-outVersionExceptionWorkingVersion getWorkingVersion(VersionManagerURI workspaceURI) throws VersionException
workspaceURI - VersionExceptionjava.util.List getAllVersions()
throws VersionException
VersionExceptionint getVersionCount()
AssetVersion getVersion(java.lang.String id) throws VersionException
id - local version identifierVersionExceptionAssetVersion getInitialVersion() throws VersionException
VersionExceptionAssetVersion getInitialVersion(Branch branch) throws VersionException
branch - VersionExceptionboolean isLive(DevelopmentLine codeline) throws VersionException
VersionExceptionboolean isDeleted(DevelopmentLine codeline) throws VersionException
VersionExceptionboolean isLocked()
throws VersionException
VersionExceptionWorkspace lockedBy() throws VersionException
VersionException