Interface WorkflowNodeConverter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.Serializable convert​(java.lang.Object object)
      Converts the object to a NodeRef or a List of NodeRefs.
      java.lang.Object convertNode​(org.alfresco.service.cmr.repository.NodeRef node)
      Converts a NodeRef into the appropriate Node type.
      java.lang.Object convertNode​(org.alfresco.service.cmr.repository.NodeRef value, boolean isMany)
      Converts a NodeRef.
      java.lang.Object convertNodes​(java.lang.Object value, boolean isMany)
      Converts a Collection of NodeRefs or a single NodeRef.
      java.util.List<? extends java.lang.Object> convertNodes​(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> values)
      Converts a Collection of NodeRefs into a List of the appropriate Node type.
      java.lang.Object convertNodes​(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> values, boolean isMany)
      Converts a Collection of NodeRefs.
      org.alfresco.service.cmr.repository.NodeRef convertToNode​(java.lang.Object toConvert)  
      java.util.List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes​(java.lang.Object value)  
      java.util.List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes​(java.util.Collection<?> toConvert)  
      boolean isSupported​(java.lang.Object object)  
    • Method Detail

      • convertNode

        java.lang.Object convertNode​(org.alfresco.service.cmr.repository.NodeRef node)
        Converts a NodeRef into the appropriate Node type.
        Parameters:
        node - NodeRef
        Returns:
        Object
      • convertNode

        java.lang.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.
        Parameters:
        value - NodeRef
        isMany - boolean
        Returns:
        Object
      • convertNodes

        java.util.List<? extends java.lang.Object> convertNodes​(java.util.Collection<org.alfresco.service.cmr.repository.NodeRef> values)
        Converts a Collection of NodeRefs into a List of the appropriate Node type.
        Returns:
        List
      • convertNodes

        java.lang.Object convertNodes​(java.util.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.
        Parameters:
        isMany - boolean
        Returns:
        Object
      • convertNodes

        java.lang.Object convertNodes​(java.lang.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.
        Parameters:
        value - Object
        isMany - boolean
        Returns:
        Object
      • convertToNode

        org.alfresco.service.cmr.repository.NodeRef convertToNode​(java.lang.Object toConvert)
        Parameters:
        toConvert - Object
        Returns:
        NodeRef
      • convertToNodes

        java.util.List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes​(java.util.Collection<?> toConvert)
      • convertToNodes

        java.util.List<org.alfresco.service.cmr.repository.NodeRef> convertToNodes​(java.lang.Object value)
      • isSupported

        boolean isSupported​(java.lang.Object object)
      • convert

        java.io.Serializable convert​(java.lang.Object object)
        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.
        Parameters:
        object - NodeRef
        Returns:
        Serializable