com.taleo.integration.client.customstep.xml
Class ExtractAttachedFilePostStep

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.xml.ExtractAttachedFilePostStep
All Implemented Interfaces:
com.taleo.integration.client.step.CustomStep, com.taleo.integration.client.step.Step

Deprecated. Use ExtractFilesPostStep with operations parameter set to "DecodeBase64,Gunzip" instead.

public class ExtractAttachedFilePostStep
extends BaseCustomStep

Post-processing step to extract attached files content in Base64_GZip format and create files on disk.

This step takes all parameters from its base class BaseCustomStep and offers two different APIs.

  1. Primary API

    The primary API consumes an XML document with the following structure and produces one file for each <file> tag.

     <files>
       <file path="...">
         <content>... Base64_GZip content ...</content>
       </file>
     </files>
     
    Where:
  2. Secondary API

    The second API uses the following parameters:

This class is dependent on:

If any of the $document_* variable is used, the following jars must also be present in the classpath:

Here is an example of how to define this custom step in the TCC configuration file, using the primary API:

Here are examples of how to define this custom step in the TCC configuration file, using the secondary API:

Author:
Romain Guay, Taleo Corporation, Sivakumaran Krishnan, Taleo Corporation

Field Summary
 
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
ExtractAttachedFilePostStep()
          Deprecated. Constructor without arguments.
 
Method Summary
 void execute(java.io.File inputFile)
          Deprecated. Process the input file.
 void execute(com.taleo.ws.integration.client.Pipeline pipeline)
          Deprecated.  
 java.lang.String getContentXPath()
          Deprecated. Get the XPath expression for file content.
 java.text.DateFormat getDateFormat()
          Deprecated. Get the date format.
 java.lang.String getDescription()
          Deprecated.  
 java.lang.String getFilenameXPath()
          Deprecated. Get the XPath expression for filename.
 java.lang.String getIdentifier()
          Deprecated.  
 java.lang.String getName()
          Deprecated.  
 java.lang.String getOutputDirectory()
          Deprecated. Use getOutputDirectoryXPath instead.
 java.lang.String getOutputDirectoryXPath()
          Deprecated. Get the output directory XPath.
 java.lang.String getRecordXPath()
          Deprecated. Get the XPath expression for the records.
 com.taleo.ws.integration.client.SupportedPipeline getSupportedPipeline()
          Deprecated.  
 void init(com.taleo.ws.integration.client.GlobalConfig config)
          Deprecated.  
 void setContentXPath(java.lang.String contentXPath)
          Deprecated. Set the XPath expression for file content.
 void setDateFormat(java.text.DateFormat dateFormat)
          Deprecated. Set the date format.
 void setFilenameXPath(java.lang.String filenameXPath)
          Deprecated. Set the XPath expression for filename.
 void setOutputDirectory(java.lang.String outputDirectory)
          Deprecated. Use setOutputDirectoryXPath instead.
 void setOutputDirectoryXPath(java.lang.String outputDirectoryXPath)
          Deprecated. Set the output directory XPath.
 void setRecordXPath(java.lang.String recordXPath)
          Deprecated. Set the XPath expression for the records.
 
Methods inherited from class com.taleo.integration.client.customstep.BaseCustomStep
createTempFile, createTempFile, getEncoding, getTempFolder, isActive, registerParameterName, setActive, setEncoding, validateParameterNames
 
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep
getType, init
 
Methods inherited from class com.taleo.integration.client.step.BaseStep
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, isOriginalFile, 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

ExtractAttachedFilePostStep

public ExtractAttachedFilePostStep()
Deprecated. 
Constructor without arguments.

Method Detail

getIdentifier

public java.lang.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
Specified by:
getIdentifier in class com.taleo.integration.client.step.BaseCustomStep

getDescription

public java.lang.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
Specified by:
getDescription in class com.taleo.integration.client.step.BaseCustomStep

getName

public java.lang.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
Specified by:
getName in class com.taleo.integration.client.step.BaseCustomStep

getRecordXPath

public java.lang.String getRecordXPath()
Deprecated. 
Get the XPath expression for the records.

Returns:

setRecordXPath

public void setRecordXPath(java.lang.String recordXPath)
Deprecated. 
Set the XPath expression for the records.

Parameters:
recordXPath -

getFilenameXPath

public java.lang.String getFilenameXPath()
Deprecated. 
Get the XPath expression for filename.

Returns:

setFilenameXPath

public void setFilenameXPath(java.lang.String filenameXPath)
Deprecated. 
Set the XPath expression for filename.

Parameters:
filenameXPath -

getDateFormat

public java.text.DateFormat getDateFormat()
Deprecated. 
Get the date format.

Returns:

setDateFormat

public void setDateFormat(java.text.DateFormat dateFormat)
Deprecated. 
Set the date format.

Parameters:
dateFormat -

getContentXPath

public java.lang.String getContentXPath()
Deprecated. 
Get the XPath expression for file content.

Returns:

setContentXPath

public void setContentXPath(java.lang.String contentXPath)
Deprecated. 
Set the XPath expression for file content.

Parameters:
contentXPath -

getOutputDirectory

public java.lang.String getOutputDirectory()
Deprecated. Use getOutputDirectoryXPath instead.

Get the output directory.

Returns:

setOutputDirectory

public void setOutputDirectory(java.lang.String outputDirectory)
Deprecated. Use setOutputDirectoryXPath instead.

Set the output directory.

Parameters:
outputDirectory -

getOutputDirectoryXPath

public java.lang.String getOutputDirectoryXPath()
Deprecated. 
Get the output directory XPath.

Returns:

setOutputDirectoryXPath

public void setOutputDirectoryXPath(java.lang.String outputDirectoryXPath)
Deprecated. 
Set the output directory XPath.

Parameters:
outputDirectoryXPath -

getSupportedPipeline

public com.taleo.ws.integration.client.SupportedPipeline getSupportedPipeline()
Deprecated. 
Specified by:
getSupportedPipeline in interface com.taleo.integration.client.step.Step
Overrides:
getSupportedPipeline in class com.taleo.integration.client.step.BaseCustomStep

init

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

execute

public void execute(com.taleo.ws.integration.client.Pipeline pipeline)
             throws com.taleo.integration.client.step.StepException
Deprecated. 
Throws:
com.taleo.integration.client.step.StepException

execute

public void execute(java.io.File inputFile)
             throws java.lang.Exception
Deprecated. 
Process the input file.

Parameters:
inputFile - The input file.
Throws:
java.lang.Exception