Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idea-3 - 13513002 - Irene Wiliudarsan #28

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
b0832b4
Initial Commit
irenehuang189 Nov 9, 2015
7a0d4ef
Add database
irenehuang189 Nov 9, 2015
d2a2336
Add Web Services
devina-ekawati Nov 16, 2015
b74f558
Add Answer Web Service
devina-ekawati Nov 17, 2015
9bf455e
Fix Frontend WebApp
devina-ekawati Nov 17, 2015
2b9b337
Add Question Web Services
angelynz95 Nov 17, 2015
0f31ae4
Add Question Web Services
angelynz95 Nov 17, 2015
fd5c609
Fix Question Web Services
angelynz95 Nov 18, 2015
74d8b3d
Add log in and register page
irenehuang189 Nov 18, 2015
534ad4b
Add log in ad register page in Frontend WebApp
irenehuang189 Nov 18, 2015
9c489a0
Create index.jsp and servlet for index.jsp
angelynz95 Nov 18, 2015
51be0a5
Add detail-question.jsp, servlet for detail-question & add user web s…
devina-ekawati Nov 18, 2015
5fb0912
Add token generator and validator
irenehuang189 Nov 23, 2015
86c0b6a
Fix StackexchangeWS and Frontend WebApp project
devina-ekawati Nov 23, 2015
ad43c8e
Add gitignore
irenehuang189 Nov 23, 2015
8b37ae8
Fix gitignore
irenehuang189 Nov 23, 2015
c86ec76
Fix login, register page, and database
irenehuang189 Nov 23, 2015
fd95f4c
Add registration function
devina-ekawati Nov 23, 2015
92bd31a
Try to connect StackExchange Webservices with Identity Services
angelynz95 Nov 24, 2015
3d6c736
Fix user web service
devina-ekawati Nov 24, 2015
b8363a8
Revert "Fix user web service"
devina-ekawati Nov 24, 2015
b5c4e37
Merge confilct
devina-ekawati Nov 24, 2015
1664417
Merge branch 'master' of https://github.com/idea-3/IF3110-2015-T2
devina-ekawati Nov 24, 2015
8a9e069
Fix User WS, add token handler for SOAP
devina-ekawati Nov 24, 2015
285792a
Merge conflict
angelynz95 Nov 24, 2015
02f8e54
Merge remote-tracking branch 'origin/master'
angelynz95 Nov 24, 2015
92c1c6e
Fix Answer WS
devina-ekawati Nov 24, 2015
f36e20b
Merge conflict
angelynz95 Nov 24, 2015
43a9eb6
delete TokenHandler, add getUserIdByToken in UserWS, fix web reference
angelynz95 Nov 24, 2015
c9ed6a7
Fix index.jsp and IndexController.java
angelynz95 Nov 24, 2015
cf4aa68
Fix web code, connect Frontend WebApp to Identity Service
irenehuang189 Nov 24, 2015
97f83f7
Fix sending token to StackexchangeWS
irenehuang189 Nov 24, 2015
75bd3b6
Fix registration and question-detail
devina-ekawati Nov 24, 2015
4d8c9ab
Fix AnswerWS for voting, fix question-detail page
devina-ekawati Nov 25, 2015
9505dfc
Fix IndexController.java and index.jsp
angelynz95 Nov 25, 2015
69a5b46
Fix QusetionWS for voting
devina-ekawati Nov 25, 2015
b024364
FIx index.jsp, add EditController, AskController, DeleteController
angelynz95 Nov 26, 2015
28313ba
Add vote for answer, fix Answer WS
devina-ekawati Nov 26, 2015
32d4242
Fix sending token to webpage and add add anser servlet
irenehuang189 Nov 26, 2015
677ab0b
Fix controller
angelynz95 Nov 26, 2015
e16ae1b
Refactor git code
irenehuang189 Nov 26, 2015
6f081ed
Fix sending token to UserWS
irenehuang189 Nov 26, 2015
10c8172
Fix QuestionWS, EditController, DeleteController, index.jsp
angelynz95 Nov 26, 2015
c4b8e8f
Add function for vote question
devina-ekawati Nov 26, 2015
6908296
Fix submit button in ask-question.jsp
angelynz95 Nov 26, 2015
47502be
Fix bug
irenehuang189 Nov 26, 2015
daef077
Enhance functionality and fix session timeout
irenehuang189 Nov 27, 2015
1ce34da
Add log out functionality
irenehuang189 Nov 27, 2015
082cb90
Fix answer form session checking
irenehuang189 Nov 27, 2015
d8a1a2b
Update README.md
Nov 27, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Frontend WebApp/build
Frontend WebApp/dist
Frontend WebApp/nbproject
Frontend WebApp/build.xml
Frontend WebApp/catalog.xml
Identity Service/build
Identity Service/dist
Identity Service/nbproject
Identity Service/build.xml
Stackexchange WS/build
Stackexchange WS/dist
Stackexchange WS/nbproject
Stackexchange WS/build.xml
2 changes: 2 additions & 0 deletions Frontend WebApp/src/conf/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://AnswerModel/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://AnswerModel/" name="AnswerWS">
<types>
<xsd:schema>
<xsd:import namespace="http://AnswerModel/" schemaLocation="http://localhost:8081/Stackexchange_WS/AnswerWS?xsd=1"/>
</xsd:schema>
</types>
<message name="getAnswerByQId">
<part name="parameters" element="tns:getAnswerByQId"/>
</message>
<message name="getAnswerByQIdResponse">
<part name="parameters" element="tns:getAnswerByQIdResponse"/>
</message>
<message name="addAnswer">
<part name="parameters" element="tns:addAnswer"/>
</message>
<message name="addAnswerResponse">
<part name="parameters" element="tns:addAnswerResponse"/>
</message>
<message name="voteAnswer">
<part name="parameters" element="tns:voteAnswer"/>
</message>
<message name="voteAnswerResponse">
<part name="parameters" element="tns:voteAnswerResponse"/>
</message>
<message name="getCountAnswerByQId">
<part name="parameters" element="tns:getCountAnswerByQId"/>
</message>
<message name="getCountAnswerByQIdResponse">
<part name="parameters" element="tns:getCountAnswerByQIdResponse"/>
</message>
<portType name="AnswerWS">
<operation name="getAnswerByQId">
<input wsam:Action="http://AnswerModel/AnswerWS/getAnswerByQIdRequest" message="tns:getAnswerByQId"/>
<output wsam:Action="http://AnswerModel/AnswerWS/getAnswerByQIdResponse" message="tns:getAnswerByQIdResponse"/>
</operation>
<operation name="addAnswer">
<input wsam:Action="http://AnswerModel/AnswerWS/addAnswerRequest" message="tns:addAnswer"/>
<output wsam:Action="http://AnswerModel/AnswerWS/addAnswerResponse" message="tns:addAnswerResponse"/>
</operation>
<operation name="voteAnswer">
<input wsam:Action="http://AnswerModel/AnswerWS/voteAnswerRequest" message="tns:voteAnswer"/>
<output wsam:Action="http://AnswerModel/AnswerWS/voteAnswerResponse" message="tns:voteAnswerResponse"/>
</operation>
<operation name="getCountAnswerByQId">
<input wsam:Action="http://AnswerModel/AnswerWS/getCountAnswerByQIdRequest" message="tns:getCountAnswerByQId"/>
<output wsam:Action="http://AnswerModel/AnswerWS/getCountAnswerByQIdResponse" message="tns:getCountAnswerByQIdResponse"/>
</operation>
</portType>
<binding name="AnswerWSPortBinding" type="tns:AnswerWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getAnswerByQId">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="addAnswer">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="voteAnswer">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getCountAnswerByQId">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="AnswerWS">
<port name="AnswerWSPort" binding="tns:AnswerWSPortBinding">
<soap:address location="http://localhost:8081/Stackexchange_WS/AnswerWS"/>
</port>
</service>
</definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><xs:schema xmlns:tns="http://AnswerModel/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://AnswerModel/">

