public class PeopleFlowActionTypeService extends KrmsTypeServiceBase implements ActionTypeService
ActionTypeService implementation for PeopleFlow actions. The loaded Actions will place or extend
an attribute in the EngineResults whose key is "peopleFlowSelected" and value
is a String of the form (using EBNF-like notation):
(notification|approval):<peopleFlowId>{,(notification|approval):<peopleFlowId>}
An example value with two people flow actions specified would be:
"A:1000,F:1001"
| Modifier and Type | Class and Description |
|---|---|
static class |
PeopleFlowActionTypeService.Type
enum used to specify the action type to be specified in the vended actions.
|
org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeDefinition, org.kuali.rice.kns.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeValidationException| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_FIELD_NAME |
static String |
NAME_ATTRIBUTE_FIELD |
getAttributeFields, getDataDictionaryRemoteFieldService, getTypeAttributeDefinitions, sortFields, validateNonDataDictionaryAttributecreateErrorString, extractErrorsFromGlobalVariablesErrorMap, getAttributeErrorLabel, getAttributeFormatter, getAttributeValidatingExpression, getConfigurationService, getDataDictionaryService, getDictionaryValidationService, validateAttributeFormat, validateAttributeRequired, validateDataDictionaryAttribute, validatePrimitiveAttributeFromDescriptor, validateReferencesExistAndActiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributeFieldspublic static final String ATTRIBUTE_FIELD_NAME
public static final String NAME_ATTRIBUTE_FIELD
public static PeopleFlowActionTypeService getInstance(PeopleFlowActionTypeService.Type type)
PeopleFlowActionTypeServicetype - indicates the type of action that the returned PeopleFlowActionTypeService will producePeopleFlowActionTypeService corresponding to the given PeopleFlowActionTypeService.Type.public void setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService)
ConfigurationService to use internally.configurationService - public Action loadAction(ActionDefinition actionDefinition)
loadAction in interface ActionTypeServiceactionDefinition - Action as defined by the given ActionDefinitionorg.kuali.rice.core.api.exception.RiceIllegalArgumentException - is actionDefinition is null, attributes do not contain the ATTRIBUTE_FIELD_NAME key,
or the NAME_ATTRIBUTE_FIELD key.public org.kuali.rice.core.api.uif.RemotableAttributeField translateTypeAttribute(KrmsTypeAttribute inputAttribute, KrmsAttributeDefinition attributeDefinition)
KrmsTypeServiceBaseKrmsTypeAttribute into a RemotableAttributeField.
Override this method to provide custom translation of certain attributes.translateTypeAttribute in class KrmsTypeServiceBaseinputAttribute - the KrmsTypeAttribute to translateattributeDefinition - the KrmsAttributeDefinition for the given inputAttributeRemotableAttributeField for the given inputAttributepublic List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributes(String krmsTypeId, Map<String,String> attributes) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
validateAttributes in interface RemotableAttributeOwnervalidateAttributes in class KrmsTypeServiceBasekrmsTypeId - the people flow type identifier. Must not be null or blank.attributes - the attributes to validate. Cannot be null.org.kuali.rice.core.api.exception.RiceIllegalArgumentException - if required attribute ATTRIBUTE_FIELD_NAME is not in the given attributespublic List<org.kuali.rice.core.api.uif.RemotableAttributeError> validateAttributesAgainstExisting(String krmsTypeId, Map<String,String> newAttributes, Map<String,String> oldAttributes) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
validateAttributesAgainstExisting in interface RemotableAttributeOwnervalidateAttributesAgainstExisting in class KrmsTypeServiceBaseorg.kuali.rice.core.api.exception.RiceIllegalArgumentExceptionpublic org.kuali.rice.kew.api.peopleflow.PeopleFlowService getPeopleFlowService()
PeopleFlowServicepublic void setPeopleFlowService(org.kuali.rice.kew.api.peopleflow.PeopleFlowService peopleFlowService)
PeopleFlowService to use internally.peopleFlowService - Copyright © 2005–2016 The Kuali Foundation. All rights reserved.