Package org.alfresco.repo.workflow
Class AbstractWorkflowNodeConverter
- java.lang.Object
-
- org.alfresco.repo.workflow.AbstractWorkflowNodeConverter
-
- All Implemented Interfaces:
WorkflowNodeConverter
- Direct Known Subclasses:
ActivitiNodeConverter
public abstract class AbstractWorkflowNodeConverter extends Object implements WorkflowNodeConverter
- Since:
- 3.4.e
- Author:
- Nick Smith
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowNodeConverter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Serializableconvert(Object object)abstract ObjectconvertNode(NodeRef node)Converts aNodeRefinto the appropriate Node type.ObjectconvertNode(NodeRef value, boolean isMany)Converts aNodeRef.ObjectconvertNodes(Object value, boolean isMany)abstract List<? extends Object>convertNodes(Collection<NodeRef> values)ObjectconvertNodes(Collection<NodeRef> values, boolean isMany)Converts aCollectionofNodeRefs.abstract NodeRefconvertToNode(Object toConvert)List<NodeRef>convertToNodes(Object value)List<NodeRef>convertToNodes(Collection<?> toConvert)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.workflow.WorkflowNodeConverter
isSupported
-
-
-
-
Method Detail
-
convertNodes
public Object convertNodes(Object value, boolean isMany)
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
public Object convertNode(NodeRef value, boolean isMany)
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
public Object convertNodes(Collection<NodeRef> values, boolean isMany)
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
public List<NodeRef> convertToNodes(Object value)
- Specified by:
convertToNodesin interfaceWorkflowNodeConverter
-
convertToNodes
public List<NodeRef> convertToNodes(Collection<?> toConvert)
- Specified by:
convertToNodesin interfaceWorkflowNodeConverter
-
convert
public Serializable convert(Object object)
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
public abstract Object convertNode(NodeRef node)
Description copied from interface:WorkflowNodeConverterConverts aNodeRefinto the appropriate Node type.- Specified by:
convertNodein interfaceWorkflowNodeConverter- Parameters:
node- NodeRef- Returns:
- Object
-
convertNodes
public abstract List<? extends Object> convertNodes(Collection<NodeRef> values)
Description copied from interface:WorkflowNodeConverter- Specified by:
convertNodesin interfaceWorkflowNodeConverter- Returns:
- List
-
convertToNode
public abstract NodeRef convertToNode(Object toConvert)
- Specified by:
convertToNodein interfaceWorkflowNodeConverter- Parameters:
toConvert- Object- Returns:
- NodeRef
-
-