Package org.ametys.core.ui
Class ExecuteClientCallsAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.core.ui.ExecuteClientCallsAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
- Direct Known Subclasses:
ExecuteWorkspacesClientCallsAction
Action executing remote method calls coming from client-side elements.
Called methods should be annotated with
Called methods should be annotated with
Callable
.-
Field Summary
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
_executeMethod
(Method method, Object object, Object[] paramValues) Execute the method set in the client callact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) Methods inherited from class org.apache.cocoon.acting.ServiceableAction
service
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
ExecuteClientCallsAction
public ExecuteClientCallsAction()
-
-
Method Details
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
_executeMethod
protected Object _executeMethod(Method method, Object object, Object[] paramValues) throws Exception Execute the method set in the client call- Parameters:
method
- The methodobject
- The object which has the methodparamValues
- The method parameters- Returns:
- The result
- Throws:
Exception
- If an error occurred
-