public abstract class AbstractWorkflowPropertyHandler extends Object implements WorkflowPropertyHandler
Modifier and Type | Field and Description |
---|---|
protected MessageService |
messageService |
protected WorkflowNodeConverter |
nodeConverter |
DO_NOT_ADD
Constructor and Description |
---|
AbstractWorkflowPropertyHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkType(org.alfresco.service.namespace.QName key,
Object value,
Class<?> type) |
protected Object |
convertAssociationValue(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef,
Serializable value) |
protected Object |
convertPropertyValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propDef,
Serializable value) |
protected WorkflowException |
getInvalidPropertyValueException(org.alfresco.service.namespace.QName key,
Object value) |
protected abstract org.alfresco.service.namespace.QName |
getKey() |
protected Object |
handleAssociation(Serializable value,
org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef) |
protected Object |
handleDefaultProperty(Object task,
org.alfresco.service.cmr.dictionary.TypeDefinition type,
org.alfresco.service.namespace.QName key,
Serializable value) |
protected Object |
handleProperty(Serializable value,
org.alfresco.service.cmr.dictionary.PropertyDefinition propDef) |
void |
setMessageService(MessageService messageService) |
void |
setNodeConverter(WorkflowNodeConverter nodeConverter) |
void |
setRegistry(WorkflowPropertyHandlerRegistry registry)
Register this WorkflowPropertyHandler with the provided registry.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleProperty
protected WorkflowNodeConverter nodeConverter
protected MessageService messageService
protected Object handleAssociation(Serializable value, org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef)
value
- SerializableassocDef
- AssociationDefinitionprotected Object handleProperty(Serializable value, org.alfresco.service.cmr.dictionary.PropertyDefinition propDef)
value
- SerializablepropDef
- PropertyDefinitionprotected Object convertPropertyValue(org.alfresco.service.cmr.dictionary.PropertyDefinition propDef, Serializable value)
protected Object convertAssociationValue(org.alfresco.service.cmr.dictionary.AssociationDefinition assocDef, Serializable value)
protected WorkflowException getInvalidPropertyValueException(org.alfresco.service.namespace.QName key, Object value)
public void setRegistry(WorkflowPropertyHandlerRegistry registry)
registry
- WorkflowPropertyHandlerRegistrypublic void setNodeConverter(WorkflowNodeConverter nodeConverter)
nodeConverter
- the nodeConverter to setpublic void setMessageService(MessageService messageService)
messageService
- the messageService to setprotected abstract org.alfresco.service.namespace.QName getKey()
protected void checkType(org.alfresco.service.namespace.QName key, Object value, Class<?> type)
protected Object handleDefaultProperty(Object task, org.alfresco.service.cmr.dictionary.TypeDefinition type, org.alfresco.service.namespace.QName key, Serializable value)
Copyright © 2005–2017 Alfresco Software. All rights reserved.