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

HMIFMerdu - 13513049 - Ahmad Naufal Farhan #26

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
214b7a7
initial commit
ahmadnaufal Nov 13, 2015
ec92434
added question web service: read and create
ahmadnaufal Nov 13, 2015
255e86e
Home dan login
trymochamad Nov 14, 2015
f6cc9cb
getter for question, and CRUD complete
ahmadnaufal Nov 16, 2015
bc3b5c0
Continue WS (Answer dan Register)
trymochamad Nov 18, 2015
718d22b
Register connect JSP
trymochamad Nov 18, 2015
3f9152c
editing registerws to userws, and refactoring
ahmadnaufal Nov 18, 2015
349e052
login identity service: tokens
ahmadnaufal Nov 18, 2015
9bff9b6
identity login service, and test client (not tested)
ahmadnaufal Nov 22, 2015
b5b9a95
Renaming method & field: changes to database and pushing all
ahmadnaufal Nov 23, 2015
4b261e7
added database dump
ahmadnaufal Nov 23, 2015
2e2888d
Revisit StackExchangeWS (incomplete)
ahmadnaufal Nov 23, 2015
2202d85
Fix dump database stackexchange
ahmadnaufal Nov 23, 2015
b83ef9d
SE WS complete question and answer (vote not done yet)
ahmadnaufal Nov 24, 2015
64ab6f0
Added operation: Question Vote & Answer Vote
squilliams Nov 24, 2015
4499b4e
Answer & Question Vote Operation added
squilliams Nov 24, 2015
ad4820b
Servlet Register
trymochamad Nov 24, 2015
7168e64
Register Servlet
trymochamad Nov 24, 2015
0f0c207
Merge branch
trymochamad Nov 24, 2015
db5a240
SE WS complete question and answer (vote not done yet)
ahmadnaufal Nov 24, 2015
27603a9
IS: Added ServiceAuth
ahmadnaufal Nov 24, 2015
26a6b29
IS: Login fully working, ServiceAuth complete
ahmadnaufal Nov 25, 2015
501b0fe
WS: added verify token for questions
ahmadnaufal Nov 25, 2015
50b8333
edited dump
ahmadnaufal Nov 25, 2015
d32ead2
Register Fixed
trymochamad Nov 25, 2015
cadf118
removed old IS, use StackExchangeIS instead
ahmadnaufal Nov 25, 2015
f779665
edited gitignore
ahmadnaufal Nov 25, 2015
21a0832
cleaning unnecessary files
ahmadnaufal Nov 25, 2015
f8083f8
WS: token validation incomplete
ahmadnaufal Nov 26, 2015
4a9e1e3
WS: token validation complete
ahmadnaufal Nov 26, 2015
1e71724
IS: validation complete
ahmadnaufal Nov 26, 2015
2e6f6d3
Front page & view post initial commit
squilliams Nov 26, 2015
b8d0e90
Merge branch 'master' of http://www.github.com/HMIFMerdu/IF3110-2015-T2
squilliams Nov 26, 2015
dd4b601
Show Question
trymochamad Nov 26, 2015
b4c140e
Fixing display list of question, viewpost initial commit
trymochamad Nov 26, 2015
c0d5e4f
Fix viewpost : displaying answer
squilliams Nov 26, 2015
2da4986
Added answer vote & question vote
squilliams Nov 26, 2015
b780884
IS: added deletion of existing token
ahmadnaufal Nov 26, 2015
adce170
ask question and continue edit question
trymochamad Nov 26, 2015
2e10271
WS: added search question
ahmadnaufal Nov 27, 2015
ee6955f
Fixing question vote
squilliams Nov 27, 2015
0191bc5
cleaning out unused jsp
ahmadnaufal Nov 27, 2015
3ec0be4
Merge
trymochamad Nov 27, 2015
f40b53d
add getUserByToken
ahmadnaufal Nov 27, 2015
ce4db14
Fix Ask Question
trymochamad Nov 27, 2015
93163d6
Merge branch 'master' of https://github.com/HMIFMerdu/IF3110-2015-T2
trymochamad Nov 27, 2015
a449946
WS: question sorted by timestamp
ahmadnaufal Nov 27, 2015
1fbc4ba
Search Question
trymochamad Nov 27, 2015
1173fd8
WS: getUserByToken working
ahmadnaufal Nov 27, 2015
0abed9c
Merge branch 'master' of https://github.com/HMIFMerdu/IF3110-2015-T2
ahmadnaufal Nov 27, 2015
5e92c8b
View Post added feature : Asked by, delete
squilliams Nov 27, 2015
8580b5d
get user by token completed, save and edit question
ahmadnaufal Nov 27, 2015
624b662
merging beberapa file
squilliams Nov 27, 2015
0805bbf
fixing web page
trymochamad Nov 27, 2015
9ae27d0
Merge branch 'master' of https://github.com/HMIFMerdu/IF3110-2015-T2
trymochamad Nov 27, 2015
b61fa85
Fixing Web Pages
trymochamad Nov 27, 2015
b426999
Logout Fixed
trymochamad Nov 27, 2015
88d6f78
Show answer vote, edit, delete
trymochamad Nov 27, 2015
6f5139f
Cut question content on index
squilliams Nov 27, 2015
5482fc4
Updated views
squilliams Nov 27, 2015
2b3fb17
added error display for views
ahmadnaufal Nov 27, 2015
683b05d
Laporan Tugas
trymochamad 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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/StackExchangeWS/build/
/StackExchangeWS/dist/
/StackExchangeWS/nbproject/
/StackExchangeClient/build/
/StackExchangeClient/dist/
/StackExchangeClient/nbproject/
/StackExchangeIS/build/
/StackExchangeIS/dist/
/StackExchangeIS/nbproject/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Diharapkan dengan tugas ini anda dapat mengerti:

