org.kuali.rice.krad.kim
Class NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl

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.NamespacePermissionTypeServiceImpl
              extended by org.kuali.rice.krad.kim.NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl
All Implemented Interfaces:
PermissionTypeService, KimTypeService
Direct Known Subclasses:
ParameterPermissionTypeServiceImpl, PopulateGroupPermissionTypeServiceImpl

public class NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl
extends NamespacePermissionTypeServiceImpl

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
protected  String exactMatchStringAttributeName
           
protected static String NAMESPACE_CODE
           
protected  boolean namespaceRequiredOnStoredMap
           
 
Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
COMMA_SEPARATOR
 
Constructor Summary
NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl()
           
 
Method Summary
protected  List<String> getRequiredAttributes()
           
protected  List<Permission> performPermissionMatches(Map<String,String> requestedDetails, List<Permission> permissionsList)
          Check for entries that match the namespace.
 void setExactMatchStringAttributeName(String exactMatchStringAttributeName)
           
 void setNamespaceRequiredOnStoredMap(boolean namespaceRequiredOnStoredMap)
           
protected  List<RemotableAttributeError> validateReferencesExistAndActive(KimType kimType, Map<String,String> attributes, List<RemotableAttributeError> previousValidationErrors)
          Overrides the superclass's version of this method in order to account for "namespaceCode" permission detail values containing wildcards.
 
Methods inherited from class org.kuali.rice.krad.kim.NamespacePermissionTypeServiceImpl
getExactMatchPriority, setExactMatchPriority
 
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, 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
 

Field Detail

NAMESPACE_CODE

protected static final String NAMESPACE_CODE
See Also:
Constant Field Values

exactMatchStringAttributeName

protected String exactMatchStringAttributeName

namespaceRequiredOnStoredMap

protected boolean namespaceRequiredOnStoredMap
Constructor Detail

NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl

public NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl()
Method Detail

getRequiredAttributes

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

performPermissionMatches

protected List<Permission> performPermissionMatches(Map<String,String> requestedDetails,
                                                    List<Permission> permissionsList)
Description copied from class: NamespacePermissionTypeServiceImpl
Check for entries that match the namespace. 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-NS 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 NamespacePermissionTypeServiceImpl

setExactMatchStringAttributeName

public void setExactMatchStringAttributeName(String exactMatchStringAttributeName)

setNamespaceRequiredOnStoredMap

public void setNamespaceRequiredOnStoredMap(boolean namespaceRequiredOnStoredMap)

validateReferencesExistAndActive

protected List<RemotableAttributeError> validateReferencesExistAndActive(KimType kimType,
                                                                         Map<String,String> attributes,
                                                                         List<RemotableAttributeError> previousValidationErrors)
Overrides the superclass's version of this method in order to account for "namespaceCode" permission detail values containing wildcards.

Overrides:
validateReferencesExistAndActive in class DataDictionaryTypeServiceBase


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