public class ScenarioTempDeleteShuffleInstance extends Object implements ScenarioInstance
First implemented for TextEdit from MacOS Lion
Sequence of operations. a) Temporary Directory Created b) Temporary file created in temporary directory. c) Target file deleted d) Temp file moved in place of target file. e) Temporary directory deleted.
If this filter is active then this is what happens. a) Temp file created - in another folder. b) Existing file deleted. Scenario kicks in to rename rather than delete. c) New file moved into place (X to Y). Scenario kicks in 1) renames file from step c 2) copies content from temp file to target file 3) deletes temp file. d) Clean up scenario.
ScenarioInstance.Ranking
Constructor and Description |
---|
ScenarioTempDeleteShuffleInstance() |
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?
|
void |
setRanking(ScenarioInstance.Ranking ranking) |
void |
setTimeout(long timeout) |
String |
toString() |
public Command evaluate(Operation operation)
evaluate
in interface ScenarioInstance
operation
- public 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()
Copyright © 2005–2017 Alfresco Software. All rights reserved.