org.kuali.rice.kim.framework.permission
Interface PermissionTypeService

All Superinterfaces:
KimTypeService
All Known Implementing Classes:
ActionRequestTypePermissionTypeServiceImpl, AdhocReviewPermissionTypeServiceImpl, BackdoorRestrictionPermissionTypeServiceImpl, ButtonPermissionTypeServiceImpl, ComponentFieldPermissionTypeServiceImpl, ComponentSectionPermissionTypeServiceImpl, DocumentTypeAndAttachmentTypePermissionTypeService, DocumentTypeAndEditModePermissionTypeServiceImpl, DocumentTypeAndExistingRecordsOnlyPermissionTypeServiceImpl, DocumentTypeAndNodeAndFieldsPermissionTypeServiceImpl, DocumentTypeAndNodeAndRouteStatusPermissionTypeServiceImpl, DocumentTypeAndNodeOrStatePermissionTypeServiceImpl, DocumentTypeAndRelationshipToNoteAuthorPermissionTypeService, DocumentTypePermissionTypeServiceImpl, NamespacePermissionTypeServiceImpl, NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl, ParameterPermissionTypeServiceImpl, PermissionTypeServiceBase, PopulateGroupPermissionTypeServiceImpl, ViewActionPermissionTypeServiceImpl, ViewEditModePermissionTypeServiceImpl, ViewFieldPermissionTypeServiceImpl, ViewGroupPermissionTypeServiceImpl, ViewLineActionPermissionTypeServiceImpl, ViewLineFieldPermissionTypeServiceImpl, ViewPermissionTypeServiceImpl, ViewWidgetPermissionTypeServiceImpl

public interface PermissionTypeService
extends KimTypeService

A KimTypeService with specific methods for Permissions.


Method Summary
 List<Permission> getMatchingPermissions(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 Detail

getMatchingPermissions

List<Permission> getMatchingPermissions(Map<String,String> requestedDetails,
                                        List<Permission> permissions)
                                        throws RiceIllegalArgumentException
Gets 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


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.