Class GetTokenAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.mobileapp.action.GetTokenAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
Returns the token for a user (only to be used by the mobile app on one site)
-
Field Summary
Modifier and TypeFieldDescriptionprotected AuthenticationTokenManager
Authentication Token Managerprotected CurrentUserProvider
The current user providerprotected JSONUtils
JSON Utilsprotected PopulationContextHelper
The helper for the associations population/contextprotected UserPopulationDAO
The user population DAOFields 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 TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager smanager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_authenticationTokenManager
Authentication Token Manager -
_userPopulationDAO
The user population DAO -
_populationContextHelper
The helper for the associations population/context -
_currentUserProvider
The current user provider -
_jsonUtils
JSON Utils
-
-
Constructor Details
-
GetTokenAction
public GetTokenAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-