Class ValidationRuleTypeServiceImpl

java.lang.Object
org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase
org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
org.kuali.rice.krms.impl.validation.ValidationRuleTypeServiceImpl
All Implemented Interfaces:
org.kuali.rice.krms.framework.type.RemotableAttributeOwner, org.kuali.rice.krms.framework.type.RuleTypeService, org.kuali.rice.krms.framework.type.ValidationRuleTypeService

public final class ValidationRuleTypeServiceImpl extends KrmsTypeServiceBase implements org.kuali.rice.krms.framework.type.ValidationRuleTypeService
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase

    org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeDefinition, org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeValidationException
  • Field Summary

    Fields inherited from interface org.kuali.rice.krms.framework.type.ValidationRuleTypeService

    VALIDATIONS_RULE_TYPE_CODE_ATTRIBUTE
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.kuali.rice.core.api.uif.RemotableAttributeField>
    get the RemotableAttributeFields for the custom attributes of this krms type.
    static org.kuali.rice.krms.framework.type.ValidationRuleTypeService
    Factory method for getting a ValidationRuleTypeService
    org.kuali.rice.krms.framework.engine.Rule
    loadRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition validationRuleDefinition)
     
    void
     

    Methods inherited from class org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase

    createErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActive

    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.krms.framework.type.ValidationRuleTypeService

    validateAttributes, validateAttributesAgainstExisting
  • Method Details

    • getInstance

      public static org.kuali.rice.krms.framework.type.ValidationRuleTypeService getInstance()
      Factory method for getting a ValidationRuleTypeService
      Returns:
      a ValidationRuleTypeService corresponding to the given ValidationRuleType.
    • loadRule

      public org.kuali.rice.krms.framework.engine.Rule loadRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition validationRuleDefinition)
      Specified by:
      loadRule in interface org.kuali.rice.krms.framework.type.RuleTypeService
      Specified by:
      loadRule in interface org.kuali.rice.krms.framework.type.ValidationRuleTypeService
    • setRepositoryToEngineTranslator

      public void setRepositoryToEngineTranslator(RepositoryToEngineTranslator translator)
    • getAttributeFields

      public List<org.kuali.rice.core.api.uif.RemotableAttributeField> getAttributeFields(String krmsTypeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Description copied from class: KrmsTypeServiceBase

      get the RemotableAttributeFields for the custom attributes of this krms type. This implementation will (by default) return any attributes mapped to the type via KrmsTypeAttributeBo. If there is is a component name defined on the related KrmsAttributeDefinitionBo then that will be used to generate the RemotableAttributeField. If not, then a simple text input will be produced.

      An extending class can also override the KrmsTypeServiceBase.translateTypeAttribute(org.kuali.rice.krms.api.repository.type.KrmsTypeAttribute, org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition) method which is called from here, and within it hand create the RemotableAttributeField for a certain attribute.

      Also handy for extenders to know, this method delegates to KrmsTypeServiceBase.getTypeAttributeDefinitions(String) and then pulls out the RemotableAttributeFields from the returned AttributeValidatingTypeServiceBase.TypeAttributeDefinitions

      Specified by:
      getAttributeFields in interface org.kuali.rice.krms.framework.type.RemotableAttributeOwner
      Specified by:
      getAttributeFields in interface org.kuali.rice.krms.framework.type.ValidationRuleTypeService
      Overrides:
      getAttributeFields in class KrmsTypeServiceBase
      Parameters:
      krmsTypeId - the people flow type identifier. Must not be null or blank.
      Returns:
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException