|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openarchitectureware.workflow.lib.AbstractWorkflowComponent
org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2
org.openarchitectureware.workflow.common.DirectoryCleaner
public class DirectoryCleaner
Constructor Summary | |
---|---|
DirectoryCleaner()
|
Method Summary | |
---|---|
void |
addExclude(java.lang.String exclude)
Adds an exclude. |
protected void |
checkConfigurationInternal(Issues issues)
|
boolean |
delete(java.io.File file)
Deletes all files and subdirectories under dir. |
java.lang.String |
getComponentName()
Override this method by custom components. |
java.lang.String |
getLogMessage()
Returns the log message, |
protected void |
invokeInternal(WorkflowContext model,
ProgressMonitor monitor,
Issues issues)
|
boolean |
isUseDefaultExcludes()
Returns if the default excludes are used. |
void |
setDirectories(java.lang.String directory)
Deprecated. Use setDirectory(String) instead |
void |
setDirectory(java.lang.String directory)
Sets the directory. |
void |
setUseDefaultExcludes(boolean useDefaultExcludes)
Sets if the default excludes are used. |
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2 |
---|
checkConfiguration, invoke, setSkipOnErrors |
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent |
---|
checkRequiredConfigProperty, getContainer, getId, getLocation, setContainer, setId, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryCleaner()
Method Detail |
---|
@Deprecated public void setDirectories(java.lang.String directory)
setDirectory(String)
instead
public void setDirectory(java.lang.String directory)
directory
- name of directorypublic java.lang.String getLogMessage()
WorkflowComponentWithID
getLogMessage
in interface WorkflowComponentWithID
getLogMessage
in class AbstractWorkflowComponent
AbstractWorkflowComponent.getLogMessage()
protected void invokeInternal(WorkflowContext model, ProgressMonitor monitor, Issues issues)
invokeInternal
in class AbstractWorkflowComponent2
protected void checkConfigurationInternal(Issues issues)
checkConfigurationInternal
in class AbstractWorkflowComponent2
public boolean delete(java.io.File file)
public boolean isUseDefaultExcludes()
true
, if the default excludes are used, otherwise
false
.public void setUseDefaultExcludes(boolean useDefaultExcludes)
useDefaultExcludes
- If true
, the default excludes are used, if
false
, the default excludes are ignored.public void addExclude(java.lang.String exclude)
exclude
- the excludepublic java.lang.String getComponentName()
AbstractWorkflowComponent
getComponentName
in interface WorkflowComponent
getComponentName
in class AbstractWorkflowComponent
WorkflowComponent.getComponentName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |