Class DesktopTarget


  • public class DesktopTarget
    extends Object
    Desktop Target Class

    Contains the details of a target file/folder/node for a desktop action.

    Author:
    gkspencer
    • Constructor Detail

      • DesktopTarget

        public DesktopTarget​(int typ,
                             String path)
        class constructor
        Parameters:
        typ - int
        path - String
    • Method Detail

      • isType

        public final int isType()
        Return the target type
        Returns:
        int
      • getTarget

        public final String getTarget()
        Return the target path/id
        Returns:
        String
      • hasNodeRef

        public final boolean hasNodeRef()
        Check if the associated node is valid
        Returns:
        boolean
      • getNode

        public final org.alfresco.service.cmr.repository.NodeRef getNode()
        Return the associated node
        Returns:
        NodeRef
      • getTypeAsString

        public final String getTypeAsString()
        Return the target type as a string
        Returns:
        String
      • setNode

        public final void setNode​(org.alfresco.service.cmr.repository.NodeRef node)
        Set the associated node
        Parameters:
        node - NodeRef
      • toString

        public String toString()
        Return the desktop target as a string
        Overrides:
        toString in class Object
        Returns:
        String