com.taleo.integration.client.customstep.ftp
Class UploadSftpPostStep

java.lang.Object
  extended by com.taleo.integration.client.step.BaseStep
      extended by com.taleo.integration.client.step.BaseCustomStep
          extended by com.taleo.integration.client.customstep.BaseCustomStep
              extended by com.taleo.integration.client.customstep.ftp.UploadFtpPostStep
                  extended by com.taleo.integration.client.customstep.ftp.UploadSftpPostStep
All Implemented Interfaces:
com.taleo.integration.client.step.CustomStep, com.taleo.integration.client.step.Step

Deprecated. Use UploadSftpStep

public class UploadSftpPostStep
extends UploadFtpPostStep

Post-processing step to upload the current workflow file on an SFTP server.

This step takes all parameters from its base class UploadFtpPostStep and the following additional parameters:

This class is dependent on:

Here are two examples of how to define this custom step in the TCC configuration file:

Author:
Romain Guay, Taleo Corporation

Field Summary
 
Fields inherited from class com.taleo.integration.client.customstep.ftp.UploadFtpPostStep
config, failOnError, filename, host, nbRetries, password, port, remoteDirectory, retryFactor, retryInterval, username
 
Fields inherited from class com.taleo.integration.client.customstep.BaseCustomStep
parameterNames
 
Fields inherited from class com.taleo.integration.client.step.BaseCustomStep
parameters
 
Fields inherited from class com.taleo.integration.client.step.BaseStep
commType, ERROR_NULL_GLOBAL_CONFIG, ERROR_NULL_PIPELINE, ERROR_NULL_STEP_CONFIG, productCode, tempFolder, type, version
 
Constructor Summary
UploadSftpPostStep()
          Deprecated. Constructor without arguments.
 
Method Summary
 String getDescription()
          Deprecated.  
 String getIdentifier()
          Deprecated.  
 String getName()
          Deprecated.  
 String getPassphrase()
          Deprecated. Get the passphrase.
 String getPrivateKey()
          Deprecated. Get the private key.
 void init(com.taleo.ws.integration.client.GlobalConfig config)
          Deprecated.  
 void setPassphrase(String passphrase)
          Deprecated. Set the passphrase.
 void setPrivateKey(String privateKey)
          Deprecated. Set the private key.
 void upload(File file, String targetFilename)
          Deprecated. Execute the step by sending the file over to the SFTP server.
 
Methods inherited from class com.taleo.integration.client.customstep.ftp.UploadFtpPostStep
execute, getFilename, getHost, getNbRetries, getPassword, getPort, getRemoteDirectory, getRetryFactor, getRetryInterval, getUsername, isFailOnError, setFailOnError, setFilename, setHost, setNbRetries, setPassword, setPort, setRemoteDirectory, setRetryFactor, setRetryInterval, setUsername
 
Methods inherited from class com.taleo.integration.client.customstep.BaseCustomStep
getEncoding, isActive, registerParameterName, setActive, setEncoding, validateParameterNames
 
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep
getSupportedPipeline, getType, init
 
Methods inherited from class com.taleo.integration.client.step.BaseStep
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, validateLastStepType, validateMessageType, validatePipeline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.taleo.integration.client.step.Step
validatePipeline
 

Constructor Detail

UploadSftpPostStep

public UploadSftpPostStep()
Deprecated. 
Constructor without arguments.

Method Detail

getIdentifier

public String getIdentifier()
Deprecated. 
Specified by:
getIdentifier in interface com.taleo.integration.client.step.CustomStep
Specified by:
getIdentifier in interface com.taleo.integration.client.step.Step
Overrides:
getIdentifier in class UploadFtpPostStep

getDescription

public String getDescription()
Deprecated. 
Specified by:
getDescription in interface com.taleo.integration.client.step.CustomStep
Specified by:
getDescription in interface com.taleo.integration.client.step.Step
Overrides:
getDescription in class UploadFtpPostStep

getName

public String getName()
Deprecated. 
Specified by:
getName in interface com.taleo.integration.client.step.CustomStep
Specified by:
getName in interface com.taleo.integration.client.step.Step
Overrides:
getName in class UploadFtpPostStep

getPrivateKey

public String getPrivateKey()
Deprecated. 
Get the private key.

Returns:

setPrivateKey

public void setPrivateKey(String privateKey)
Deprecated. 
Set the private key.

Parameters:
privateKey -

getPassphrase

public String getPassphrase()
Deprecated. 
Get the passphrase.

Returns:

setPassphrase

public void setPassphrase(String passphrase)
Deprecated. 
Set the passphrase.

Parameters:
passphrase -

init

public void init(com.taleo.ws.integration.client.GlobalConfig config)
Deprecated. 
Overrides:
init in class UploadFtpPostStep

upload

public void upload(File file,
                   String targetFilename)
            throws Exception
Deprecated. 
Execute the step by sending the file over to the SFTP server.

Overrides:
upload in class UploadFtpPostStep
Parameters:
file - The file to upload.
targetFilename - The target file name.
Throws:
Exception