Class AbstractWorkflowNodeConverter

    • Constructor Detail

      • AbstractWorkflowNodeConverter

        public AbstractWorkflowNodeConverter()
    • Method Detail

      • convertNodes

        public Object convertNodes​(Object value,
                                   boolean isMany)
        Converts a Collection of NodeRefs 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.
        Specified by:
        convertNodes in interface WorkflowNodeConverter
        Parameters:
        value - Object
        isMany - boolean
        Returns:
        Object
      • convertNode

        public Object convertNode​(org.alfresco.service.cmr.repository.NodeRef value,
                                  boolean isMany)
        Converts a 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.
        Specified by:
        convertNode in interface WorkflowNodeConverter
        Parameters:
        value - NodeRef
        isMany - boolean
        Returns:
        Object
      • convertNodes

        public Object convertNodes​(Collection<org.alfresco.service.cmr.repository.NodeRef> values,
                                   boolean isMany)
        Converts a Collection of NodeRefs. 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.
        Specified by:
        convertNodes in interface WorkflowNodeConverter
        isMany - boolean
        Returns:
        Object
      • convert

        public Serializable convert​(Object object)
        Description copied from interface: WorkflowNodeConverter
        Converts the object to a NodeRef or a List of NodeRefs. The return type is dependant on the type of the object parameter. If the object parameter is a Collection then a List of NodeRefs is returned. Otherwise a single NodeRef is returned.
        Specified by:
        convert in interface WorkflowNodeConverter
        Parameters:
        object - NodeRef
        Returns:
        Serializable
      • convertNode

        public abstract Object convertNode​(org.alfresco.service.cmr.repository.NodeRef node)
        Description copied from interface: WorkflowNodeConverter
        Converts a NodeRef into the appropriate Node type.
        Specified by:
        convertNode in interface WorkflowNodeConverter
        Parameters:
        node - NodeRef
        Returns:
        Object
      • convertToNode

        public abstract org.alfresco.service.cmr.repository.NodeRef convertToNode​(Object toConvert)
        Specified by:
        convertToNode in interface WorkflowNodeConverter
        Parameters:
        toConvert - Object
        Returns:
        NodeRef