KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > action > RuntimeActionService


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.action;
18
19 import java.util.List JavaDoc;
20 import java.util.Set JavaDoc;
21
22 import org.alfresco.repo.action.ActionServiceImpl.PendingAction;
23 import org.alfresco.repo.action.evaluator.ActionConditionEvaluator;
24 import org.alfresco.repo.action.executer.ActionExecuter;
25 import org.alfresco.service.cmr.action.Action;
26 import org.alfresco.service.cmr.action.CompositeAction;
27 import org.alfresco.service.cmr.repository.NodeRef;
28
29 /**
30  * @author Roy Wetherall
31  */

32 public interface RuntimeActionService
33 {
34     AsynchronousActionExecutionQueue getAsynchronousActionExecutionQueue();
35     
36     void registerActionConditionEvaluator(ActionConditionEvaluator actionConditionEvaluator);
37     
38     void registerActionExecuter(ActionExecuter actionExecuter);
39     
40     void populateCompositeAction(NodeRef compositeNodeRef, CompositeAction compositeAction);
41     
42     /**
43      * Save action, used internally to store the details of an action on the aciton node.
44      *
45      * @param actionNodeRef the action node reference
46      * @param action the action
47      */

48     void saveActionImpl(NodeRef owningNodeRef, NodeRef actionNodeRef, Action action);
49     
50     /**
51      *
52      * @param action
53      * @param actionedUponNodeRef
54      * @param checkConditions
55      */

56     public void executeActionImpl(
57             Action action,
58             NodeRef actionedUponNodeRef,
59             boolean checkConditions,
60             boolean executedAsynchronously,
61             Set JavaDoc<String JavaDoc> actionChain);
62     
63     public void directActionExecution(Action action, NodeRef actionedUponNodeRef);
64     
65     public List JavaDoc<PendingAction> getPostTransactionPendingActions();
66 }
67
Popular Tags