Skip navigation links


com.fatwire.services.beans.asset
Class ApprovalBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.asset.ApprovalBean

All Implemented Interfaces:
java.io.Serializable

public class ApprovalBean
extends BaseBean

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.

See Also:
Serialized Form

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

ApprovalBean

public ApprovalBean()

Method Detail

getBlockingAssets

public java.util.List<AssetId> getBlockingAssets()

Returns the list of blocking assets.

If there are no blocking assets, the returned list is empty.
Returns:
list of blocking assets.

getAsset

public AssetId getAsset()
Returns the asset whose approval state is represented by this.
Returns:
the asset whose approval state is to be represented by this.

setAsset

public void setAsset(AssetId asset)
Sets the asset whose approval state is to be represented by this.
Parameters:
asset - the asset whose approval state is to be represented by this.

getTargetId

public java.lang.Long getTargetId()

Returns the id of the destination target to which an asset is set to be published.

Returns:
the id of the destination target to which an asset is set to be published.

setTargetId

public void setTargetId(java.lang.Long targetId)

Sets the id of the destination target to which an asset is set to be published.

Parameters:
targetId - id of the destination target to which an asset is set to be published.

isApproved

public boolean isApproved()
Returns true if an asset is approved or held, false otherwise.
Returns:
true if an asset is approved or held, false otherwise.

setApproved

public void setApproved(boolean approved)
Set true if an asset is approved or held, false otherwise.
Parameters:
approved - true if an asset is approved or held, false otherwise.

getLastPublished

public java.util.Date getLastPublished()
Returns the date when the asset in the current approval life cycle was last published.
Returns:
the date when the asset was last published.

setLastPublished

public void setLastPublished(java.util.Date lastPublished)
Sets the date when the asset in the current approval life cycle was last published.
Parameters:
lastPublished - the date when the asset was last published.

getDetails

public java.lang.String getDetails()
Returns:
approval details

setDetails

public void setDetails(java.lang.String details)
sets approval details
Parameters:
details -

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.