Class ValidationActionTypeServiceImpl
- All Implemented Interfaces:
ActionTypeService,RemotableAttributeOwner,ValidationActionTypeService
ValidationActionTypeService implementation- Author:
- Kuali Rice Team (rice.collab@kuali.org).
-
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.ValidationActionTypeService
VALIDATIONS_ACTION_ATTRIBUTE, VALIDATIONS_ACTION_MESSAGE_ATTRIBUTE, VALIDATIONS_ACTION_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 ActionTypeServiceFactory method for getting aActionTypeServiceloadAction(org.kuali.rice.krms.api.repository.action.ActionDefinition validationActionDefinition) voidsetValidationService(ValidationActionService mockValidationService) Methods 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.RemotableAttributeOwner
validateAttributes, validateAttributesAgainstExisting
-
Method Details
-
getInstance
Factory method for getting aActionTypeService- Returns:
- a
ActionTypeService
-
loadAction
public Action loadAction(org.kuali.rice.krms.api.repository.action.ActionDefinition validationActionDefinition) - Specified by:
loadActionin interfaceActionTypeService- Specified by:
loadActionin interfaceValidationActionTypeService
-
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- Overrides:
getAttributeFieldsin classKrmsTypeServiceBase- Parameters:
krmsTypeId- the people flow type identifier. Must not be null or blank.- Returns:
- List<RemotableAttributeField> for Validation Actions
- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException- if krmsType is null (krmsTypeId lookup returns null)
-
setValidationService
- Specified by:
setValidationServicein interfaceValidationActionTypeService
-