public abstract class AbstractWorkflowNodeConverter extends Object implements WorkflowNodeConverter
Constructor and Description |
---|
AbstractWorkflowNodeConverter() |
Modifier and Type | Method and Description |
---|---|
Serializable |
convert(Object object)
|
abstract Object |
convertNode(org.alfresco.service.cmr.repository.NodeRef node)
Converts a
NodeRef into the appropriate Node type. |
Object |
convertNode(org.alfresco.service.cmr.repository.NodeRef value,
boolean isMany)
Converts a
NodeRef . |
abstract List<? extends Object> |
convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values)
|
Object |
convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values,
boolean isMany)
Converts a
Collection of NodeRef s. |
Object |
convertNodes(Object value,
boolean isMany)
|
abstract org.alfresco.service.cmr.repository.NodeRef |
convertToNode(Object toConvert) |
List<org.alfresco.service.cmr.repository.NodeRef> |
convertToNodes(Collection<?> toConvert) |
List<org.alfresco.service.cmr.repository.NodeRef> |
convertToNodes(Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSupported
public Object convertNodes(Object value, boolean isMany)
Collection
of NodeRef
s or a single NodeRef
. The return type is
dependent on the value of isMany
. If true
then
a List
of the appropriate Node type is returned. Otherwise a
single instance of the appropriate Node type is returned.convertNodes
in interface WorkflowNodeConverter
value
- ObjectisMany
- booleanpublic Object convertNode(org.alfresco.service.cmr.repository.NodeRef value, boolean isMany)
NodeRef
. The return type is
dependent on the value of isMany
. If true
then
a List
of the appropriate Node type is returned. Otherwise a
single instance of the appropriate Node type is returned.convertNode
in interface WorkflowNodeConverter
value
- NodeRefisMany
- booleanpublic Object convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values, boolean isMany)
Collection
of NodeRef
s. The return type is
dependent on the value of isMany
. If true
then
a List
of the appropriate Node type is returned. Otherwise a
single instance of the appropriate Node type is returned.convertNodes
in interface WorkflowNodeConverter
isMany
- booleanpublic List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes(Object value)
convertToNodes
in interface WorkflowNodeConverter
public List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes(Collection<?> toConvert)
convertToNodes
in interface WorkflowNodeConverter
public Serializable convert(Object object)
WorkflowNodeConverter
NodeRef
or a List
of
NodeRef
s. The return type is dependant on the type of the object
parameter. If the object parameter is a Collection
then a
List
of NodeRef
s is returned. Otherwise a single
NodeRef
is returned.convert
in interface WorkflowNodeConverter
object
- NodeRefpublic abstract Object convertNode(org.alfresco.service.cmr.repository.NodeRef node)
WorkflowNodeConverter
NodeRef
into the appropriate Node type.convertNode
in interface WorkflowNodeConverter
node
- NodeRefpublic abstract List<? extends Object> convertNodes(Collection<org.alfresco.service.cmr.repository.NodeRef> values)
WorkflowNodeConverter
convertNodes
in interface WorkflowNodeConverter
public abstract org.alfresco.service.cmr.repository.NodeRef convertToNode(Object toConvert)
convertToNode
in interface WorkflowNodeConverter
toConvert
- ObjectCopyright © 2005–2017 Alfresco Software. All rights reserved.