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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Serializableconvert(Object object)ObjectconvertNode(org.alfresco.service.cmr.repository.NodeRef node)Converts aNodeRefinto the appropriate Node type.ObjectconvertNode(org.alfresco.service.cmr.repository.NodeRef value, boolean isMany)Converts aNodeRef.ObjectconvertNodes(Object value, boolean isMany)List<? extends Object>convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values)ObjectconvertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values, boolean isMany)Converts aCollectionofNodeRefs.org.alfresco.service.cmr.repository.NodeRefconvertToNode(Object toConvert)List<org.alfresco.service.cmr.repository.NodeRef>convertToNodes(Object value)List<org.alfresco.service.cmr.repository.NodeRef>convertToNodes(Collection<?> toConvert)booleanisSupported(Object object)
-
-
-
Method Detail
-
convertNode
Object convertNode(org.alfresco.service.cmr.repository.NodeRef node)
Converts aNodeRefinto the appropriate Node type.- Parameters:
node- NodeRef- Returns:
- Object
-
convertNode
Object convertNode(org.alfresco.service.cmr.repository.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.- Parameters:
value- NodeRefisMany- boolean- Returns:
- Object
-
convertNodes
List<? extends Object> convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values)
- Returns:
- List
-
convertNodes
Object convertNodes(Collection<org.alfresco.service.cmr.repository.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.- Parameters:
isMany- boolean- Returns:
- Object
-
convertNodes
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.- Parameters:
value- ObjectisMany- boolean- Returns:
- Object
-
convertToNode
org.alfresco.service.cmr.repository.NodeRef convertToNode(Object toConvert)
- Parameters:
toConvert- Object- Returns:
- NodeRef
-
convertToNodes
List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes(Collection<?> toConvert)
-
isSupported
boolean isSupported(Object object)
-
convert
Serializable convert(Object object)
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
-
-