Package org.alfresco.filesys.repo.rules
Class ScenarioMultipleRenameShuffleInstance
- java.lang.Object
-
- org.alfresco.filesys.repo.rules.ScenarioMultipleRenameShuffleInstance
-
- All Implemented Interfaces:
ScenarioInstance
public class ScenarioMultipleRenameShuffleInstance extends java.lang.Object implements ScenarioInstance
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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.filesys.repo.rules.ScenarioInstance
ScenarioInstance.Ranking
-
-
Constructor Summary
Constructors Constructor Description ScenarioMultipleRenameShuffleInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commandevaluate(Operation operation)Evaluate the next operationScenarioInstance.RankinggetRanking()Get the RankinglonggetTimeout()booleanisComplete()Is the scenario complete?voidsetRanking(ScenarioInstance.Ranking ranking)voidsetTimeout(long timeout)java.lang.StringtoString()
-
-
-
Method Detail
-
evaluate
public Command evaluate(Operation operation)
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
public ScenarioInstance.Ranking getRanking()
Description copied from interface:ScenarioInstanceGet the Ranking- Specified by:
getRankingin interfaceScenarioInstance- Returns:
- Ranking
-
setRanking
public void setRanking(ScenarioInstance.Ranking ranking)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
setTimeout
public void setTimeout(long timeout)
-
getTimeout
public long getTimeout()
-
-