Interface IAclManager
public interface IAclManager
Interface which describes all permissions management operations on abstract set of resources
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static class
Describes metadata for search result columns -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyAceToResource
(String resourceID, Ace ace, boolean recursive) Sets provided Ace on the resourcevoid
applyAuthSchemeToResource
(String resourceID, String authSchemeID, boolean recursive) Sets authentication scheme on resource objectvoid
applyOwnerToResource
(String resourceID, String principalID) Sets owner on resource objectvoid
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 resourcegetAceDisplayName
(List<String> resourceIDs, Ace ace) Acl manager may provide a custom display name for a given acegetAcePropertyDescriptors
(List<String> resourceIDs) Returns metadata about ace structure for given set of resourcesgetAcePropertyNames
(List<String> resourceIDs) Returns list of valid ACE names defined for this resource type and given set of resourcesgetAceSetForResource
(String resourceID) getAclResource
(String resourceID) Returns a single acl resource by its IDgetName()
Returns a friendly (localized) display name for this manager implementationReturns .view file name which should be used to edit permissions for this resource type.Returns .view file name that is used for refine search fields.getResourceAuthScheme
(String resourceID) Retrieves an auth scheme assigned to resource objectgetResourceOwner
(String resourceID) Returns owner for the resourcegetResourceSecurityRealm
(String resourceID) Retrieves a security realm assigned to an objectReturns identifier of resource type managed by this manager implementationReturns metadata about search result setboolean
isCanSetPermissions
(String resourceID) Returns true if current user can set permissions on a given resourceboolean
Returns true if supports setting recursive permissions on a resourceboolean
If given acl manager supports authentication scheme for resourceboolean
Whether this acl manager support searching for resourcesboolean
If given acl manager supports security realms on resource objectboolean
If given acl manager supports owner setting for resourcevoid
release()
Releases any resources associated with this acl managersearchResources
(Map<String, Object> refineFields, int maxResults) Searches and returns list of resources of given type matching specified queryvoid
setResourceType
(String resourceType) void
-
Field Details
-
TYPE_TASK
- See Also:
-
TYPE_MWS_APPLICATIONS
- See Also:
-
TYPE_MWS_OBJECT
- See Also:
-
TYPE_MWS_SECURITYREALM
- See Also:
-
TYPE_MWS_WORKSPACE
- See Also:
-
TYPE_MWS_XTYPE
- See Also:
-
COLUMN_RESOURCE_ICON
- See Also:
-
COLUMN_RESOURCE_NAME
- See Also:
-
COLUMN_RESOURCE_LINK
- See Also:
-
COLUMN_INFO_ICON
- See Also:
-
COLUMN_INFO_NAME
- See Also:
-
COLUMN_INFO_LINK
- See Also:
-
COLUMN_CREATED_DATE
- See Also:
-
COLUMN_CREATED_BY
- See Also:
-
COLUMN_LAST_MODIFIED_DATE
- See Also:
-
COLUMN_LAST_MODIFIED_BY
- See Also:
-
-
Method Details
-
isSupportSearch
boolean isSupportSearch()Whether this acl manager support searching for resources -
getResourceType
String getResourceType()Returns identifier of resource type managed by this manager implementation -
getName
Returns a friendly (localized) display name for this manager implementation- Throws:
Exception
-
getRefineSearchViewName
String getRefineSearchViewName()Returns .view file name that is used for refine search fields. If null is returned then default refine fields view will be used -
getPermissionsEditViewName
String getPermissionsEditViewName()Returns .view file name which should be used to edit permissions for this resource type. If null is returned then default edit permissions view will be used -
getResultColumnMetadata
Map<String,IAclManager.ResultColumnMetadata> getResultColumnMetadata()Returns metadata about search result set -
getAcePropertyNames
Returns list of valid ACE names defined for this resource type and given set of resources- Throws:
Exception
-
getAceDisplayName
Acl manager may provide a custom display name for a given ace- Throws:
Exception
-
getAcePropertyDescriptors
List<IAclManager.AcePropertyDescriptor> getAcePropertyDescriptors(List<String> resourceIDs) throws Exception Returns metadata about ace structure for given set of resources- Throws:
Exception
-
searchResources
List<IAclResource> searchResources(Map<String, Object> refineFields, int maxResults) throws ExceptionSearches and returns list of resources of given type matching specified query- Throws:
Exception
-
getAclResource
Returns a single acl resource by its ID- Parameters:
resourceID
-- Throws:
Exception
-
deleteAceFromResource
void deleteAceFromResource(String resourceID, String principalID, boolean recursive) throws Exception Removes given principal ACE from resource- Throws:
Exception
-
applyAceToResource
Sets provided Ace on the resource- Throws:
Exception
-
getAceSetForResource
- Throws:
Exception
-
isSupportAuthScheme
boolean isSupportAuthScheme()If given acl manager supports authentication scheme for resource -
isSupportSetOwner
boolean isSupportSetOwner()If given acl manager supports owner setting for resource -
applyOwnerToResource
Sets owner on resource object- Throws:
Exception
-
getResourceOwner
Returns owner for the resource- Throws:
Exception
-
applyAuthSchemeToResource
void applyAuthSchemeToResource(String resourceID, String authSchemeID, boolean recursive) throws Exception Sets authentication scheme on resource object- Throws:
Exception
-
getResourceAuthScheme
Retrieves an auth scheme assigned to resource object- Throws:
Exception
-
isSupportSecurityRealm
boolean isSupportSecurityRealm()If given acl manager supports security realms on resource object -
applySecurityRealmToResource
void applySecurityRealmToResource(String resourceID, String securityRealmID, boolean recursive) throws Exception Sets a secrurity realm on resource object.- Throws:
Exception
-
getResourceSecurityRealm
Retrieves a security realm assigned to an object- Throws:
Exception
-
isCanSetPermissions
Returns true if current user can set permissions on a given resource- Throws:
Exception
-
isCanSetRecursive
boolean isCanSetRecursive()Returns true if supports setting recursive permissions on a resource -
release
void release()Releases any resources associated with this acl manager -
setResourceType
-
setUserID
- Throws:
Exception
-