Class DataDictionaryTypeServiceBase

java.lang.Object
org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase
All Implemented Interfaces:
org.kuali.rice.kim.framework.type.KimTypeService
Direct Known Subclasses:
GroupTypeServiceBase, KimResponsibilityTypeServiceBase, PermissionTypeServiceBase, RoleTypeServiceBase

@Deprecated public class DataDictionaryTypeServiceBase extends Object implements org.kuali.rice.kim.framework.type.KimTypeService
Deprecated.
A krad integrated type service base class will be provided in the future.
A base class for KimTypeService implementations which read attribute-related information from the Data Dictionary. This implementation is currently written against the KNS apis for Data Dictionary. Additionally, it supports the ability to read non-Data Dictionary attribute information from the KimTypeInfoService.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

  • Constructor Details

    • DataDictionaryTypeServiceBase

      public DataDictionaryTypeServiceBase()
      Deprecated.
  • Method Details

    • getWorkflowDocumentTypeName

      public String getWorkflowDocumentTypeName()
      Deprecated.
      Specified by:
      getWorkflowDocumentTypeName in interface org.kuali.rice.kim.framework.type.KimTypeService
    • getWorkflowRoutingAttributes

      public List<String> getWorkflowRoutingAttributes(String routeLevel)
      Deprecated.
      Specified by:
      getWorkflowRoutingAttributes in interface org.kuali.rice.kim.framework.type.KimTypeService
    • getAttributeDefinitions

      public List<org.kuali.rice.kim.api.type.KimAttributeField> getAttributeDefinitions(String kimTypeId)
      Deprecated.
      Specified by:
      getAttributeDefinitions in interface org.kuali.rice.kim.framework.type.KimTypeService
    • validateAttributes

      public List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributes(String kimTypeId, Map<String,String> attributes)
      Deprecated.
      This is the default implementation. It calls into the service for each attribute to validate it there. No combination validation is done. That should be done by overriding this method.
      Specified by:
      validateAttributes in interface org.kuali.rice.kim.framework.type.KimTypeService
    • validateAttributesAgainstExisting

      public List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributesAgainstExisting(String kimTypeId, Map<String,String> newAttributes, Map<String,String> oldAttributes)
      Deprecated.
      Specified by:
      validateAttributesAgainstExisting in interface org.kuali.rice.kim.framework.type.KimTypeService
    • performMatch

      protected boolean performMatch(Map<String,String> inputAttributes, Map<String,String> storedAttributes)
      Deprecated.
      This method matches input attribute set entries and standard attribute set entries using literal string match.
    • translateInputAttributes

      protected Map<String,String> translateInputAttributes(Map<String,String> qualification)
      Deprecated.
    • 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)
      Deprecated.
    • validateAttributeRequired

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributeRequired(String kimTypeId, String objectClassName, String attributeName, Object attributeValue, String errorKey)
      Deprecated.
    • validateDataDictionaryAttribute

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateDataDictionaryAttribute(String kimTypeId, String entryName, Object object, PropertyDescriptor propertyDescriptor)
      Deprecated.
    • validatePrimitiveFromDescriptor

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validatePrimitiveFromDescriptor(String kimTypeId, String entryName, Object object, PropertyDescriptor propertyDescriptor)
      Deprecated.
    • getAttributeValidatingExpression

      protected Pattern getAttributeValidatingExpression(org.kuali.rice.kim.api.type.KimAttributeField definition)
      Deprecated.
    • getAttributeFormatter

      protected org.kuali.rice.core.web.format.Formatter getAttributeFormatter(org.kuali.rice.kim.api.type.KimAttributeField definition)
      Deprecated.
    • getAttributeMinValue

      protected Double getAttributeMinValue(org.kuali.rice.kim.api.type.KimAttributeField definition)
      Deprecated.
    • getAttributeMaxValue

      protected Double getAttributeMaxValue(org.kuali.rice.kim.api.type.KimAttributeField definition)
      Deprecated.
    • validateAttributeFormat

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributeFormat(String kimTypeId, String objectClassName, String attributeName, String attributeValue, String errorKey)
      Deprecated.
    • extractErrorsFromGlobalVariablesErrorMap

      protected List<String> extractErrorsFromGlobalVariablesErrorMap(String attributeName)
      Deprecated.
    • validateNonDataDictionaryAttribute

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateNonDataDictionaryAttribute(org.kuali.rice.kim.api.type.KimTypeAttribute attr, String key, String value)
      Deprecated.
    • validateDataDictionaryAttribute

      protected List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateDataDictionaryAttribute(org.kuali.rice.kim.api.type.KimTypeAttribute attr, String key, String value)
      Deprecated.
    • getDataDictionaryAttributeDefinition

      protected org.kuali.rice.kim.api.type.KimAttributeField getDataDictionaryAttributeDefinition(String namespaceCode, String kimTypeId, org.kuali.rice.kim.api.type.KimTypeAttribute typeAttribute, List<String> uniqueAttributes)
      Deprecated.
      Parameters:
      namespaceCode -
      typeAttribute -
      Returns:
      an AttributeDefinition for the given KimTypeAttribute, or null no base AttributeDefinition matches the typeAttribute parameter's attributeName.
    • getNonDataDictionaryAttributeDefinition

      protected org.kuali.rice.kim.api.type.KimAttributeField getNonDataDictionaryAttributeDefinition(String namespaceCode, String kimTypeId, org.kuali.rice.kim.api.type.KimTypeAttribute typeAttribute, List<String> uniqueAttributes)
      Deprecated.
    • validateRequiredAttributesAgainstReceived

      protected void validateRequiredAttributesAgainstReceived(Map<String,String> receivedAttributes)
      Deprecated.
    • validateUniqueAttributes

      public List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateUniqueAttributes(String kimTypeId, Map<String,String> newAttributes, Map<String,String> oldAttributes)
      Deprecated.
      Specified by:
      validateUniqueAttributes in interface org.kuali.rice.kim.framework.type.KimTypeService
    • areAttributesEqual

      protected boolean areAttributesEqual(List<String> uniqueAttributeNames, Map<String,String> aSet1, Map<String,String> aSet2)
      Deprecated.
    • getAttributeValue

      protected String getAttributeValue(Map<String,String> aSet, String attributeName)
      Deprecated.
    • getUniqueAttributes

      protected List<String> getUniqueAttributes(String kimTypeId)
      Deprecated.
    • validateUnmodifiableAttributes

      public List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateUnmodifiableAttributes(String kimTypeId, Map<String,String> originalAttributes, Map<String,String> newAttributes)
      Deprecated.
      Specified by:
      validateUnmodifiableAttributes in interface org.kuali.rice.kim.framework.type.KimTypeService
    • getRequiredAttributes

      protected List<String> getRequiredAttributes()
      Deprecated.
    • isCheckRequiredAttributes

      protected boolean isCheckRequiredAttributes()
      Deprecated.
    • getClosestParentDocumentTypeName

      protected String getClosestParentDocumentTypeName(org.kuali.rice.kew.api.doctype.DocumentType documentType, Set<String> potentialParentDocumentTypeNames)
      Deprecated.
    • getTypeInfoService

      protected org.kuali.rice.kim.api.type.KimTypeInfoService getTypeInfoService()
      Deprecated.
    • getBusinessObjectService

      protected BusinessObjectService getBusinessObjectService()
      Deprecated.
    • getDictionaryValidationService

      protected DictionaryValidationService getDictionaryValidationService()
      Deprecated.
    • getDataDictionaryService

      protected org.kuali.rice.krad.service.DataDictionaryService getDataDictionaryService()
      Deprecated.
    • getDocumentTypeService

      protected org.kuali.rice.kew.api.doctype.DocumentTypeService getDocumentTypeService()
      Deprecated.