Class TransferTargetImpl

  • All Implemented Interfaces:
    TransferTarget

    public class TransferTargetImpl
    extends java.lang.Object
    implements TransferTarget
    Data Transfer Object for a TransferTarget. The definition of the connection to a remote system.
    Author:
    Mark Rogers
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getDescription()
      Get the description for this transfer target
      java.lang.String getEndpointHost()
      Get the endpoint host
      java.lang.String getEndpointPath()
      The location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to change
      int getEndpointPort()
      Get the endpoint port
      java.lang.String getEndpointProtocol()
      HTTP OR HTTPS
      java.lang.String getName()
      Get the name of this transfer target
      org.alfresco.service.cmr.repository.NodeRef getNodeRef()
      read only - get the node reference of the underlying transfer target node.
      char[] getPassword()
      Get the cleartext password
      java.lang.String getTitle()
      Get the title of this transfer target
      java.lang.String getUsername()
      The username used to authenticate with the transfer target
      int hashCode()  
      boolean isEnabled()
      is this transfer target enabled or disabled?
      void setDescription​(java.lang.String description)
      Set the decription for this transfer target
      void setEnabled​(boolean enabled)
      enable this transfer target
      void setEndpointHost​(java.lang.String endpointHost)
      Set the endpoint host
      void setEndpointPath​(java.lang.String endpointPath)
      The location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to change
      void setEndpointPort​(int endpointPort)
      Set the endpoint port
      void setEndpointProtocol​(java.lang.String endpointProtocol)
      Set the endpoint protocol.
      void setName​(java.lang.String name)  
      void setNodeRef​(org.alfresco.service.cmr.repository.NodeRef nodeRef)  
      void setPassword​(char[] password)
      Set the password for this transfer target
      void setTitle​(java.lang.String title)
      Set the title for this transfer target
      void setUsername​(java.lang.String username)
      The username used to authenticate with the transfer target
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TransferTargetImpl

        public TransferTargetImpl()
    • Method Detail

      • setNodeRef

        public void setNodeRef​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      • getNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
        Description copied from interface: TransferTarget
        read only - get the node reference of the underlying transfer target node.
        Specified by:
        getNodeRef in interface TransferTarget
        Returns:
        NodeRef
      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Description copied from interface: TransferTarget
        Get the name of this transfer target
        Specified by:
        getName in interface TransferTarget
        Returns:
        String
      • setTitle

        public void setTitle​(java.lang.String title)
        Description copied from interface: TransferTarget
        Set the title for this transfer target
        Specified by:
        setTitle in interface TransferTarget
        Parameters:
        title - String
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: TransferTarget
        Get the title of this transfer target
        Specified by:
        getTitle in interface TransferTarget
        Returns:
        String
      • setDescription

        public void setDescription​(java.lang.String description)
        Description copied from interface: TransferTarget
        Set the decription for this transfer target
        Specified by:
        setDescription in interface TransferTarget
        Parameters:
        description - String
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: TransferTarget
        Get the description for this transfer target
        Specified by:
        getDescription in interface TransferTarget
        Returns:
        String
      • setEndpointProtocol

        public void setEndpointProtocol​(java.lang.String endpointProtocol)
        Description copied from interface: TransferTarget
        Set the endpoint protocol.
        Specified by:
        setEndpointProtocol in interface TransferTarget
        Parameters:
        endpointProtocol - String
      • setEndpointHost

        public void setEndpointHost​(java.lang.String endpointHost)
        Description copied from interface: TransferTarget
        Set the endpoint host
        Specified by:
        setEndpointHost in interface TransferTarget
        Parameters:
        endpointHost - String
      • setPassword

        public void setPassword​(char[] password)
        Description copied from interface: TransferTarget
        Set the password for this transfer target
        Specified by:
        setPassword in interface TransferTarget
        Parameters:
        password - clear text password.
      • setUsername

        public void setUsername​(java.lang.String username)
        Description copied from interface: TransferTarget
        The username used to authenticate with the transfer target
        Specified by:
        setUsername in interface TransferTarget
        Parameters:
        username - String
      • getUsername

        public java.lang.String getUsername()
        Description copied from interface: TransferTarget
        The username used to authenticate with the transfer target
        Specified by:
        getUsername in interface TransferTarget
        Returns:
        String
      • setEndpointPath

        public void setEndpointPath​(java.lang.String endpointPath)
        Description copied from interface: TransferTarget
        The location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to change
        Specified by:
        setEndpointPath in interface TransferTarget
      • getEndpointPath

        public java.lang.String getEndpointPath()
        Description copied from interface: TransferTarget
        The location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to change
        Specified by:
        getEndpointPath in interface TransferTarget
        Returns:
        String
      • setEndpointPort

        public void setEndpointPort​(int endpointPort)
        Description copied from interface: TransferTarget
        Set the endpoint port
        Specified by:
        setEndpointPort in interface TransferTarget
        Parameters:
        endpointPort - int
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        getNodeRef(), NodeRef.equals(Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        getNodeRef(), NodeRef.hashCode()
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: TransferTarget
        enable this transfer target
        Specified by:
        setEnabled in interface TransferTarget
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: TransferTarget
        is this transfer target enabled or disabled?
        Specified by:
        isEnabled in interface TransferTarget
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object