Package org.alfresco.filesys.repo.rules
Class ScenarioDeleteRenameOrCreate
java.lang.Object
org.alfresco.filesys.repo.rules.ScenarioDeleteRenameOrCreate
- All Implemented Interfaces:
Scenario
The DeleteOnClose rename shuffle is a delete on close of a file resulting in a file being deleted followed by a
rename or a create
First case of this is Mac Mountain Lion Preview application.
and then a new copy of the file put into place.
a) DeleteOnClose fileA
b) Close fileA
c) Rename whatever fileA
Second case First case of this is Mac Drag and drop.
and then a new copy of the file put into place.
a) Delete fileA
b) Close fileA
c) Create fileA
Third case Gedit.
a) Delete fileA
b) Rename .goutputstream fileA
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(EvaluatorContext ctx, Operation operation) Create a new ScenarioInstancelongvoidsetPattern(String pattern) voidsetRanking(ScenarioInstance.Ranking ranking) voidsetTimeout(long timeout)
-
Constructor Details
-
ScenarioDeleteRenameOrCreate
public ScenarioDeleteRenameOrCreate()
-
-
Method Details
-
createInstance
Description copied from interface:ScenarioCreate a new ScenarioInstanceIf the scenario is interested in the specified operation then return a new scenario instance.
- Specified by:
createInstancein interfaceScenario- Parameters:
ctx- EvaluatorContext.operation- the operation to be performed- Returns:
- the scenario instance or null if a new instance is not required.
-
setTimeout
public void setTimeout(long timeout) -
getTimeout
public long getTimeout() -
setPattern
-
getPattern
-
setRanking
-
getRanking
-