org.kuali.rice.krms.impl.validation
Class ValidationActionTypeServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase
      extended by org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
          extended by org.kuali.rice.krms.impl.validation.ValidationActionTypeServiceImpl
All Implemented Interfaces:
ActionTypeService, RemotableAttributeOwner, ValidationActionTypeService

public class ValidationActionTypeServiceImpl
extends KrmsTypeServiceBase
implements ValidationActionTypeService

ValidationActionTypeService implementation

Author:
Kuali Rice Team (rice.collab@kuali.org).

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase
AttributeValidatingTypeServiceBase.TypeAttributeDefinition, 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
 List<RemotableAttributeField> getAttributeFields(String krmsTypeId)
          get the RemotableAttributeFields for the custom attributes of this krms type.
static ActionTypeService getInstance()
          Factory method for getting a ActionTypeService
 Action loadAction(ActionDefinition validationActionDefinition)
          Load the Action given the ActionDefinition
 void setValidationService(ValidationActionService mockValidationService)
          Set the ValidationActionService.
 
Methods inherited from class org.kuali.rice.krms.impl.type.KrmsTypeServiceBase
getDataDictionaryRemoteFieldService, getTypeAttributeDefinitions, sortFields, translateTypeAttribute, validateAttributes, validateAttributesAgainstExisting, validateNonDataDictionaryAttribute
 
Methods inherited from class org.kuali.rice.kns.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.RemotableAttributeOwner
validateAttributes, validateAttributesAgainstExisting
 

Method Detail

getInstance

public static ActionTypeService getInstance()
Factory method for getting a ActionTypeService

Returns:
a ActionTypeService

loadAction

public Action loadAction(ActionDefinition validationActionDefinition)
Description copied from interface: ActionTypeService
Load the Action given the ActionDefinition

Specified by:
loadAction in interface ActionTypeService
Specified by:
loadAction in interface ValidationActionTypeService
Parameters:
validationActionDefinition - ActionDefinition to create the Action from
Returns:
Action created from the given ActionDefinition

getAttributeFields

public List<RemotableAttributeField> getAttributeFields(String krmsTypeId)
                                                 throws 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 TypeAttributeDefinitions

Specified by:
getAttributeFields in interface RemotableAttributeOwner
Overrides:
getAttributeFields in class KrmsTypeServiceBase
Parameters:
krmsTypeId - the people flow type identifier. Must not be null or blank.
Returns:
List for Validation Actions
Throws:
RiceIllegalArgumentException - if krmsType is null (krmsTypeId lookup returns null)

setValidationService

public void setValidationService(ValidationActionService mockValidationService)
Description copied from interface: ValidationActionTypeService
Set the ValidationActionService.

Specified by:
setValidationService in interface ValidationActionTypeService
Parameters:
mockValidationService - the ValidationActionService to use.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.