Package org.alfresco.repo.transfer
Class TransferTargetImpl
- java.lang.Object
-
- 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.- Author:
- Mark Rogers
-
-
Constructor Summary
Constructors Constructor Description TransferTargetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetDescription()Get the description for this transfer targetjava.lang.StringgetEndpointHost()Get the endpoint hostjava.lang.StringgetEndpointPath()The location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to changeintgetEndpointPort()Get the endpoint portjava.lang.StringgetEndpointProtocol()HTTP OR HTTPSjava.lang.StringgetName()Get the name of this transfer targetorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()read only - get the node reference of the underlying transfer target node.char[]getPassword()Get the cleartext passwordjava.lang.StringgetTitle()Get the title of this transfer targetjava.lang.StringgetUsername()The username used to authenticate with the transfer targetinthashCode()booleanisEnabled()is this transfer target enabled or disabled?voidsetDescription(java.lang.String description)Set the decription for this transfer targetvoidsetEnabled(boolean enabled)enable this transfer targetvoidsetEndpointHost(java.lang.String endpointHost)Set the endpoint hostvoidsetEndpointPath(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 changevoidsetEndpointPort(int endpointPort)Set the endpoint portvoidsetEndpointProtocol(java.lang.String endpointProtocol)Set the endpoint protocol.voidsetName(java.lang.String name)voidsetNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)voidsetPassword(char[] password)Set the password for this transfer targetvoidsetTitle(java.lang.String title)Set the title for this transfer targetvoidsetUsername(java.lang.String username)The username used to authenticate with the transfer targetjava.lang.StringtoString()
-
-
-
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:TransferTargetread only - get the node reference of the underlying transfer target node.- Specified by:
getNodeRefin interfaceTransferTarget- Returns:
- NodeRef
-
setName
public void setName(java.lang.String name)
-
getName
public java.lang.String getName()
Description copied from interface:TransferTargetGet the name of this transfer target- Specified by:
getNamein interfaceTransferTarget- Returns:
- String
-
setTitle
public void setTitle(java.lang.String title)
Description copied from interface:TransferTargetSet the title for this transfer target- Specified by:
setTitlein interfaceTransferTarget- Parameters:
title- String
-
getTitle
public java.lang.String getTitle()
Description copied from interface:TransferTargetGet the title of this transfer target- Specified by:
getTitlein interfaceTransferTarget- Returns:
- String
-
setDescription
public void setDescription(java.lang.String description)
Description copied from interface:TransferTargetSet the decription for this transfer target- Specified by:
setDescriptionin interfaceTransferTarget- Parameters:
description- String
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TransferTargetGet the description for this transfer target- Specified by:
getDescriptionin interfaceTransferTarget- Returns:
- String
-
setEndpointProtocol
public void setEndpointProtocol(java.lang.String endpointProtocol)
Description copied from interface:TransferTargetSet the endpoint protocol.- Specified by:
setEndpointProtocolin interfaceTransferTarget- Parameters:
endpointProtocol- String
-
getEndpointProtocol
public java.lang.String getEndpointProtocol()
Description copied from interface:TransferTargetHTTP OR HTTPS- Specified by:
getEndpointProtocolin interfaceTransferTarget
-
setEndpointHost
public void setEndpointHost(java.lang.String endpointHost)
Description copied from interface:TransferTargetSet the endpoint host- Specified by:
setEndpointHostin interfaceTransferTarget- Parameters:
endpointHost- String
-
getEndpointHost
public java.lang.String getEndpointHost()
Description copied from interface:TransferTargetGet the endpoint host- Specified by:
getEndpointHostin interfaceTransferTarget- Returns:
- String
-
setPassword
public void setPassword(char[] password)
Description copied from interface:TransferTargetSet the password for this transfer target- Specified by:
setPasswordin interfaceTransferTarget- Parameters:
password- clear text password.
-
getPassword
public char[] getPassword()
Description copied from interface:TransferTargetGet the cleartext password- Specified by:
getPasswordin interfaceTransferTarget- Returns:
- char[]
-
setUsername
public void setUsername(java.lang.String username)
Description copied from interface:TransferTargetThe username used to authenticate with the transfer target- Specified by:
setUsernamein interfaceTransferTarget- Parameters:
username- String
-
getUsername
public java.lang.String getUsername()
Description copied from interface:TransferTargetThe username used to authenticate with the transfer target- Specified by:
getUsernamein interfaceTransferTarget- Returns:
- String
-
setEndpointPath
public void setEndpointPath(java.lang.String endpointPath)
Description copied from interface:TransferTargetThe 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:
setEndpointPathin interfaceTransferTarget
-
getEndpointPath
public java.lang.String getEndpointPath()
Description copied from interface:TransferTargetThe 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:
getEndpointPathin interfaceTransferTarget- Returns:
- String
-
setEndpointPort
public void setEndpointPort(int endpointPort)
Description copied from interface:TransferTargetSet the endpoint port- Specified by:
setEndpointPortin interfaceTransferTarget- Parameters:
endpointPort- int
-
getEndpointPort
public int getEndpointPort()
Description copied from interface:TransferTargetGet the endpoint port- Specified by:
getEndpointPortin interfaceTransferTarget- Returns:
- int
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
getNodeRef(),NodeRef.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
getNodeRef(),NodeRef.hashCode()
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:TransferTargetenable this transfer target- Specified by:
setEnabledin interfaceTransferTarget
-
isEnabled
public boolean isEnabled()
Description copied from interface:TransferTargetis this transfer target enabled or disabled?- Specified by:
isEnabledin interfaceTransferTarget
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-