org.kuali.rice.krad.kim
Class ViewPermissionTypeServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
      extended by org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
          extended by org.kuali.rice.krad.kim.ViewPermissionTypeServiceImpl
All Implemented Interfaces:
PermissionTypeService, KimTypeService

public class ViewPermissionTypeServiceImpl
extends 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
DataDictionaryTypeServiceBase.KimTypeAttributeException, DataDictionaryTypeServiceBase.KimTypeAttributeValidationException
 
Field Summary
 
Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
COMMA_SEPARATOR
 
Constructor Summary
ViewPermissionTypeServiceImpl()
           
 
Method Summary
 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).
protected  List<String> getRequiredAttributes()
           
protected  List<Permission> performPermissionMatches(Map<String,String> requestedDetails, List<Permission> permissionsList)
          Filters the given permission list to return those that match the view id qualifier
 void setExactMatchPriority(Boolean exactMatchPriority)
          Setter for the exact match priority indicator
 
Methods inherited from class org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
doesPropertyNameMatch, getMatchingPermissions
 
Methods 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, validateUnmodifiableAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kim.framework.type.KimTypeService
getAttributeDefinitions, getWorkflowDocumentTypeName, getWorkflowRoutingAttributes, validateAttributes, validateAttributesAgainstExisting, validateUniqueAttributes, validateUnmodifiableAttributes
 

Constructor Detail

ViewPermissionTypeServiceImpl

public ViewPermissionTypeServiceImpl()
Method Detail

getRequiredAttributes

protected List<String> getRequiredAttributes()
Overrides:
getRequiredAttributes in class DataDictionaryTypeServiceBase

performPermissionMatches

protected List<Permission> performPermissionMatches(Map<String,String> requestedDetails,
                                                    List<Permission> permissionsList)
Filters the given permission list to return those that match the view id qualifier

By 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:
performPermissionMatches in class PermissionTypeServiceBase
Parameters:
requestedDetails - - map of details requested with permission (used for matching)
permissionsList - - list of permissions to process for matches
Returns:
List 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

public void setExactMatchPriority(Boolean exactMatchPriority)
Setter for the exact match priority indicator

Parameters:
exactMatchPriority -


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