Package org.alfresco.filesys.repo.rules
Class ScenarioTempDeleteShuffleInstance
java.lang.Object
org.alfresco.filesys.repo.rules.ScenarioTempDeleteShuffleInstance
- All Implemented Interfaces:
ScenarioInstance
This is an instance of a "temp delete shuffle" triggered by a delete of a file matching
a newly created file in a temporary directory.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.filesys.repo.rules.ScenarioInstance
ScenarioInstance.Ranking -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the next operationGet the RankinglongbooleanIs the scenario complete?voidsetRanking(ScenarioInstance.Ranking ranking) voidsetTimeout(long timeout) toString()
-
Constructor Details
-
ScenarioTempDeleteShuffleInstance
public ScenarioTempDeleteShuffleInstance()
-
-
Method Details
-
evaluate
Evaluate the next operation- Specified by:
evaluatein interfaceScenarioInstance- Parameters:
operation-
-
isComplete
public boolean isComplete()Description copied from interface:ScenarioInstanceIs the scenario complete?- Specified by:
isCompletein interfaceScenarioInstance- Returns:
- boolean
-
getRanking
Description copied from interface:ScenarioInstanceGet the Ranking- Specified by:
getRankingin interfaceScenarioInstance- Returns:
- Ranking
-
setRanking
-
toString
-
setTimeout
public void setTimeout(long timeout) -
getTimeout
public long getTimeout()
-