### Link Laporan

*Masukkan link laporan anda di sini*
http://bit.ly/LaporanHMIFMerdu

### Arsitektur Umum Server

Expand Down
71 changes: 71 additions & 0 deletions StackExchangeClient/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="StackExchangeClient" default="default" basedir=".">
<description>Builds, tests, and runs the project StackExchangeClient.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying

Example of pluging an obfuscator after the compilation could look like

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported
nbproject/build-impl.xml file.


Other way how to customize the build is by overriding existing main targets.
The target of interest are:

init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation

Example of overriding the target for project execution could look like

<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>

Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.

-->
</project>
17 changes: 17 additions & 0 deletions StackExchangeClient/catalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://localhost:8080/StackExchangeWS/QuestionsWS?wsdl" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_8080/StackExchangeWS/QuestionsWS.wsdl"/>
<system systemId="http://localhost:8080/StackExchangeWS/QuestionsWS?xsd=1" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_8080/StackExchangeWS/QuestionsWS.xsd_1.xsd"/>
<system systemId="http://localhost:32229/StackExchangeWS/Register?wsdl" uri="src/conf/xml-resources/web-service-references/Register/wsdl/localhost_32229/StackExchangeWS/Register.wsdl"/>
<system systemId="http://localhost:32229/StackExchangeWS/Register?xsd=1" uri="src/conf/xml-resources/web-service-references/Register/wsdl/localhost_32229/StackExchangeWS/Register.xsd_1.xsd"/>
<system systemId="http://localhost:41585/StackExchangeWS/UserWS?wsdl" uri="src/conf/xml-resources/web-service-references/UserWS/wsdl/localhost_41585/StackExchangeWS/UserWS.wsdl"/>
<system systemId="http://localhost:41585/StackExchangeWS/UserWS?xsd=1" uri="src/conf/xml-resources/web-service-references/UserWS/wsdl/localhost_41585/StackExchangeWS/UserWS.xsd_1.xsd"/>
<system systemId="http://localhost:41585/StackExchangeWS/QuestionsWS?wsdl" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_41585/StackExchangeWS/QuestionsWS.wsdl"/>
<system systemId="http://localhost:41585/StackExchangeWS/QuestionsWS?xsd=1" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_41585/StackExchangeWS/QuestionsWS.xsd_1.xsd"/>
<system systemId="http://localhost:8081/StackExchangeWS/AnswersWS?wsdl" uri="src/conf/xml-resources/web-service-references/AnswersWS/wsdl/localhost_8081/StackExchangeWS/AnswersWS.wsdl"/>
<system systemId="http://localhost:8081/StackExchangeWS/AnswersWS?xsd=1" uri="src/conf/xml-resources/web-service-references/AnswersWS/wsdl/localhost_8081/StackExchangeWS/AnswersWS.xsd_1.xsd"/>
<system systemId="http://localhost:8081/StackExchangeWS/QuestionsWS?wsdl" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_8081/StackExchangeWS/QuestionsWS.wsdl"/>
<system systemId="http://localhost:8081/StackExchangeWS/QuestionsWS?xsd=1" uri="src/conf/xml-resources/web-service-references/QuestionsWS/wsdl/localhost_8081/StackExchangeWS/QuestionsWS.xsd_1.xsd"/>
<system systemId="http://localhost:8081/StackExchangeWS/UserWS?wsdl" uri="src/conf/xml-resources/web-service-references/UserWS/wsdl/localhost_8081/StackExchangeWS/UserWS.wsdl"/>
<system systemId="http://localhost:8081/StackExchangeWS/UserWS?xsd=1" uri="src/conf/xml-resources/web-service-references/UserWS/wsdl/localhost_8081/StackExchangeWS/UserWS.xsd_1.xsd"/>
</catalog>
Binary file added StackExchangeClient/json-simple-1.1.1.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions StackExchangeClient/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.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 svn-revision#unknown. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 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://Answer/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://Answer/" name="AnswersWS">
<types>
<xsd:schema>
<xsd:import namespace="http://Answer/" schemaLocation="http://localhost:8081/StackExchangeWS/AnswersWS?xsd=1"/>
</xsd:schema>
</types>
<message name="insertAnswer">
<part name="parameters" element="tns:insertAnswer"/>
</message>
<message name="insertAnswerResponse">
<part name="parameters" element="tns:insertAnswerResponse"/>
</message>
<message name="getAnswersByQid">
<part name="parameters" element="tns:getAnswersByQid"/>
</message>
<message name="getAnswersByQidResponse">
<part name="parameters" element="tns:getAnswersByQidResponse"/>
</message>
<message name="getanswervote">
<part name="parameters" element="tns:getanswervote"/>
</message>
<message name="getanswervoteResponse">
<part name="parameters" element="tns:getanswervoteResponse"/>
</message>
<message name="voteanswers">
<part name="parameters" element="tns:voteanswers"/>
</message>
<message name="voteanswersResponse">
<part name="parameters" element="tns:voteanswersResponse"/>
</message>
<portType name="AnswersWS">
<operation name="insertAnswer">
<input wsam:Action="http://Answer/AnswersWS/insertAnswerRequest" message="tns:insertAnswer"/>
<output wsam:Action="http://Answer/AnswersWS/insertAnswerResponse" message="tns:insertAnswerResponse"/>
</operation>
<operation name="getAnswersByQid">
<input wsam:Action="http://Answer/AnswersWS/getAnswersByQidRequest" message="tns:getAnswersByQid"/>
<output wsam:Action="http://Answer/AnswersWS/getAnswersByQidResponse" message="tns:getAnswersByQidResponse"/>
</operation>
<operation name="getanswervote">
<input wsam:Action="http://Answer/AnswersWS/getanswervoteRequest" message="tns:getanswervote"/>
<output wsam:Action="http://Answer/AnswersWS/getanswervoteResponse" message="tns:getanswervoteResponse"/>
</operation>
<operation name="voteanswers">
<input wsam:Action="http://Answer/AnswersWS/voteanswersRequest" message="tns:voteanswers"/>
<output wsam:Action="http://Answer/AnswersWS/voteanswersResponse" message="tns:voteanswersResponse"/>
</operation>
</portType>
<binding name="AnswersWSPortBinding" type="tns:AnswersWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="insertAnswer">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getAnswersByQid">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="getanswervote">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operation name="voteanswers">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="AnswersWS">
<port name="AnswersWSPort" binding="tns:AnswersWSPortBinding">
<soap:address location="http://localhost:8081/StackExchangeWS/AnswersWS"/>
</port>
</service>
</definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.2-b608 (trunk-7979; 2015-01-21T12:50:19+0000) JAXWS-RI/2.2.11-b150120.1832 JAXWS-API/2.2.12 JAXB-RI/2.2.12-b141219.1637 JAXB-API/2.2.13-b141020.1521 svn-revision#unknown. --><xs:schema xmlns:tns="http://Answer/" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0" targetNamespace="http://Answer/">

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

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

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

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

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

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

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

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

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

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

<xs:complexType name="getAnswersByQidResponse">
<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="answer-id" type="xs:int"/>
<xs:element name="answer-uid" type="xs:int"/>
<xs:element name="answer-qid" type="xs:int"/>
<xs:element name="answer-content" type="xs:string"/>
<xs:element name="answer-timestamp" type="xs:string"/>
</xs:sequence>
</xs:complexType>

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

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

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

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

<xs:complexType name="getanswervote">
<xs:sequence>
<xs:element name="aid" type="xs:int"/>
</xs:sequence>
</xs:complexType>

<xs:complexType name="getanswervoteResponse">
<xs:sequence>
<xs:element name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Loading