Package org.alfresco.filesys.repo.rules
Filesystem Rule Evaluator to support Scenarios.
Low level operations (create, update, delete etc) are passed into the RuleEvaluator.
The RuleEvaluator is configured with a list of Scenarios which process the operations as and when their patterns match. The RuleEvaluator evaluates the stream of operations and returns commands to execute.
The Command Executor executes the commands returned from the RuleEvaluator.
Each Scenario is a Factory for A ScenarioInstance. The RuleEvaluator contains a set of active scenario instances.
- Since:
- 4.0
-
Interface Summary Interface Description Command A Command is something that must be done.DependentInstance A dependent instance takes account of some other instance.EvaluatorContext EvaluatorContextOperation An operation is a primitive thing that needs to be executed.OperationExecutor An operation executor is an implementation of how to execute an operation.RuleEvaluator The Rule Evaluator evaluates the operation and returns details of the commands to implement those operations.Scenario A scenario is a factory for scenario instances.ScenarioInstance A scenario instance is an active scenario.ScenarioInstanceRenameAware The scenario instance wants to be notified about rename. -
Class Summary Class Description RuleEvaluatorImpl The Rule Evaluator evaluates the operation and returns details of the commands to implement those operations.ScenarioCreateDeleteRenameShuffle A create, delete, rename, shuffle a) New file created.ScenarioCreateDeleteRenameShuffleInstance This is an instance of a create, delete, rename shuffle" triggered by a create of a file matching a specified pattern.ScenarioCreateShuffle A shuffle a) New file created.ScenarioCreateShuffleInstance This is an instance of a "classic shuffle" triggered by a create of a file matching a specified pattern.ScenarioDeleteRenameOrCreate 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.ScenarioDeleteRestore A delete restore shuffle.ScenarioDeleteRestoreInstance This is an instance of a "delete restore shuffle" Triggered by a delete of a file followed by a recreate of that same file.ScenarioDoubleRenameShuffle A double rename shuffle a) Existing file renamed out of the way.ScenarioDoubleRenameShuffleInstance This is an instance of a "double rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.ScenarioLockedDeleteShuffle A locked delete shuffleScenarioLockedDeleteShuffleInstance This is an instance of a "locked delete shuffle" triggered by a create of a file matching a specified pattern.ScenarioMultipleRenameShuffle This is an instance of a "multiple rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.ScenarioMultipleRenameShuffleInstance This is an instance of a "multiple rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.ScenarioOpenFile The Open File Scenario is a sequence of multiple openFile operations Only on the last close does the repo get closed.ScenarioRenameCreateShuffle ScenarioRenameDeleteMove A rename, delete, move scenario a) Original file is renamed.ScenarioRenameDeleteMoveInstance This is an instance of a rename, delete, move scenario triggered by a rename of a file matching a specified pattern.ScenarioRenameShuffle The "Vi" rename shuffle is a sequence where a file is moved out of the way and then a new copy of the file put into place.ScenarioResult ScenarioSimpleNonBuffered The Bog Standard Instance.ScenarioSimpleNonBufferedInstance The Simple Standard Scenario is what will be done if no other scenario intervenes.ScenarioTempDeleteShuffle A temp delete shuffle.ScenarioTempDeleteShuffleInstance 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.VirtualFilesystem -
Enum Summary Enum Description ScenarioInstance.Ranking