public class VersionBean extends BaseBean
true
if the asset is checked out by a user for changes; it should be set to false
once the user commits his changesModifier and Type | Field and Description |
---|---|
protected UserBean |
checkedOutBy
User who has checked out the asset.
|
protected Date |
checkedOutDate
Date when this asset was checked out.
|
Constructor and Description |
---|
VersionBean() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AssetId |
getAsset()
Returns the asset whose version life cycle is being tracked.
|
UserBean |
getCheckedOutBy()
Returns the user who has checked out the associated asset.
|
Date |
getCheckedOutDate()
Returns the date when the associated asset was last checked out.
|
String |
getComment()
Returns the comment from the user describing changes to a new version.
|
int |
getVersion()
Returns the current version of the associated asset from its revision history..
|
int |
hashCode() |
boolean |
isCheckedOut()
Returns
true if the associated asset is checked out by a user. |
void |
setAsset(AssetId asset)
Sets the asset whose version life cycle is to be tracked.
|
void |
setCheckedOutBy(UserBean checkedOutBy)
Sets the user who has checked out the associated asset.
|
void |
setCheckedOutDate(Date checkedOutDate)
Sets the date when the associated asset was last checked out.
|
void |
setComment(String comment)
Sets the comment from the user describing changes to a new version.
|
void |
setVersion(int version)
Sets the current version number for the associated asset in its revision history..
|
protected Date checkedOutDate
protected UserBean checkedOutBy
public AssetId getAsset()
public void setAsset(AssetId asset)
asset
- the asset to set.public String getComment()
public void setComment(String comment)
comment
- the comment to set for describing the changes.public boolean isCheckedOut()
true
if the associated asset is checked out by a user.true
if the associated asset is checked out by a user, false otherwise.public final Date getCheckedOutDate()
Returns the date when the associated asset was last checked out.
Returnsnull
if the asset was never checked out, or the type of this asset is not revision tracked.public final void setCheckedOutDate(Date checkedOutDate)
Sets the date when the associated asset was last checked out.
This setter is ineffective if the type of the associated asset is not tracked.checkedOutDate
- the date to set.public final int getVersion()
Returns the current version of the associated asset from its revision history..
Returnsnull
if the type of the associated asset is not revision tracked.public final void setVersion(int version)
Sets the current version number for the associated asset in its revision history..
This setter is ineffective if the type of the associated asset is not tracked.version
- the version to set for the associated asset in its revision history..public final UserBean getCheckedOutBy()
public final void setCheckedOutBy(UserBean checkedOutBy)
checkedOutBy
- the user to set, who has checked out the associated asset.