Package org.alfresco.filesys.repo.rules
Class ScenarioRenameDeleteMoveInstance
- java.lang.Object
-
- org.alfresco.filesys.repo.rules.ScenarioRenameDeleteMoveInstance
-
- All Implemented Interfaces:
ScenarioInstance
public class ScenarioRenameDeleteMoveInstance extends java.lang.Object implements ScenarioInstance
This is an instance of a rename, delete, move scenario triggered by a rename of a file matching a specified pattern.a) Original file is renamed. Typically with an obscure name. b) Renamed file is deleted via delete command or via deleteOnClose flag and close operation. c) Temp file is moved into original file location.
If this filter is active then this is what happens. a) Original file is renamed: - File is renamed. b) Renamed file is deleted via delete command or via deleteOnClose flag and close operation: - File is deleted. c) Temp file is moved into original file location - Scenario fires - Deleted file is restored. - Restored file is renamed to it's original name. - Content from file that must be moved is copied to restored file. - File that must be moved is deleted.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.filesys.repo.rules.ScenarioInstance
ScenarioInstance.Ranking
-
-
Constructor Summary
Constructors Constructor Description ScenarioRenameDeleteMoveInstance()
-
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?booleanisDeleteBackup()voidsetDeleteBackup(boolean deleteBackup)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- 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()
-
setDeleteBackup
public void setDeleteBackup(boolean deleteBackup)
-
isDeleteBackup
public boolean isDeleteBackup()
-
-