org.alfresco.repo.transfer
Class TransferTargetImpl

java.lang.Object
  extended by org.alfresco.repo.transfer.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.


Constructor Summary
TransferTargetImpl()
           
 
Method Summary
 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:

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:

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

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:

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

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:

setEndpointProtocol

public void setEndpointProtocol(java.lang.String endpointProtocol)
Description copied from interface: TransferTarget
Set the endpoint protocol.

Specified by:
setEndpointProtocol in interface TransferTarget

getEndpointProtocol

public java.lang.String getEndpointProtocol()
Description copied from interface: TransferTarget
HTTP OR HTTPS

Specified by:
getEndpointProtocol in interface TransferTarget

setEndpointHost

public void setEndpointHost(java.lang.String endpointHost)
Description copied from interface: TransferTarget
Set the endpoint host

Specified by:
setEndpointHost in interface TransferTarget

getEndpointHost

public java.lang.String getEndpointHost()
Description copied from interface: TransferTarget
Get the endpoint host

Specified by:
getEndpointHost in interface TransferTarget
Returns:

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.

getPassword

public char[] getPassword()
Description copied from interface: TransferTarget
Get the cleartext password

Specified by:
getPassword in interface TransferTarget
Returns:

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

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:

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:

setEndpointPort

public void setEndpointPort(int endpointPort)
Description copied from interface: TransferTarget
Set the endpoint port

Specified by:
setEndpointPort in interface TransferTarget

getEndpointPort

public int getEndpointPort()
Description copied from interface: TransferTarget
Get the endpoint port

Specified by:
getEndpointPort in interface TransferTarget
Returns:

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
TransferTargetImpl.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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.