|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.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 changesField Summary | |
---|---|
protected UserBean |
checkedOutBy User who has checked out the asset. |
protected java.util.Date |
checkedOutDate Date when this asset was checked out. |
Constructor Summary | |
---|---|
VersionBean() |
Method Summary | |
---|---|
AssetId |
getAsset() Returns the asset whose version life cycle is being tracked. |
UserBean |
getCheckedOutBy() Returns the user who has checked out the associated asset. |
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. |
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 |
setCheckedOutBy(UserBean checkedOutBy) Sets the user who has checked out the associated asset. |
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 |
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 checkedOutBy
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 getCheckedOutBy()
public final void setCheckedOutBy(UserBean checkedOutBy)
checkedOutBy
- the user to set, who has checked out the associated asset.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.