@AlfrescoPublicApi
public interface CapabilityService
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Group group)
Adds a group to the list of groups
|
Set<Capability> |
getCapabilities()
Get a list of all the assignable capabilities.
|
Set<Capability> |
getCapabilities(boolean includePrivate)
Get a list of all the capabilities, optionally including those that are non-assignable.
|
Map<Capability,org.alfresco.service.cmr.security.AccessStatus> |
getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Get all the capabilities access state based on the current user for the assignable capabilities.
|
Map<Capability,org.alfresco.service.cmr.security.AccessStatus> |
getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean includePrivate)
Get all the capabilities access state based on the current user.
|
Map<Capability,org.alfresco.service.cmr.security.AccessStatus> |
getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
List<String> capabilityNames) |
List<Capability> |
getCapabilitiesByGroup(Group group)
Get a list of capabilities for the given group
|
List<Capability> |
getCapabilitiesByGroupId(String groupId)
Gets a list of capabilities for the given group id
|
Capability |
getCapability(String name)
Get a named capability.
|
org.alfresco.service.cmr.security.AccessStatus |
getCapabilityAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String capabilityName)
Helper method to get the access state for a single capability.
|
Group |
getGroup(String groupId)
Gets a group from it's id
|
List<Group> |
getGroups()
Gets the list of all the capability groups (in index order)
|
void |
registerCapability(Capability capability)
Register a capability
|
void |
removeGroup(Group group)
Removes a group from the list of groups
|
void registerCapability(Capability capability)
capability - capabilityCapability getCapability(String name)
name - capability nameCapability capability or null if not foundSet<Capability> getCapabilities()
Set<Capability> set of all the assignable capabilitiesSet<Capability> getCapabilities(boolean includePrivate)
includePrivate - indicates that the private, or non-assignable capabilities are included in the resultSet<Capability> set of capabilitiesMap<Capability,org.alfresco.service.cmr.security.AccessStatus> getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - node referenceMap<Capability,org.alfresco.service.cmr.security.AccessStatus> getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean includePrivate)
nodeRef - node referenceMap<Capability,org.alfresco.service.cmr.security.AccessStatus> getCapabilitiesAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef, List<String> capabilityNames)
nodeRef - capabilityNames - org.alfresco.service.cmr.security.AccessStatus getCapabilityAccessState(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String capabilityName)
nodeRef - capabilityName - List<Capability> getCapabilitiesByGroupId(String groupId)
groupId - The id of a group for which the list of capabilities should be retrievedList<Capability> List of capabilities for the given groupList<Capability> getCapabilitiesByGroup(Group group)
group - The group for which the list of capabilities should be retrievedList<Capability> List of capabilities for the given groupGroup getGroup(String groupId)
groupId - The id of the group which should be retrievedvoid addGroup(Group group)
group - The group which should be addedvoid removeGroup(Group group)
group - The group which should be removedCopyright © 2005–2017 Alfresco Software. All rights reserved.