public class ScenarioRenameDeleteMoveInstance extends Object implements ScenarioInstance
a) Original file is renamed. Typically with an obscure name. b) Renamed file is deleted via delete command or via deleteOnClose flag and close operation. c) Temp file is moved into original file location.
If this filter is active then this is what happens. a) Original file is renamed: - File is renamed. b) Renamed file is deleted via delete command or via deleteOnClose flag and close operation: - File is deleted. c) Temp file is moved into original file location - Scenario fires - Deleted file is restored. - Restored file is renamed to it's original name. - Content from file that must be moved is copied to restored file. - File that must be moved is deleted.
ScenarioInstance.Ranking
Constructor and Description |
---|
ScenarioRenameDeleteMoveInstance() |
Modifier and Type | Method and Description |
---|---|
Command |
evaluate(Operation operation)
Evaluate the next operation
|
ScenarioInstance.Ranking |
getRanking()
Get the Ranking
|
long |
getTimeout() |
boolean |
isComplete()
Is the scenario complete?
|
boolean |
isDeleteBackup() |
void |
setDeleteBackup(boolean deleteBackup) |
void |
setRanking(ScenarioInstance.Ranking ranking) |
void |
setTimeout(long timeout) |
String |
toString() |
public Command evaluate(Operation operation)
evaluate
in interface ScenarioInstance
operation
- Operationpublic boolean isComplete()
ScenarioInstance
isComplete
in interface ScenarioInstance
public ScenarioInstance.Ranking getRanking()
ScenarioInstance
getRanking
in interface ScenarioInstance
public void setRanking(ScenarioInstance.Ranking ranking)
public void setTimeout(long timeout)
public long getTimeout()
public void setDeleteBackup(boolean deleteBackup)
public boolean isDeleteBackup()
Copyright © 2005–2017 Alfresco Software. All rights reserved.