public class ScenarioLockedDeleteShuffleInstance extends java.lang.Object implements ScenarioInstance
First implemented for TextEdit from MacOS Lion
Sequence of operations. a) Lock file created. Typically with an obscure name. b) Temp file created in temporary folder c) Target file deleted d) Temp file renamed to target file. e) Lock file deleted
If this filter is active then this is what happens. a) Lock file created. Lock file created (X). b) Temp file created - in another folder. c) Existing file deleted. Scenario kicks in to rename rather than delete. d) 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. e) Lock file deleted.
ScenarioInstance.Ranking| Constructor and Description |
|---|
ScenarioLockedDeleteShuffleInstance() |
| 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) |
java.lang.String |
toString() |
public Command evaluate(Operation operation)
evaluate in interface ScenarioInstanceoperation - public boolean isComplete()
ScenarioInstanceisComplete in interface ScenarioInstancepublic ScenarioInstance.Ranking getRanking()
ScenarioInstancegetRanking in interface ScenarioInstancepublic void setRanking(ScenarioInstance.Ranking ranking)
public java.lang.String toString()
toString in class java.lang.Objectpublic void setTimeout(long timeout)
public long getTimeout()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.