public class GreetingServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements GreetingService
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_MANAGER_LABEL
The Constant DATA_MANAGER_LABEL.
|
static String |
INFRA_MANAGER_LABEL
The Constant INFRA_MANAGER_LABEL.
|
static Integer |
MAX_ID_USER_RANDOM
The Constant MAX_ID_USER_RANDOM.
|
static Integer |
MIN_ID_USER_RANDOM
The Constant MIN_ID_USER_RANDOM.
|
static String |
VO_ADMIN_LABEL
The Constant VO_ADMIN_LABEL.
|
static String |
VRE_DESIGNER_LABEL
The Constant VRE_DESIGNER_LABEL.
|
static String |
VRE_MANAGER_LABEL
The Constant VRE_MANAGER_LABEL.
|
| Constructor and Description |
|---|
GreetingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSurvey(SurveyModel surveyModel)
Delete survey.
|
List<SurveyModel> |
getAllSurveysFromDB()
Gets the all surveys from DB.
|
int |
getCompanyId()
Gets the company id.
|
String |
getCurrentURL()
Gets the current URL.
|
String |
getDBName()
Gets the DB name.
|
String |
getDBURL()
Gets the dburl.
|
int |
getIdSurveyByUUID(String UUID)
Gets the id survey by UUID.
|
String |
getJdbcURL()
Gets the jdbc URL.
|
Map<String,String> |
getPersistenceMap()
Gets the persistence map.
|
String |
getPwd()
Gets the pwd.
|
List<SurveyQuestionModel> |
getQuestionsSurvey(int idSurvey)
Gets the questions survey.
|
SurveyModel |
getSurvey(int idSurvey)
Gets the survey.
|
SurveyModel |
getSurveyByUUID(String UUID)
Gets the survey by UUID.
|
SurveyModel |
getSurveyByUUIDAndUserId(String UUID,
int userId)
Gets the survey by UUID and user id.
|
List<SurveyModel> |
getSurveyList(UserDTO userDTO)
Gets the survey list.
|
List<TokenModel> |
getSurveyListByUserAnswerId(int idUserAnswer)
Gets the survey list by user answer id.
|
TokenModel |
getTokenModelByUUID(String UUID)
Gets the token model by UUID.
|
UserDTO |
getUser()
Gets the user.
|
UserDTO |
getUserListCurrentCompany(int idSurvey)
Gets the user list current company.
|
Map<String,String> |
getUsersInvitedToFillSurvey(int idSurvey)
Gets the users invited to fill survey.
|
void |
init() |
void |
insertSurvey(SurveyModel surveyModel)
Insert survey.
|
void |
insertSurveyQuestion(SurveyQuestionModel surveyQuestionModel,
int idSurvay)
Insert survey question.
|
void |
saveAllAnswer(SurveyModel surveyModel,
List<SurveyAnswerModel> surveyAnswerModelList,
TokenModel tokenModel,
String currentURL,
String fullNameUser)
Save all answer.
|
void |
saveAllSurvey(long idUser,
SurveyModel surveyModel,
List<SurveyQuestionModel> surveyQuestionModelList)
Save all survey.
|
void |
sendSurveyToUsers(String currentURL,
int idSurveySelected,
boolean isAnonymous,
String surveySender,
List<String> usersInviteSurveyList)
Send survey to users.
|
void |
setCompanyId(int companyId)
Sets the company id.
|
void |
setCurrentURL(String currentURL)
Sets the current URL.
|
void |
setDBName(String dBName)
Sets the DB name.
|
void |
setDBPropertyConnection()
Sets the DB property connection.
|
void |
setDBURL(String dBURL)
Sets the dburl.
|
void |
setJdbcURL(String jdbcURL)
Sets the jdbc URL.
|
void |
setPersistenceMap(Map<String,String> persistenceMap)
Sets the persistence map.
|
void |
setPwd(String pwd)
Sets the pwd.
|
void |
updateSurvey(long idUser,
SurveyModel surveyModel,
List<SurveyQuestionModel> surveyQuestionModelList)
Update survey.
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String VRE_MANAGER_LABEL
public static final String VRE_DESIGNER_LABEL
public static final String VO_ADMIN_LABEL
public static final String INFRA_MANAGER_LABEL
public static final String DATA_MANAGER_LABEL
public static final Integer MIN_ID_USER_RANDOM
public static final Integer MAX_ID_USER_RANDOM
public void init()
init in class javax.servlet.GenericServletpublic void saveAllSurvey(long idUser,
SurveyModel surveyModel,
List<SurveyQuestionModel> surveyQuestionModelList)
saveAllSurvey in interface GreetingServiceidUser - the id usersurveyModel - the survey modelsurveyQuestionModelList - the survey question model listpublic void saveAllAnswer(SurveyModel surveyModel, List<SurveyAnswerModel> surveyAnswerModelList, TokenModel tokenModel, String currentURL, String fullNameUser)
saveAllAnswer in interface GreetingServicesurveyModel - the survey modelsurveyAnswerModelList - the survey answer model listtokenModel - the token modelcurrentURL - the current URLfullNameUser - the full name userpublic void insertSurveyQuestion(SurveyQuestionModel surveyQuestionModel, int idSurvay)
insertSurveyQuestion in interface GreetingServicesurveyQuestionModel - the survey question modelidSurvay - the id survaypublic void insertSurvey(SurveyModel surveyModel)
insertSurvey in interface GreetingServicesurveyModel - the survey modelpublic UserDTO getUser()
getUser in interface GreetingServicepublic UserDTO getUserListCurrentCompany(int idSurvey)
getUserListCurrentCompany in interface GreetingServiceidSurvey - the id surveypublic Map<String,String> getUsersInvitedToFillSurvey(int idSurvey)
getUsersInvitedToFillSurvey in interface GreetingServiceidSurvey - the id surveypublic SurveyModel getSurvey(int idSurvey)
getSurvey in interface GreetingServiceidSurvey - the id surveypublic List<SurveyModel> getSurveyList(UserDTO userDTO)
getSurveyList in interface GreetingServiceuserDTO - the user DTOpublic List<SurveyModel> getAllSurveysFromDB()
getAllSurveysFromDB in interface GreetingServicepublic int getIdSurveyByUUID(String UUID)
getIdSurveyByUUID in interface GreetingServiceUUID - the uuidpublic SurveyModel getSurveyByUUID(String UUID)
getSurveyByUUID in interface GreetingServiceUUID - the uuidpublic SurveyModel getSurveyByUUIDAndUserId(String UUID, int userId)
getSurveyByUUIDAndUserId in interface GreetingServiceUUID - the uuiduserId - the user idpublic List<TokenModel> getSurveyListByUserAnswerId(int idUserAnswer)
getSurveyListByUserAnswerId in interface GreetingServiceidUserAnswer - the id user answerpublic TokenModel getTokenModelByUUID(String UUID)
getTokenModelByUUID in interface GreetingServiceUUID - the uuidpublic void deleteSurvey(SurveyModel surveyModel)
deleteSurvey in interface GreetingServicesurveyModel - the survey modelpublic void updateSurvey(long idUser,
SurveyModel surveyModel,
List<SurveyQuestionModel> surveyQuestionModelList)
updateSurvey in interface GreetingServiceidUser - the id usersurveyModel - the survey modelsurveyQuestionModelList - the survey question model listpublic List<SurveyQuestionModel> getQuestionsSurvey(int idSurvey)
getQuestionsSurvey in interface GreetingServiceidSurvey - the id surveypublic void sendSurveyToUsers(String currentURL, int idSurveySelected, boolean isAnonymous, String surveySender, List<String> usersInviteSurveyList)
sendSurveyToUsers in interface GreetingServicecurrentURL - the current URLidSurveySelected - the id survey selectedisAnonymous - the is anonymoussurveySender - the survey senderusersInviteSurveyList - the users invite survey listpublic void setDBPropertyConnection()
public int getCompanyId()
public void setCompanyId(int companyId)
companyId - the new company idpublic String getJdbcURL()
public void setJdbcURL(String jdbcURL)
jdbcURL - the new jdbc URLpublic String getDBURL()
public void setDBURL(String dBURL)
dBURL - the new dburlpublic String getDBName()
public void setDBName(String dBName)
dBName - the new DB namepublic String getPwd()
public void setPwd(String pwd)
pwd - the new pwdpublic String getCurrentURL()
public void setCurrentURL(String currentURL)
currentURL - the new current URLpublic Map<String,String> getPersistenceMap()
Copyright © 2018. All Rights Reserved.