Skip navigation links


com.fatwire.services.beans.asset.authorization
Class DeleteAuthorizationBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.asset.authorization.VersioningAuthorizationBean
          extended by com.fatwire.services.beans.asset.authorization.DeleteAuthorizationBean

All Implemented Interfaces:
java.io.Serializable

public class DeleteAuthorizationBean
extends VersioningAuthorizationBean

The DeleteAuthorizationBean is the value object populated by authorization modules which check access to operations deleting an asset.

It provides the following information:

See Also:
Serialized Form

Constructor Summary
DeleteAuthorizationBean()
           

 

Method Summary
 java.util.List<DestinationBean> getDestinations()
           Returns a list of destinations for which the asset which is being attempted to be deleted, is the publication initiation point.
 java.util.List<AssetId> getReferences()
           Returns a list of assets referencing an asset which is being attempted to be deleted.
 java.lang.Boolean isSharedWithAllsites()
           Returns true if an asset is shared with all sites.
 void setSharedWithAllsites(java.lang.Boolean sharedWithAllsites)
           Sets a flag to indicate if an asset is shared with all sites.

 

Methods inherited from class com.fatwire.services.beans.asset.authorization.VersioningAuthorizationBean
getAsset, getCheckedOutBy, isCheckedOut, isTracked, setAsset, setCheckedOutBy, setTracked

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DeleteAuthorizationBean

public DeleteAuthorizationBean()

Method Detail

getReferences

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

Returns a list of assets referencing an asset which is being attempted to be deleted.

Returns an empty list if there are no such references.
Returns:
list of assets references, empty list if there are no references.

getDestinations

public java.util.List<DestinationBean> getDestinations()

Returns a list of destinations for which the asset which is being attempted to be deleted, is the publication initiation point.

Returns an empty list if there are no such destinations.
Returns:
list of assets references, empty list if there are no destinations.

isSharedWithAllsites

public java.lang.Boolean isSharedWithAllsites()

Returns true if an asset is shared with all sites.

This flag should be checked before iterating the list of sites from #getSites():
 boolean isShared = isSharedWithAllsites() || getSites().size > 0;
 
Returns:
true if an asset is shared with all sites.

setSharedWithAllsites

public void setSharedWithAllsites(java.lang.Boolean sharedWithAllsites)

Sets a flag to indicate if an asset is shared with all sites.

Set to true if an asset is shared with all sites.
Parameters:
sharedWithAllsites - true if an asset is shared with all sites.

Skip navigation links


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