Class AbstractLoggedAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.mobileapp.action.AbstractPostAction
-
- org.ametys.plugins.mobileapp.action.AbstractLoggedAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
- Direct Known Subclasses:
GetFeedsAction
,GetFeedsContentsAction
,GetProjectsAction
,GetProjectsFeedAction
,LogoutAction
,SetNotificationsPrefsAction
,SetPushTokenAction
abstract class AbstractLoggedAction extends AbstractPostAction
An action that requires to be logged in
-
-
Field Summary
Fields Modifier and Type Field Description protected CurrentUserProvider
_currentUserProvider
The current user provider-
Fields inherited from class org.ametys.plugins.mobileapp.action.AbstractPostAction
_jsonUtils
-
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 AbstractLoggedAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
doAction(Request request, Map<String,Object> jsonParams)
Execute the actionprotected abstract Map<String,Object>
doLoggedInAction(Request request, Map<String,Object> jsonParams)
Execute the action that requires to be logged invoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.plugins.mobileapp.action.AbstractPostAction
act, getParameter, getParameters
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider
-
-
Constructor Detail
-
AbstractLoggedAction
AbstractLoggedAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractPostAction
- Throws:
ServiceException
-
doAction
public Map<String,Object> doAction(Request request, Map<String,Object> jsonParams)
Description copied from class:AbstractPostAction
Execute the action- Specified by:
doAction
in classAbstractPostAction
- Parameters:
request
- the requestjsonParams
- map of parameters passed in the post body as json- Returns:
- the json map to return
-
doLoggedInAction
protected abstract Map<String,Object> doLoggedInAction(Request request, Map<String,Object> jsonParams)
Execute the action that requires to be logged in- Parameters:
request
- the requestjsonParams
- map of parameters passed in the post body as json- Returns:
- the json map to return
-
-