Package org.alfresco.repo.workflow
Interface WorkflowNodeConverter
- All Known Implementing Classes:
AbstractWorkflowNodeConverter,ActivitiNodeConverter
public interface WorkflowNodeConverter
- Since:
- 3.4.e
- Author:
- Nick Smith
-
Method Summary
Modifier and TypeMethodDescriptionconvertNode(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.convertToNode(Object toConvert) convertToNodes(Object value) convertToNodes(Collection<?> toConvert) booleanisSupported(Object object)
-
Method Details
-
convertNode
Converts aNodeRefinto the appropriate Node type.- Parameters:
node- NodeRef- 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.- Parameters:
value- NodeRefisMany- boolean- Returns:
- Object
-
convertNodes
- Returns:
- List
-
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.- Parameters:
isMany- boolean- Returns:
- Object
-
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.- Parameters:
value- ObjectisMany- boolean- Returns:
- Object
-
convertToNode
- Parameters:
toConvert- Object- Returns:
- NodeRef
-
convertToNodes
-
convertToNodes
-
isSupported
-
convert
Converts 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.- Parameters:
object- NodeRef- Returns:
- Serializable
-