Package org.kuali.rice.krad.kim
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
DataDictionaryTypeServiceBase.KimTypeAttributeException, DataDictionaryTypeServiceBase.KimTypeAttributeValidationException -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final Stringprotected booleanFields inherited from class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
COMMA_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.voidsetCriteriaLookupService(CriteriaLookupService criteriaLookupService) voidsetExactMatchStringAttributeName(String exactMatchStringAttributeName) voidsetNamespaceRequiredOnStoredMap(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, setExactMatchPriorityMethods 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, 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
-
Field Details
-
NAMESPACE_CODE
- See Also:
-
exactMatchStringAttributeName
-
namespaceRequiredOnStoredMap
protected boolean namespaceRequiredOnStoredMap
-
-
Constructor Details
-
NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl
public NamespaceWildcardAllowedAndOrStringExactMatchPermissionTypeServiceImpl()
-
-
Method Details
-
getRequiredAttributes
- Overrides:
getRequiredAttributesin classDataDictionaryTypeServiceBase
-
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:NamespacePermissionTypeServiceImplCheck 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:
performPermissionMatchesin classNamespacePermissionTypeServiceImpl
-
setExactMatchStringAttributeName
-
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:
validateReferencesExistAndActivein classDataDictionaryTypeServiceBase
-
getCriteriaLookupService
-
setCriteriaLookupService
-