|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.services.beans.BaseBean
com.fatwire.services.beans.asset.VersionBean
public class VersionBean
The VersionBean is the value object for services handling revision tracking of assets. For every version bean, there is an associated asset in an associated state in the versioning life cycle of an asset. For the purposes of revision tracking, there are the following associated properties:
true
if the asset is
checked out by a user for changes; it should be set to false
once the user commits his changes
Field Summary | |
---|---|
protected java.util.Date |
checkedOutDate
Date when this asset was checked out. |
protected UserBean |
lockedBy
User who is locking #asset . |
Constructor Summary | |
---|---|
VersionBean()
|
Method Summary | |
---|---|
AssetId |
getAsset()
Returns the asset whose version life cycle is being tracked. |
java.util.Date |
getCheckedOutDate()
Returns the date when the associated asset was last checked out. |
java.lang.String |
getComment()
Returns the comment from the user describing changes to a new version. |
UserBean |
getLockedBy()
Returns the user who is locking the associated asset. |
int |
getVersion()
Returns the current version of the associated asset from its revision history.. |
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 |
setCheckedOutDate(java.util.Date checkedOutDate)
Sets the date when the associated asset was last checked out. |
void |
setComment(java.lang.String comment)
Sets the comment from the user describing changes to a new version. |
void |
setLockedBy(UserBean lockedBy)
Sets the user who is currently locking the associated asset. |
void |
setVersion(int version)
Sets the current version number for the associated asset in its revision history.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Date checkedOutDate
protected UserBean lockedBy
#asset
.
Constructor Detail |
---|
public VersionBean()
Method Detail |
---|
public AssetId getAsset()
public void setAsset(AssetId asset)
asset
- the asset to set.public java.lang.String getComment()
public void setComment(java.lang.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 java.util.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(java.util.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 getLockedBy()
public final void setLockedBy(UserBean lockedBy)
lockedBy
- the user to set, who is currently locking the associated asset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |