public class SessionService extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DatabaseVersionManager |
databaseVersionManager |
protected RecordSessionManager |
sessionManager |
protected SurveyManager |
surveyManager |
| Constructor and Description |
|---|
SessionService() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
initSession(String locale)
Set a locale (language, country) into the session state object
|
void |
keepAlive(Boolean editing)
Method used to keep the session alive
|
void |
logout() |
SurveyProxy |
setActivePreviewSurvey(int surveyId) |
protected SurveyProxy |
setActiveSurvey(CollectSurvey survey,
boolean work) |
SurveyProxy |
setActiveSurvey(int surveyId) |
SurveyProxy |
setActiveSurvey(String name) |
SurveyProxy |
setDesignerSurveyAsActive(int surveyId,
boolean work) |
@Autowired protected RecordSessionManager sessionManager
@Autowired protected SurveyManager surveyManager
@Autowired protected DatabaseVersionManager databaseVersionManager
public void keepAlive(Boolean editing) throws RecordUnlockedException
RecordUnlockedExceptionpublic Map<String,Object> initSession(String locale) throws DatabaseVersionNotCompatibleException
DatabaseVersionNotCompatibleExceptionpublic SurveyProxy setActiveSurvey(String name)
public SurveyProxy setActiveSurvey(int surveyId)
public SurveyProxy setActivePreviewSurvey(int surveyId)
public SurveyProxy setDesignerSurveyAsActive(int surveyId, boolean work)
protected SurveyProxy setActiveSurvey(CollectSurvey survey, boolean work)
public void logout()
Copyright © 2020 Open Foris. All rights reserved.