Package org.alfresco.filesys.repo.rules
Class ScenarioMultipleRenameShuffle
- java.lang.Object
-
- org.alfresco.filesys.repo.rules.ScenarioMultipleRenameShuffle
-
- All Implemented Interfaces:
Scenario
public class ScenarioMultipleRenameShuffle extends java.lang.Object implements Scenario
This is an instance of a "multiple rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern. a) Original file renamed to the temporary b) Any operations with temporary (optional): b1) Temporary file renamed to other temporary b2) Temporary file deleted c) Temporary file (maybe not the same, as it was at step 1) renamed to the original fileIf this filter is active then this is what happens. a) Temporary file created. Content copied from original file to temporary file. b) Original file deleted (temporary). c) any operations with temporary file d) Original file restored. Content copied from temporary file to original file.
-
-
Constructor Summary
Constructors Constructor Description ScenarioMultipleRenameShuffle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScenarioInstancecreateInstance(EvaluatorContext ctx, Operation operation)Create a new ScenarioInstancejava.lang.StringgetPattern()ScenarioInstance.RankinggetRanking()longgetTimeout()voidsetPattern(java.lang.String pattern)voidsetRanking(ScenarioInstance.Ranking ranking)voidsetTimeout(long timeout)
-
-
-
Method Detail
-
createInstance
public ScenarioInstance createInstance(EvaluatorContext ctx, Operation operation)
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.
-
setPattern
public void setPattern(java.lang.String pattern)
-
getPattern
public java.lang.String getPattern()
-
setTimeout
public void setTimeout(long timeout)
-
getTimeout
public long getTimeout()
-
setRanking
public void setRanking(ScenarioInstance.Ranking ranking)
-
getRanking
public ScenarioInstance.Ranking getRanking()
-
-