|
|||||||||
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.ApprovalBean
public class ApprovalBean
The ApprovalBean is a state in the approval life cycle of an asset.
For example, an asset A might have dependencies [a1, a2, a3], and may itself depend on [b1, b2, b3]. For A to be approved for publish, all the assets on which it depends need to be approved, but all its dependent assets need not be approved. So, if a2 and b2 are approved assets and others are not, for A to be successfully approved for publish, the blocking assets [b1, b3] need to be approved. However, the dependent assets [a1, a3] may still remain unapproved. If there are blocking assets, the asset is said to be in the held state.
Constructor Summary | |
---|---|
ApprovalBean()
|
Method Summary | |
---|---|
AssetId |
getAsset()
Returns the asset whose approval state is represented by this. |
java.util.List<AssetId> |
getBlockingAssets()
Returns the list of blocking assets. |
java.lang.String |
getDetails()
|
java.util.Date |
getLastPublished()
Returns the date when the asset in the current approval life cycle was last published. |
java.lang.Long |
getTargetId()
Returns the id of the destination target to which an asset is set to be published. |
boolean |
isApproved()
Returns true if an asset is approved or held, false otherwise. |
void |
setApproved(boolean approved)
Set true if an asset is approved or held, false otherwise. |
void |
setAsset(AssetId asset)
Sets the asset whose approval state is to be represented by this. |
void |
setDetails(java.lang.String details)
sets approval details |
void |
setLastPublished(java.util.Date lastPublished)
Sets the date when the asset in the current approval life cycle was last published. |
void |
setTargetId(java.lang.Long targetId)
Sets the id of the destination target to which an asset is set to be published. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApprovalBean()
Method Detail |
---|
public java.util.List<AssetId> getBlockingAssets()
Returns the list of blocking assets.
If there are no blocking assets, the returned list is empty.
public AssetId getAsset()
public void setAsset(AssetId asset)
asset
- the asset whose approval state is to be represented by this.public java.lang.Long getTargetId()
Returns the id of the destination target to which an asset is set to be published.
public void setTargetId(java.lang.Long targetId)
Sets the id of the destination target to which an asset is set to be published.
targetId
- id of the destination target to which an asset is set to be published.public boolean isApproved()
true
if an asset is approved or held, false
otherwise.
true
if an asset is approved or held, false
otherwise.public void setApproved(boolean approved)
true
if an asset is approved or held, false
otherwise.
approved
- true
if an asset is approved or held, false
otherwise.public java.util.Date getLastPublished()
public void setLastPublished(java.util.Date lastPublished)
lastPublished
- the date when the asset was last published.public java.lang.String getDetails()
public void setDetails(java.lang.String details)
details
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |