public interface IAclManager
Modifier and Type | Interface and Description |
---|---|
static class |
IAclManager.AcePropertyDescriptor |
static class |
IAclManager.ResultColumnMetadata
Describes metadata for search result columns
|
Modifier and Type | Field and Description |
---|---|
static String |
COLUMN_CREATED_BY |
static String |
COLUMN_CREATED_DATE |
static String |
COLUMN_INFO_ICON |
static String |
COLUMN_INFO_LINK |
static String |
COLUMN_INFO_NAME |
static String |
COLUMN_LAST_MODIFIED_BY |
static String |
COLUMN_LAST_MODIFIED_DATE |
static String |
COLUMN_RESOURCE_ICON |
static String |
COLUMN_RESOURCE_LINK |
static String |
COLUMN_RESOURCE_NAME |
static String |
TYPE_MWS_APPLICATIONS |
static String |
TYPE_MWS_OBJECT |
static String |
TYPE_MWS_SECURITYREALM |
static String |
TYPE_MWS_WORKSPACE |
static String |
TYPE_MWS_XTYPE |
static String |
TYPE_TASK |
Modifier and Type | Method and Description |
---|---|
void |
applyAceToResource(String resourceID,
Ace ace,
boolean recursive)
Sets provided Ace on the resource
|
void |
applyAuthSchemeToResource(String resourceID,
String authSchemeID,
boolean recursive)
Sets authentication scheme on resource object
|
void |
applyOwnerToResource(String resourceID,
String principalID)
Sets owner on resource object
|
void |
applySecurityRealmToResource(String resourceID,
String securityRealmID,
boolean recursive)
Sets a secrurity realm on resource object.
|
void |
deleteAceFromResource(String resourceID,
String principalID,
boolean recursive)
Removes given principal ACE from resource
|
String |
getAceDisplayName(List<String> resourceIDs,
Ace ace)
Acl manager may provide a custom display name for a given ace
|
List<IAclManager.AcePropertyDescriptor> |
getAcePropertyDescriptors(List<String> resourceIDs)
Returns metadata about ace structure for given set of resources
|
List<String> |
getAcePropertyNames(List<String> resourceIDs)
Returns list of valid ACE names defined for this resource type and given set of resources
|
AceSet |
getAceSetForResource(String resourceID) |
IAclResource |
getAclResource(String resourceID)
Returns a single acl resource by its ID
|
String |
getName()
Returns a friendly (localized) display name for this manager implementation
|
String |
getPermissionsEditViewName()
Returns .view file name which should be used to edit permissions for this resource type.
|
String |
getRefineSearchViewName()
Returns .view file name that is used for refine search fields.
|
String |
getResourceAuthScheme(String resourceID)
Retrieves an auth scheme assigned to resource object
|
String |
getResourceOwner(String resourceID)
Returns owner for the resource
|
String |
getResourceSecurityRealm(String resourceID)
Retrieves a security realm assigned to an object
|
String |
getResourceType()
Returns identifier of resource type managed by this manager implementation
|
Map<String,IAclManager.ResultColumnMetadata> |
getResultColumnMetadata()
Returns metadata about search result set
|
boolean |
isCanSetPermissions(String resourceID)
Returns true if current user can set permissions on a given resource
|
boolean |
isCanSetRecursive()
Returns true if supports setting recursive permissions on a resource
|
boolean |
isSupportAuthScheme()
If given acl manager supports authentication scheme for resource
|
boolean |
isSupportSearch()
Whether this acl manager support searching for resources
|
boolean |
isSupportSecurityRealm()
If given acl manager supports security realms on resource object
|
boolean |
isSupportSetOwner()
If given acl manager supports owner setting for resource
|
void |
release()
Releases any resources associated with this acl manager
|
List<IAclResource> |
searchResources(Map<String,Object> refineFields,
int maxResults)
Searches and returns list of resources of given type matching specified query
|
void |
setResourceType(String resourceType) |
void |
setUserID(String userID) |
static final String TYPE_TASK
static final String TYPE_MWS_APPLICATIONS
static final String TYPE_MWS_OBJECT
static final String TYPE_MWS_SECURITYREALM
static final String TYPE_MWS_WORKSPACE
static final String TYPE_MWS_XTYPE
static final String COLUMN_RESOURCE_ICON
static final String COLUMN_RESOURCE_NAME
static final String COLUMN_RESOURCE_LINK
static final String COLUMN_INFO_ICON
static final String COLUMN_INFO_NAME
static final String COLUMN_INFO_LINK
static final String COLUMN_CREATED_DATE
static final String COLUMN_CREATED_BY
static final String COLUMN_LAST_MODIFIED_DATE
static final String COLUMN_LAST_MODIFIED_BY
boolean isSupportSearch()
String getResourceType()
String getName() throws Exception
Exception
String getRefineSearchViewName()
String getPermissionsEditViewName()
Map<String,IAclManager.ResultColumnMetadata> getResultColumnMetadata()
List<String> getAcePropertyNames(List<String> resourceIDs) throws Exception
Exception
String getAceDisplayName(List<String> resourceIDs, Ace ace) throws Exception
Exception
List<IAclManager.AcePropertyDescriptor> getAcePropertyDescriptors(List<String> resourceIDs) throws Exception
Exception
List<IAclResource> searchResources(Map<String,Object> refineFields, int maxResults) throws Exception
Exception
IAclResource getAclResource(String resourceID) throws Exception
resourceID
- Exception
void deleteAceFromResource(String resourceID, String principalID, boolean recursive) throws Exception
Exception
void applyAceToResource(String resourceID, Ace ace, boolean recursive) throws Exception
Exception
AceSet getAceSetForResource(String resourceID) throws Exception
Exception
boolean isSupportAuthScheme()
boolean isSupportSetOwner()
void applyOwnerToResource(String resourceID, String principalID) throws Exception
Exception
String getResourceOwner(String resourceID) throws Exception
Exception
void applyAuthSchemeToResource(String resourceID, String authSchemeID, boolean recursive) throws Exception
Exception
String getResourceAuthScheme(String resourceID) throws Exception
Exception
boolean isSupportSecurityRealm()
void applySecurityRealmToResource(String resourceID, String securityRealmID, boolean recursive) throws Exception
Exception
String getResourceSecurityRealm(String resourceID) throws Exception
Exception
boolean isCanSetPermissions(String resourceID) throws Exception
Exception
boolean isCanSetRecursive()
void release()
void setResourceType(String resourceType)