Interface PermissionTypeService
- All Superinterfaces:
KimTypeService
A
KimTypeService with specific methods for Permissions.-
Method Summary
Modifier and TypeMethodDescriptiongetMatchingPermissions(Map<String, String> requestedDetails, List<Permission> permissions) Gets whether a permission assignment with the given details is applicable for the given request details.Methods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes
-
Method Details
-
getMatchingPermissions
List<Permission> getMatchingPermissions(Map<String, String> requestedDetails, List<Permission> permissions) throws RiceIllegalArgumentExceptionGets whether a permission assignment with the given details is applicable for the given request details. For example, the details for a permission (say edit) could be as follows: component = Account field = incomeStreamAccountNumber The Account component is known to belong to the KFS-COA namespace. If this service is requested... component = Account, field = All- Parameters:
requestedDetails- the requested details. cannot be null.permissions- the list of permission to check for matches. cannot be null.- Returns:
- an immutable list of matched permissions. will not return null.
- Throws:
IllegalArgumentException- if the requestedDetails or permissions is null.RiceIllegalArgumentException
-