<xs:element name="Answer" type="tns:answer"/>

<xs:element name="addAnswer" type="tns:addAnswer"/>

<xs:element name="addAnswerResponse" type="tns:addAnswerResponse"/>

<xs:element name="getAnswerByQId" type="tns:getAnswerByQId"/>

<xs:element name="getAnswerByQIdResponse" type="tns:getAnswerByQIdResponse"/>

<xs:element name="getCountAnswerByQId" type="tns:getCountAnswerByQId"/>

<xs:element name="getCountAnswerByQIdResponse" type="tns:getCountAnswerByQIdResponse"/>

<xs:element name="voteAnswer" type="tns:voteAnswer"/>

<xs:element name="voteAnswerResponse" type="tns:voteAnswerResponse"/>

<xs:complexType name="getCountAnswerByQId">
<xs:sequence>
<xs:element name="qid" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="getCountAnswerByQIdResponse">
<xs:sequence>
<xs:element name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="voteAnswer">
<xs:sequence>
<xs:element name="aid" type="xs:int"/>
<xs:element name="vote" type="xs:string" minOccurs="0"/>
<xs:element name="token" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="voteAnswerResponse">
<xs:sequence>
<xs:element name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="getAnswerByQId">
<xs:sequence>
<xs:element name="qid" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="getAnswerByQIdResponse">
<xs:sequence>
<xs:element name="Answer" type="tns:answer" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="answer">
<xs:sequence>
<xs:element name="id_answer" type="xs:int"/>
<xs:element name="id_question" type="xs:int"/>
<xs:element name="id_user" type="xs:int"/>
<xs:element name="content" type="xs:string"/>
<xs:element name="datetime" type="xs:string"/>
<xs:element name="voteNum" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="addAnswer">
<xs:sequence>
<xs:element name="qid" type="xs:int"/>
<xs:element name="token" type="xs:string" minOccurs="0"/>
<xs:element name="content" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="addAnswerResponse">
<xs:sequence>
<xs:element name="return" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://QuestionModel/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://QuestionModel/" name="QuestionWS">
<types>
<xsd:schema>
<xsd:import namespace="http://QuestionModel/" schemaLocation="http://localhost:8081/Stackexchange_WS/QuestionWS?xsd=1"/>
</xsd:schema>
</types>
<message name="hasUserVoteQuestion">
<part name="parameters" element="tns:hasUserVoteQuestion"/>
</message>
<message name="hasUserVoteQuestionResponse">
<part name="parameters" element="tns:hasUserVoteQuestionResponse"/>
</message>
<message name="getQuestions">
<part name="parameters" element="tns:getQuestions"/>
</message>
<message name="getQuestionsResponse">
<part name="parameters" element="tns:getQuestionsResponse"/>
</message>
<message name="deleteQuestion">
<part name="parameters" element="tns:deleteQuestion"/>
</message>
<message name="deleteQuestionResponse">
<part name="parameters" element="tns:deleteQuestionResponse"/>
</message>
<message name="voteQuestion">
<part name="parameters" element="tns:voteQuestion"/>
</message>
<message name="voteQuestionResponse">
<part name="parameters" element="tns:voteQuestionResponse"/>
</message>
<message name="addQuestion">
<part name="parameters" element="tns:addQuestion"/>
</message>
<message name="addQuestionResponse">
<part name="parameters" element="tns:addQuestionResponse"/>
</message>
<message name="getQuestion">
<part name="parameters" element="tns:getQuestion"/>
</message>
<message name="getQuestionResponse">
<part name="parameters" element="tns:getQuestionResponse"/>
</message>
<message name="editQuestion">
<part name="parameters" element="tns:editQuestion"/>
</message>
<message name="editQuestionResponse">
<part name="parameters" element="tns:editQuestionResponse"/>
</message>
<message name="getQuestionsSearched">
<part name="parameters" element="tns:getQuestionsSearched"/>
</message>
<message name="getQuestionsSearchedResponse">
<part name="parameters" element="tns:getQuestionsSearchedResponse"/>
</message>
<portType name="QuestionWS">
<operation name="hasUserVoteQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/hasUserVoteQuestionRequest" message="tns:hasUserVoteQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/hasUserVoteQuestionResponse" message="tns:hasUserVoteQuestionResponse"/>
</operation>
<operation name="getQuestions">
<input wsam:Action="http://QuestionModel/QuestionWS/getQuestionsRequest" message="tns:getQuestions"/>
<output wsam:Action="http://QuestionModel/QuestionWS/getQuestionsResponse" message="tns:getQuestionsResponse"/>
</operation>
<operation name="deleteQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/deleteQuestionRequest" message="tns:deleteQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/deleteQuestionResponse" message="tns:deleteQuestionResponse"/>
</operation>
<operation name="voteQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/voteQuestionRequest" message="tns:voteQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/voteQuestionResponse" message="tns:voteQuestionResponse"/>
</operation>
<operation name="addQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/addQuestionRequest" message="tns:addQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/addQuestionResponse" message="tns:addQuestionResponse"/>
</operation>
<operation name="getQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/getQuestionRequest" message="tns:getQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/getQuestionResponse" message="tns:getQuestionResponse"/>
</operation>
<operation name="editQuestion">
<input wsam:Action="http://QuestionModel/QuestionWS/editQuestionRequest" message="tns:editQuestion"/>
<output wsam:Action="http://QuestionModel/QuestionWS/editQuestionResponse" message="tns:editQuestionResponse"/>
</operation>
<operation name="getQuestionsSearched">
<input wsam:Action="http://QuestionModel/QuestionWS/getQuestionsSearchedRequest" message="tns:getQuestionsSearched"/>
<output wsam:Action="http://QuestionModel/QuestionWS/getQuestionsSearchedResponse" message="tns:getQuestionsSearchedResponse"/>
</operation>
</portType>
<binding name="QuestionWSPortBinding" type="tns:QuestionWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="hasUserVoteQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getQuestions">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="deleteQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="voteQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="addQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="editQuestion">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getQuestionsSearched">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="QuestionWS">
<port name="QuestionWSPort" binding="tns:QuestionWSPortBinding">
<soap:address location="http://localhost:8081/Stackexchange_WS/QuestionWS"/>
</port>
</service>
</definitions>
Loading