Package org.kuali.rice.krad.kim
Class ViewPermissionTypeServiceImpl
java.lang.Object
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
org.kuali.rice.krad.kim.ViewPermissionTypeServiceImpl
- All Implemented Interfaces:
org.kuali.rice.kim.framework.permission.PermissionTypeService,org.kuali.rice.kim.framework.type.KimTypeService
- Direct Known Subclasses:
ViewActionPermissionTypeServiceImpl,ViewEditModePermissionTypeServiceImpl,ViewFieldPermissionTypeServiceImpl,ViewGroupPermissionTypeServiceImpl,ViewLineActionPermissionTypeServiceImpl,ViewLineFieldPermissionTypeServiceImpl,ViewWidgetPermissionTypeServiceImpl
public class ViewPermissionTypeServiceImpl
extends org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
Type service for the 'View' KIM type which matches on the id for a UIF view
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeException, org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeValidationException -
Field Summary
Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
COMMA_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether permissions with details that exactly match the requested details have priority over permissions with details that partially match (based on wildcard match).protected List<org.kuali.rice.kim.api.permission.Permission> performPermissionMatches(Map<String, String> requestedDetails, List<org.kuali.rice.kim.api.permission.Permission> permissionsList) Filters the given permission list to return those that match the view id qualifiervoidsetExactMatchPriority(Boolean exactMatchPriority) Setter for the exact match priority indicatorMethods inherited from class org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
doesPropertyNameMatch, getMatchingPermissionsMethods inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
areAttributesEqual, extractErrorsFromGlobalVariablesErrorMap, getAttributeDefinitions, getAttributeFormatter, getAttributeMaxValue, getAttributeMinValue, getAttributeValidatingExpression, getAttributeValue, getBusinessObjectService, getClosestParentDocumentTypeName, getDataDictionaryAttributeDefinition, getDataDictionaryService, getDictionaryValidationService, getDocumentTypeService, getNonDataDictionaryAttributeDefinition, getTypeInfoService, getUniqueAttributes, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, isCheckRequiredAttributes, performMatch, translateInputAttributes, validateAttributeFormat, validateAttributeRequired, validateAttributes, validateAttributesAgainstExisting, validateDataDictionaryAttribute, validateDataDictionaryAttribute, validateNonDataDictionaryAttribute, validatePrimitiveFromDescriptor, validateReferencesExistAndActive, validateRequiredAttributesAgainstReceived, validateUniqueAttributes, validateUnmodifiableAttributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes
-
Constructor Details
-
ViewPermissionTypeServiceImpl
public ViewPermissionTypeServiceImpl()
-
-
Method Details
-
getRequiredAttributes
- Overrides:
getRequiredAttributesin classorg.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
-
performPermissionMatches
protected List<org.kuali.rice.kim.api.permission.Permission> performPermissionMatches(Map<String, String> requestedDetails, List<org.kuali.rice.kim.api.permission.Permission> permissionsList) Filters the given permission list to return those that match the view id qualifierBy default, this method will return all exact matches if any exist, and it will only return partial matches if there are no exact matches. i.e. KR-DocumentView will have priority over KR-*. If ExactMatchPriority is false, then this method will return all exact AND partial matching permissions. By default, ExactMatchPriority will be set to true.
- Overrides:
performPermissionMatchesin classorg.kuali.rice.kns.kim.permission.PermissionTypeServiceBase- Parameters:
requestedDetails- - map of details requested with permission (used for matching)permissionsList- - list of permissions to process for matches- Returns:
- List<Permission> list of permissions that match the requested details
-
getExactMatchPriority
public boolean getExactMatchPriority()Indicates whether permissions with details that exactly match the requested details have priority over permissions with details that partially match (based on wildcard match). Default is set to true- Returns:
- boolean true if exact matches should be given priority, false if not
-
setExactMatchPriority
Setter for the exact match priority indicator- Parameters:
exactMatchPriority-
-