|
|||||||||
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.authorization.VersioningAuthorizationBean
com.fatwire.services.beans.asset.authorization.DeleteAuthorizationBean
public class DeleteAuthorizationBean
The DeleteAuthorizationBean is the value object populated by authorization modules which check access to operations deleting an asset.
It provides the following information:
true
if an asset is shared with all sites. If the asset is shared only among a subset of sites, the flag is set to false
and the bean is populated with a list of all sites sharing the asset.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 |
---|
public DeleteAuthorizationBean()
Method Detail |
---|
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.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.public java.lang.Boolean isSharedWithAllsites()
Returns true
if an asset is shared with all sites.
#getSites()
:
boolean isShared = isSharedWithAllsites() || getSites().size > 0;
true
if an asset is shared with all sites.public void setSharedWithAllsites(java.lang.Boolean sharedWithAllsites)
Sets a flag to indicate if an asset is shared with all sites.
Set totrue
if an asset is shared with all sites.sharedWithAllsites
- true
if an asset is shared with all sites.
|
|||||||||
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.