Package com.inesm.KeyManager.ui
Class AppInterface
java.lang.Object
com.inesm.KeyManager.ui.AppInterface
Provides methods to convert user interface input to java application objects for each
of the available endpoints.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.gson.GsongetGson()inAcceptRequest(javax.servlet.http.HttpServletRequest request) inCreateKey(javax.servlet.http.HttpServletRequest request) inCreateMission(javax.servlet.http.HttpServletRequest request) inCreateRole(javax.servlet.http.HttpServletRequest request) inCreateStation(javax.servlet.http.HttpServletRequest request) inCreateUser(javax.servlet.http.HttpServletRequest request) inDeleteKey(javax.servlet.http.HttpServletRequest request) inDeleteRequest(javax.servlet.http.HttpServletRequest request) inDeleteUser(javax.servlet.http.HttpServletRequest request) inExportMessage(javax.servlet.http.HttpServletRequest request) inGetKey(javax.servlet.http.HttpServletRequest request) inGetMission(javax.servlet.http.HttpServletRequest request) inGetStation(javax.servlet.http.HttpServletRequest request) inGetUser(javax.servlet.http.HttpServletRequest request) inImportMessage(javax.servlet.http.HttpServletRequest request) inListLogs(javax.servlet.http.HttpServletRequest request) inLogin(javax.servlet.http.HttpServletRequest request) inMissionKeys(javax.servlet.http.HttpServletRequest request) inRemoveStation(javax.servlet.http.HttpServletRequest request) inRequestPassword(javax.servlet.http.HttpServletRequest request) inUpdateKey(javax.servlet.http.HttpServletRequest request) inUpdateMission(javax.servlet.http.HttpServletRequest request) inUpdateRole(javax.servlet.http.HttpServletRequest request) inUpdateSettings(javax.servlet.http.HttpServletRequest request) inUpdateStation(javax.servlet.http.HttpServletRequest request) inUpdateUser(javax.servlet.http.HttpServletRequest request) outCreateKey(Key key) outCreateMission(Mission mission) outCreateRole(Role role) outCreateStation(Station station) outCreateUser(User user) outDeleteKey(Key key) outDeleteUser(User user) outExportMessage(Message msg) outGetMission(Mission mission) outGetSettings(Settings set) outGetStation(Station station) outGetUser(User user) outImportMessage(Message msg) outKeysForMission(List<Key> keys) outListKeys(List<Key> keys) outListLogs(List<Log> logs) outListMessages(List<Message> messages) outListMission(List<Mission> missions) outListOperations(List<Operation> operations) outListRequests(List<Request> requests) outListRoles(List<Role> roles) outListStations(List<Station> stations) outListUsers(List<User> users) outUpdateKey(Key key) outUpdateMission(Mission mission) outUpdateRole(Role role) outUpdateStation(Station station) outUpdateUser(User user)
-
Field Details
-
gson
public static com.google.gson.Gson gson
-
-
Constructor Details
-
AppInterface
public AppInterface()
-
-
Method Details
-
outListMission
-
inCreateMission
public Mission inCreateMission(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outCreateMission
-
outUpdateMission
-
inUpdateMission
public Mission inUpdateMission(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
inGetMission
public Mission inGetMission(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outGetMission
-
outListRoles
-
outListOperations
-
inCreateRole
public Role inCreateRole(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inUpdateRole
public Role inUpdateRole(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outUpdateRole
-
outCreateRole
-
inDeleteUser
public User inDeleteUser(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outDeleteUser
-
outListUsers
-
inLogin
public User inLogin(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outLogin
-
inCreateUser
public User inCreateUser(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outCreateUser
-
inUpdateUser
public User inUpdateUser(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outUpdateUser
-
inGetUser
public User inGetUser(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outGetUser
-
outListKeys
-
inCreateKey
public Key inCreateKey(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outCreateKey
-
inDeleteKey
public Key inDeleteKey(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outDeleteKey
-
inGetKey
public Key inGetKey(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outGetKey
-
inUpdateKey
public Key inUpdateKey(javax.servlet.http.HttpServletRequest request) throws JsonBadSintaxException, RequestReadException -
outUpdateKey
-
inMissionKeys
public Mission inMissionKeys(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outKeysForMission
-
outListRequests
-
inRequestPassword
public Request inRequestPassword(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inAcceptRequest
public Request inAcceptRequest(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inDeleteRequest
public Request inDeleteRequest(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outListStations
-
inGetStation
public Station inGetStation(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inUpdateStation
public Station inUpdateStation(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inCreateStation
public Station inCreateStation(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inRemoveStation
public Station inRemoveStation(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outGetStation
-
outUpdateStation
-
outCreateStation
-
outGetSettings
-
outUpdateSettings
-
inUpdateSettings
public Settings inUpdateSettings(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
inListLogs
public Log inListLogs(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outListLogs
-
inExportMessage
public Message inExportMessage(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
outExportMessage
-
outImportMessage
-
outListMessages
-
inImportMessage
public Message inImportMessage(javax.servlet.http.HttpServletRequest request) throws RequestReadException, JsonBadSintaxException -
getGson
public static com.google.gson.Gson getGson()
-