@Exported
public interface PermissionManager
Modifier and Type | Method and Description |
---|---|
List<SAFEPermission> |
getSAFEPermissions(AssetId asset)
Retrieves the list of SAFE permissions defined for this asset
|
boolean |
isAssetPermissionGranted(String site,
String assettype,
String subtype,
String user,
Permission.AssetFunctionEnum function)
Checks whether user has the start menu permission for the given site, asset type, subtype; there is
no corresponding set method in this API because the start menu permissions are decided by user Roles
in the site, so it will be changed by changing the user Roles
|
boolean |
isSAFEPermissionGranted(String site,
AssetId asset,
String user,
Permission.AssetSafeFunctionEnum function)
Checks whether the user has SAFE permission for the given asset in the given site
|
List<CCFunction> |
listFunctions()
Gets the list of CCFunctions defined in Content Server
|
void |
setSAFEPermission(String site,
AssetId asset,
List<SAFEPermission> permissions)
Set the user's SAFE permission for the given site, asset, and function
|
boolean isSAFEPermissionGranted(String site, AssetId asset, String user, Permission.AssetSafeFunctionEnum function) throws SiteAccessException
site
- the Content Server site name to check the permission forasset
- the AssetId to check the permission foruser
- the String format user id to check the permission forfunction
- the SAFE function to check the permision forSiteAccessException
- throw Exception if error met in checking the permissionList<SAFEPermission> getSAFEPermissions(AssetId asset) throws SiteAccessException
asset
- the asset to retrieve the SAFE permissions forSiteAccessException
- throw this Excepiton if errors metvoid setSAFEPermission(String site, AssetId asset, List<SAFEPermission> permissions) throws SiteAccessException
site
- the Content Server site name to set the permission forasset
- the AssetId to set the permission forpermissions
- the list of permissions to setSiteAccessException
- throw this Excepiton if errors metboolean isAssetPermissionGranted(String site, String assettype, String subtype, String user, Permission.AssetFunctionEnum function) throws SiteAccessException
site
- the Content Server site to check the start menu permission forassettype
- the asset type to check the permission forsubtype
- the asset subtype to check the permission foruser
- the String format user id to check the permission forfunction
- the start menu function to check (NEW OR SEARCH)SiteAccessException
- throw Exception if errors metList<CCFunction> listFunctions() throws SiteAccessException
SiteAccessException
- throws this exception if error met