Class ValidationRuleTypeServiceImpl
- All Implemented Interfaces:
RemotableAttributeOwner,RuleTypeService,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 TypeMethodDescriptionList<org.kuali.rice.core.api.uif.RemotableAttributeField> getAttributeFields(String krmsTypeId) get theRemotableAttributeFields for the custom attributes of this krms type.static ValidationRuleTypeServiceFactory method for getting aValidationRuleTypeServiceloadRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition validationRuleDefinition) voidMethods inherited from class org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
getDataDictionaryRemoteFieldService, getTypeAttributeDefinitions, sortFields, translateTypeAttribute, validateAttributes, validateAttributesAgainstExisting, validateNonDataDictionaryAttributeMethods inherited from class org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase
createErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActiveMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krms.framework.type.ValidationRuleTypeService
validateAttributes, validateAttributesAgainstExisting
-
Method Details
-
getInstance
Factory method for getting aValidationRuleTypeService- Returns:
- a
ValidationRuleTypeServicecorresponding to the givenValidationRuleType.
-
loadRule
public Rule loadRule(org.kuali.rice.krms.api.repository.rule.RuleDefinition validationRuleDefinition) - Specified by:
loadRulein interfaceRuleTypeService- Specified by:
loadRulein interfaceValidationRuleTypeService
-
setRepositoryToEngineTranslator
-
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:KrmsTypeServiceBaseget the
RemotableAttributeFields for the custom attributes of this krms type. This implementation will (by default) return any attributes mapped to the type viaKrmsTypeAttributeBo. If there is is a component name defined on the relatedKrmsAttributeDefinitionBothen that will be used to generate theRemotableAttributeField. 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 theRemotableAttributeFields from the returnedAttributeValidatingTypeServiceBase.TypeAttributeDefinitions- Specified by:
getAttributeFieldsin interfaceRemotableAttributeOwner- Specified by:
getAttributeFieldsin interfaceValidationRuleTypeService- Overrides:
getAttributeFieldsin classKrmsTypeServiceBase- Parameters:
krmsTypeId- the people flow type identifier. Must not be null or blank.- Returns:
- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-