Package org.alfresco.repo.workflow
Class AbstractWorkflowNodeConverter
java.lang.Object
org.alfresco.repo.workflow.AbstractWorkflowNodeConverter
- All Implemented Interfaces:
WorkflowNodeConverter
- Direct Known Subclasses:
ActivitiNodeConverter
- Since:
- 3.4.e
- Author:
- Nick Smith
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectconvertNode(NodeRef node) Converts aNodeRefinto the appropriate Node type.convertNode(NodeRef value, boolean isMany) Converts aNodeRef.convertNodes(Object value, boolean isMany) convertNodes(Collection<NodeRef> values) convertNodes(Collection<NodeRef> values, boolean isMany) Converts aCollectionofNodeRefs.abstract NodeRefconvertToNode(Object toConvert) convertToNodes(Object value) convertToNodes(Collection<?> toConvert) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.repo.workflow.WorkflowNodeConverter
isSupported
-
Constructor Details
-
AbstractWorkflowNodeConverter
public AbstractWorkflowNodeConverter()
-
-
Method Details
-
convertNodes
Converts aCollectionofNodeRefs or a singleNodeRef. The return type is dependent on the value ofisMany. Iftruethen aListof the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.- Specified by:
convertNodesin interfaceWorkflowNodeConverter- Parameters:
value- ObjectisMany- boolean- Returns:
- Object
-
convertNode
Converts aNodeRef. The return type is dependent on the value ofisMany. Iftruethen aListof the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.- Specified by:
convertNodein interfaceWorkflowNodeConverter- Parameters:
value- NodeRefisMany- boolean- Returns:
- Object
-
convertNodes
Converts aCollectionofNodeRefs. The return type is dependent on the value ofisMany. Iftruethen aListof the appropriate Node type is returned. Otherwise a single instance of the appropriate Node type is returned.- Specified by:
convertNodesin interfaceWorkflowNodeConverterisMany- boolean- Returns:
- Object
-
convertToNodes
- Specified by:
convertToNodesin interfaceWorkflowNodeConverter
-
convertToNodes
- Specified by:
convertToNodesin interfaceWorkflowNodeConverter
-
convert
Description copied from interface:WorkflowNodeConverterConverts the object to aNodeRefor aListofNodeRefs. The return type is dependant on the type of the object parameter. If the object parameter is aCollectionthen aListofNodeRefs is returned. Otherwise a singleNodeRefis returned.- Specified by:
convertin interfaceWorkflowNodeConverter- Parameters:
object- NodeRef- Returns:
- Serializable
-
convertNode
Description copied from interface:WorkflowNodeConverterConverts aNodeRefinto the appropriate Node type.- Specified by:
convertNodein interfaceWorkflowNodeConverter- Parameters:
node- NodeRef- Returns:
- Object
-
convertNodes
Description copied from interface:WorkflowNodeConverter- Specified by:
convertNodesin interfaceWorkflowNodeConverter- Returns:
- List
-
convertToNode
- Specified by:
convertToNodein interfaceWorkflowNodeConverter- Parameters:
toConvert- Object- Returns:
- NodeRef
-