Class NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl

java.lang.Object
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
org.kuali.rice.kns.kim.permission.PermissionTypeServiceBase
org.kuali.rice.krad.kim.NamespacePermissionTypeServiceImpl
org.kuali.rice.krad.kim.NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl
All Implemented Interfaces:
org.kuali.rice.kim.framework.permission.PermissionTypeService, org.kuali.rice.kim.framework.type.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

    org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeException, org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase.KimTypeAttributeValidationException
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected static final String
     
    protected boolean
     

    Fields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase

    COMMA_SEPARATOR
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kuali.rice.core.api.criteria.CriteriaLookupService
     
    protected List<String>
     
    protected List<org.kuali.rice.kim.api.permission.Permission>
    performPermissionMatches(Map<String,String> requestedDetails, List<org.kuali.rice.kim.api.permission.Permission> permissionsList)
    Check for entries that match the namespace.
    void
    setCriteriaLookupService(org.kuali.rice.core.api.criteria.CriteriaLookupService criteriaLookupService)
     
    void
    setExactMatchStringAttributeName(String exactMatchStringAttributeName)
     
    void
    setNamespaceRequiredOnStoredMap(boolean namespaceRequiredOnStoredMap)
     
    protected List<org.kuali.rice.core.api.uif.RemotableAttributeError>
    validateReferencesExistAndActive(org.kuali.rice.kim.api.type.KimType kimType, Map<String,String> attributes, List<org.kuali.rice.core.api.uif.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 Details

    • NAMESPACE_CODE

      protected static final String NAMESPACE_CODE
      See Also:
    • exactMatchStringAttributeName

      protected String exactMatchStringAttributeName
    • namespaceRequiredOnStoredMap

      protected boolean namespaceRequiredOnStoredMap
  • Constructor Details

    • NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl

      public NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl()
  • Method Details

    • getRequiredAttributes

      protected List<String> getRequiredAttributes()
      Overrides:
      getRequiredAttributes in class org.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)
      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<org.kuali.rice.core.api.uif.RemotableAttributeError> validateReferencesExistAndActive(org.kuali.rice.kim.api.type.KimType kimType, Map<String,String> attributes, List<org.kuali.rice.core.api.uif.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 org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
    • getCriteriaLookupService

      public org.kuali.rice.core.api.criteria.CriteriaLookupService getCriteriaLookupService()
    • setCriteriaLookupService

      public void setCriteriaLookupService(org.kuali.rice.core.api.criteria.CriteriaLookupService criteriaLookupService)