|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.csv.BaseCustomCsvStep
com.taleo.integration.client.customstep.file.MoveFileStep
public class MoveFileStep
Processing step to move files on disk.
This step takes all parameters from its base class
BaseCustomCsvStep
and the
following additional parameters:
WildcardFileFilter
, in
the file names only. Pattern is case sensitive.true
or false
, default: false
). If
the destination file already exist and overwrite is false, the file is not
moved and a warning is written in the log.
Field Summary | |
---|---|
protected java.lang.String |
filePattern
The file pattern. |
protected java.lang.String |
moveDirectory
The directory to move files to. |
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 | |
---|---|
MoveFileStep()
Constructor without arguments. |
Method Summary | |
---|---|
void |
execute(com.taleo.ws.integration.client.Pipeline pipeline)
|
java.lang.String |
getDescription()
|
java.lang.String |
getFilePattern()
Get the file pattern. |
java.lang.String |
getIdentifier()
|
java.lang.String |
getMoveDirectory()
Get the move directory. |
java.lang.String |
getName()
|
void |
init(com.taleo.ws.integration.client.GlobalConfig config)
|
boolean |
isOverwrite()
Get the overwrite flag. |
void |
move()
Move files matching the pattern to the move directory. |
void |
setFilePattern(java.lang.String filePattern)
Set the file pattern. |
void |
setMoveDirectory(java.lang.String moveDirectory)
Set the move directory. |
void |
setOverwrite(boolean overwrite)
Set the overwrite flag. |
Methods inherited from class com.taleo.integration.client.customstep.csv.BaseCustomCsvStep |
---|
getColumnIndex, getColumnName, getCsvDelimiter, getCsvQuoteCharacter, isCsvHeaderPresent, setCsvDelimiter, setCsvHeaderPresent, setCsvQuoteCharacter |
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 |
---|
getSupportedPipeline, 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 |
Field Detail |
---|
protected java.lang.String filePattern
protected java.lang.String moveDirectory
Constructor Detail |
---|
public MoveFileStep()
Method Detail |
---|
public java.lang.String getFilePattern()
public void setFilePattern(java.lang.String filePattern)
filePattern
- public java.lang.String getMoveDirectory()
public void setMoveDirectory(java.lang.String moveDirectory)
moveDirectory
- public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
overwrite
- public java.lang.String getIdentifier()
getIdentifier
in interface com.taleo.integration.client.step.CustomStep
getIdentifier
in interface com.taleo.integration.client.step.Step
getIdentifier
in class com.taleo.integration.client.step.BaseCustomStep
public java.lang.String getDescription()
getDescription
in interface com.taleo.integration.client.step.CustomStep
getDescription
in interface com.taleo.integration.client.step.Step
getDescription
in class com.taleo.integration.client.step.BaseCustomStep
public java.lang.String getName()
getName
in interface com.taleo.integration.client.step.CustomStep
getName
in interface com.taleo.integration.client.step.Step
getName
in class com.taleo.integration.client.step.BaseCustomStep
public void init(com.taleo.ws.integration.client.GlobalConfig config)
init
in class BaseCustomCsvStep
public void execute(com.taleo.ws.integration.client.Pipeline pipeline) throws com.taleo.integration.client.step.StepException
execute
in interface com.taleo.integration.client.step.Step
execute
in class BaseCustomCsvStep
com.taleo.integration.client.step.StepException
public void move() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |