Class DesktopTarget


  • public class DesktopTarget
    extends java.lang.Object
    Desktop Target Class

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

    Author:
    gkspencer
    • Constructor Summary

      Constructors 
      Constructor Description
      DesktopTarget​(int typ, java.lang.String path)
      class constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.alfresco.service.cmr.repository.NodeRef getNode()
      Return the associated node
      java.lang.String getTarget()
      Return the target path/id
      java.lang.String getTypeAsString()
      Return the target type as a string
      boolean hasNodeRef()
      Check if the associated node is valid
      int isType()
      Return the target type
      void setNode​(org.alfresco.service.cmr.repository.NodeRef node)
      Set the associated node
      java.lang.String toString()
      Return the desktop target as a string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DesktopTarget

        public DesktopTarget​(int typ,
                             java.lang.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 java.lang.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 java.lang.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 java.lang.String toString()
        Return the desktop target as a string
        Overrides:
        toString in class java.lang.Object
        Returns:
        String