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
public class GetTokenAction extends ServiceableAction
Returns the token for a user (only to be used by the mobile app on one site)
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationTokenManager_authenticationTokenManagerAuthentication Token Managerprotected CurrentUserProvider_currentUserProviderThe current user providerprotected JSONUtils_jsonUtilsJSON Utilsprotected PopulationContextHelper_populationContextHelperThe helper for the associations population/contextprotected UserPopulationDAO_userPopulationDAOThe user population DAO-
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 GetTokenAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)private booleanauthenticate(String login, String password, Request request, SourceResolver resolver, Parameters parameters)voidservice(ServiceManager smanager)-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_authenticationTokenManager
protected AuthenticationTokenManager _authenticationTokenManager
Authentication Token Manager
-
_userPopulationDAO
protected UserPopulationDAO _userPopulationDAO
The user population DAO
-
_populationContextHelper
protected PopulationContextHelper _populationContextHelper
The helper for the associations population/context
-
_currentUserProvider
protected CurrentUserProvider _currentUserProvider
The current user provider
-
_jsonUtils
protected JSONUtils _jsonUtils
JSON Utils
-
-
Constructor Detail
-
GetTokenAction
public GetTokenAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
authenticate
private boolean authenticate(String login, String password, Request request, SourceResolver resolver, Parameters parameters) throws ParameterException
- Throws:
ParameterException
-
-