Package org.alfresco.repo.transfer
Class TransferTargetImpl
java.lang.Object
org.alfresco.repo.transfer.TransferTargetImpl
- All Implemented Interfaces:
TransferTarget
Data Transfer Object for a TransferTarget. The definition of the connection to a remote system.
- Author:
- Mark Rogers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the description for this transfer targetGet the endpoint hostThe location of the transfer service on the target endpoint host Defaults to "/alfresco/service/api/transfer", and this shouldn't typically need to changeintGet the endpoint portHTTP OR HTTPSgetName()Get the name of this transfer targetread only - get the node reference of the underlying transfer target node.char[]Get the cleartext passwordgetTitle()Get the title of this transfer targetThe username used to authenticate with the transfer targetinthashCode()booleanis this transfer target enabled or disabled?voidsetDescription(String description) Set the decription for this transfer targetvoidsetEnabled(boolean enabled) enable this transfer targetvoidsetEndpointHost(String endpointHost) Set the endpoint hostvoidsetEndpointPath(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(String endpointProtocol) Set the endpoint protocol.voidvoidsetNodeRef(NodeRef nodeRef) voidsetPassword(char[] password) Set the password for this transfer targetvoidSet the title for this transfer targetvoidsetUsername(String username) The username used to authenticate with the transfer targettoString()
-
Constructor Details
-
TransferTargetImpl
public TransferTargetImpl()
-
-
Method Details
-
setNodeRef
-
getNodeRef
Description copied from interface:TransferTargetread only - get the node reference of the underlying transfer target node.- Specified by:
getNodeRefin interfaceTransferTarget- Returns:
- NodeRef
-
setName
-
getName
Description copied from interface:TransferTargetGet the name of this transfer target- Specified by:
getNamein interfaceTransferTarget- Returns:
- String
-
setTitle
Description copied from interface:TransferTargetSet the title for this transfer target- Specified by:
setTitlein interfaceTransferTarget- Parameters:
title- String
-
getTitle
Description copied from interface:TransferTargetGet the title of this transfer target- Specified by:
getTitlein interfaceTransferTarget- Returns:
- String
-
setDescription
Description copied from interface:TransferTargetSet the decription for this transfer target- Specified by:
setDescriptionin interfaceTransferTarget- Parameters:
description- String
-
getDescription
Description copied from interface:TransferTargetGet the description for this transfer target- Specified by:
getDescriptionin interfaceTransferTarget- Returns:
- String
-
setEndpointProtocol
Description copied from interface:TransferTargetSet the endpoint protocol.- Specified by:
setEndpointProtocolin interfaceTransferTarget- Parameters:
endpointProtocol- String
-
getEndpointProtocol
Description copied from interface:TransferTargetHTTP OR HTTPS- Specified by:
getEndpointProtocolin interfaceTransferTarget
-
setEndpointHost
Description copied from interface:TransferTargetSet the endpoint host- Specified by:
setEndpointHostin interfaceTransferTarget- Parameters:
endpointHost- 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
Description copied from interface:TransferTargetThe username used to authenticate with the transfer target- Specified by:
setUsernamein interfaceTransferTarget- Parameters:
username- String
-
getUsername
Description copied from interface:TransferTargetThe username used to authenticate with the transfer target- Specified by:
getUsernamein interfaceTransferTarget- Returns:
- String
-
setEndpointPath
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
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
-
hashCode
public int 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
-