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, getVersionManager
static final java.lang.String CLASS_VERSION
AssetVersion getVersion(DevelopmentLine line) throws VersionException
VersionException
AssetVersion getMainVersion() throws VersionException
VersionException
WorkingVersion getWorkingVersion(Workspace workspace) throws VersionException
workspace
- to be searched for check-outVersionException
WorkingVersion getWorkingVersion(VersionManagerURI workspaceURI) throws VersionException
workspaceURI
- VersionException
java.util.List getAllVersions() throws VersionException
VersionException
int getVersionCount()
AssetVersion getVersion(java.lang.String id) throws VersionException
id
- local version identifierVersionException
AssetVersion getInitialVersion() throws VersionException
VersionException
AssetVersion getInitialVersion(Branch branch) throws VersionException
branch
- VersionException
boolean isLive(DevelopmentLine codeline) throws VersionException
VersionException
boolean isDeleted(DevelopmentLine codeline) throws VersionException
VersionException
boolean isLocked() throws VersionException
VersionException
Workspace lockedBy() throws VersionException
VersionException