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
public class ExecuteClientCallsAction extends ServiceableAction implements ThreadSafe
Action executing remote method calls coming from client-side elements.
Called methods should be annotated withCallable
.
-
-
Field Summary
Fields Modifier and Type Field Description private CurrentUserProvider
_currentUserProvider
private RightAssignmentContextExtensionPoint
_rightCtxEP
private RightManager
_rightManager
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description ExecuteClientCallsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_checkAccess(Method method, Object[] paramValues)
protected Object
_executeMethod(Method method, Object object, Object[] paramValues)
Execute the method set in the client callprivate CurrentUserProvider
_getCurrentUserProvider()
private Object
_getRightContext(Method method, Callable callable, Object[] paramValues)
private RightAssignmentContextExtensionPoint
_getRightContextEP()
private RightManager
_getRightManager()
Map
act(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
-
-
-
-
Field Detail
-
_rightManager
private RightManager _rightManager
-
_currentUserProvider
private CurrentUserProvider _currentUserProvider
-
_rightCtxEP
private RightAssignmentContextExtensionPoint _rightCtxEP
-
-
Constructor Detail
-
ExecuteClientCallsAction
public ExecuteClientCallsAction()
-
-
Method Detail
-
_getRightManager
private RightManager _getRightManager()
-
_getCurrentUserProvider
private CurrentUserProvider _getCurrentUserProvider()
-
_getRightContextEP
private RightAssignmentContextExtensionPoint _getRightContextEP()
-
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
-
_checkAccess
private void _checkAccess(Method method, Object[] paramValues)
-
_getRightContext
private Object _getRightContext(Method method, Callable callable, Object[] paramValues)
-
-