public final class ValidationRuleTypeServiceImpl extends KrmsTypeServiceBase implements ValidationRuleTypeService
ValidationRuleTypeService implementationorg.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeDefinition, org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeValidationExceptionVALIDATIONS_RULE_TYPE_CODE_ATTRIBUTE| Modifier and Type | Method and Description |
|---|---|
List<org.kuali.rice.core.api.uif.RemotableAttributeField> |
getAttributeFields(String krmsTypeId)
get the
RemotableAttributeFields for the custom attributes of this krms type. |
static ValidationRuleTypeService |
getInstance()
Factory method for getting a
ValidationRuleTypeService |
Rule |
loadRule(RuleDefinition validationRuleDefinition) |
void |
setRepositoryToEngineTranslator(RepositoryToEngineTranslator translator) |
getDataDictionaryRemoteFieldService, getTypeAttributeDefinitions, sortFields, translateTypeAttribute, validateAttributes, validateAttributesAgainstExisting, validateNonDataDictionaryAttributecreateErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateAttributes, validateAttributesAgainstExistingpublic static ValidationRuleTypeService getInstance()
ValidationRuleTypeServiceValidationRuleTypeService corresponding to the given ValidationRuleType.public Rule loadRule(RuleDefinition validationRuleDefinition)
loadRule in interface RuleTypeServiceloadRule in interface ValidationRuleTypeServicepublic void setRepositoryToEngineTranslator(RepositoryToEngineTranslator translator)
translator - the RepositoryToEngineTranslator to setpublic List<org.kuali.rice.core.api.uif.RemotableAttributeField> getAttributeFields(String krmsTypeId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
KrmsTypeServiceBaseget 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 TypeAttributeDefinitions
getAttributeFields in interface RemotableAttributeOwnergetAttributeFields in interface ValidationRuleTypeServicegetAttributeFields in class KrmsTypeServiceBasekrmsTypeId - the people flow type identifier. Must not be null or blank.org.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.