Class ScenarioTempDeleteShuffleInstance

java.lang.Object
org.alfresco.filesys.repo.rules.ScenarioTempDeleteShuffleInstance
All Implemented Interfaces:
ScenarioInstance

public class ScenarioTempDeleteShuffleInstance extends Object implements 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.