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.krad.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeDefinition, org.kuali.rice.krad.datadictionary.validation.AttributeValidatingTypeServiceBase.TypeAttributeValidationException| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_FIELD_NAME |
static String |
NAME_ATTRIBUTE_FIELD |
| Constructor and Description |
|---|
PeopleFlowActionTypeService(PeopleFlowActionTypeService.Type type)
Constructs a PeopleFlowActionTypeService of the given Type
|
| Modifier and Type | Method and Description |
|---|---|
static PeopleFlowActionTypeService |
getInstance(PeopleFlowActionTypeService.Type type)
Factory method for getting a
PeopleFlowActionTypeService |
org.kuali.rice.kew.api.peopleflow.PeopleFlowService |
getPeopleFlowService() |
Action |
loadAction(org.kuali.rice.krms.api.repository.action.ActionDefinition actionDefinition) |
void |
setConfigurationService(org.kuali.rice.core.api.config.property.ConfigurationService configurationService)
inject the
ConfigurationService to use internally. |
void |
setPeopleFlowService(org.kuali.rice.kew.api.peopleflow.PeopleFlowService peopleFlowService)
inject the
PeopleFlowService to use internally. |
org.kuali.rice.core.api.uif.RemotableAttributeField |
translateTypeAttribute(org.kuali.rice.krms.api.repository.type.KrmsTypeAttribute inputAttribute,
org.kuali.rice.krms.api.repository.type.KrmsAttributeDefinition attributeDefinition)
Translate a
KrmsTypeAttribute into a RemotableAttributeField. |
List<org.kuali.rice.core.api.uif.RemotableAttributeError> |
validateAttributes(String krmsTypeId,
Map<String,String> attributes)
Attributes must include a ATTRIBUTE_FIELD_NAME
|
List<org.kuali.rice.core.api.uif.RemotableAttributeError> |
validateAttributesAgainstExisting(String krmsTypeId,
Map<String,String> newAttributes,
Map<String,String> oldAttributes) |
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 PeopleFlowActionTypeService(PeopleFlowActionTypeService.Type type)
type - requiredIllegalArgumentException - if type is nullpublic 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(org.kuali.rice.krms.api.repository.action.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(org.kuali.rice.krms.api.repository.type.KrmsTypeAttribute inputAttribute, org.kuali.rice.krms.api.repository.type.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–2017 The Kuali Foundation. All rights reserved.