A simple web service aimed at reducing the tedium involved with creating new Slack workspaces based on the general configuration (channels, settings, etc.) of an existing Slack workspace.
0
stars
0
forks
source link
Adding: Servlet for handling requests on workspace template form, client POJOs, further fleshed out web service #11
This branch adds FormLoadAction servlet for handling requests for workspace template form and loading retrieved web service data. Implementation of servlet logic required:
Modification of database: in Template entity, removed column "primaryOwnerProfile" (nested escaped JSON String), and broke out those attributes into separate columns: "ownerFirstName", "ownerLastName", "ownerDisplayName", "ownerEmail". This change was made to drastically simplify CRUD operations on Templates and allow for additional queries on these sub-properties.
Creation of newly defined web service resource and @GET operation getTemplates in TemplateService class. This operation retrieves all templates for a given userID passed in as param, converts List of templates to JSON object, and sends as response.
Creation of TemplatesResponseDao on client to call web service resource, retrieve response, map response to POJO, and return retreived TemplatesCollection (found in com.slack2slack.consume package).
Moving "Choose Template" portion from configureWorkspace.jsp to new chooseTemplate.jsp. Flow now goes as follows: From index, logged in user clicks menu link "Slack Workspace Template Form" -> chooses template -> clicks configure template -> arrives at configureWorkspace.jsp
This branch adds FormLoadAction servlet for handling requests for workspace template form and loading retrieved web service data. Implementation of servlet logic required: