Package org.alfresco.filesys.repo.rules
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
-
ClassDescriptionA Command is something that must be done.A dependent instance takes account of some other instance.EvaluatorContextAn operation is a primitive thing that needs to be executed.An operation executor is an implementation of how to execute an operation.The Rule Evaluator evaluates the operation and returns details of the commands to implement those operations.The Rule Evaluator evaluates the operation and returns details of the commands to implement those operations.A scenario is a factory for scenario instances.A create, delete, rename, shuffle a) New file created.This is an instance of a create, delete, rename shuffle" triggered by a create of a file matching a specified pattern.A shuffle a) New file created.This is an instance of a "classic shuffle" triggered by a create of a file matching a specified pattern.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.A delete restore shuffle.This is an instance of a "delete restore shuffle" Triggered by a delete of a file followed by a recreate of that same file.A double rename shuffle a) Existing file renamed out of the way.This is an instance of a "double rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.A scenario instance is an active scenario.The scenario instance wants to be notified about rename.A locked delete shuffleThis is an instance of a "locked delete shuffle" triggered by a create of a file matching a specified pattern.This is an instance of a "multiple rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.This is an instance of a "multiple rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern.The Open File Scenario is a sequence of multiple openFile operations Only on the last close does the repo get closed.A rename, delete, move scenario a) Original file is renamed.This is an instance of a rename, delete, move scenario triggered by a rename of a file matching a specified pattern.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.The Bog Standard Instance.The Simple Standard Scenario is what will be done if no other scenario intervenes.A temp delete shuffle.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.