Interface PermissionsCapableAsset
-
- All Superinterfaces:
BaseAsset
,NamedAsset
- All Known Subinterfaces:
AssetFactory
,Block
,ContentType
,Destination
,DestinationContainer
,FeedBlock
,File
,Folder
,FolderContainedAsset
,Format
,FTPTransport
,IndexBlock
,MetadataAwareAsset
,MetadataSet
,Page
,PublishableAsset
,Reference
,ScriptFormat
,Site
,SiteDestinationContainer
,SiteManagementAreaAsset
,StructuredDataDefinition
,Symlink
,Template
,TextBlock
,Transport
,TwitterFeedBlock
,XHTMLDataDefinitionBlock
,XMLBlock
,XSLTFormat
public interface PermissionsCapableAsset extends NamedAsset
Contains permissions related methods- Since:
- 7.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCurrentUserCanRead()
boolean
isCurrentUserCanWrite()
boolean
isUserCanRead(java.lang.String username)
boolean
isUserCanWrite(java.lang.String username)
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.BaseAsset
getAssetId, getAssetType, getIdentifer
-
Methods inherited from interface com.hannonhill.cascade.api.asset.common.NamedAsset
getLabel, getName, setName
-
-
-
-
Method Detail
-
isCurrentUserCanRead
boolean isCurrentUserCanRead()
- Returns:
- Returns true if current user has read access to this asset
-
isCurrentUserCanWrite
boolean isCurrentUserCanWrite()
- Returns:
- Returns true if current user has write access to this asset
-
isUserCanRead
boolean isUserCanRead(java.lang.String username)
- Parameters:
username
-- Returns:
- Returns true if given user has read access to this asset
-
isUserCanWrite
boolean isUserCanWrite(java.lang.String username)
- Parameters:
username
-- Returns:
- Returns true if given user has write access to this asset
-
-