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

Utubers - 13513063 - Muhammad Aodyra Khaidir #24

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
4413433
Laman Page Home, Question, Askhere, dan Header.
fauzanriff Nov 14, 2015
9964b54
Initial Web Service and model package
fauzanriff Nov 14, 2015
146acfa
Add utility package
fauzanriff Nov 14, 2015
cf6286f
Initial Identity Service and Client
fauzanriff Nov 14, 2015
eb09540
Design CSS,
aodyra Nov 14, 2015
80de6dd
creating jsp files
khalilambiya Nov 15, 2015
8296b2b
revisi jsp
khalilambiya Nov 16, 2015
462fc36
draft IdentityServices selesai
khalilambiya Nov 17, 2015
f948035
Add Web services for Question and Answer
fauzanriff Nov 17, 2015
047f264
memperbaiki tampilan
aodyra Nov 17, 2015
1e7cffd
Merge branch 'master' of https://github.com/Utubers/IF3110-2015-T2
aodyra Nov 17, 2015
eb82530
Membuat servlet Answer
aodyra Nov 17, 2015
9acdbbc
Menambahkan Servlet question
aodyra Nov 17, 2015
ea080cd
Menambahkan servlet register
aodyra Nov 17, 2015
88d75dc
Web Service : Question and Answer
fauzanriff Nov 17, 2015
dcd313d
Web Service Update
fauzanriff Nov 18, 2015
546824f
Web Service Add User WS functionality
fauzanriff Nov 18, 2015
ba4b79c
tes
aodyra Nov 18, 2015
8157739
Utah structure data dan penanganan bug answerWS
fauzanriff Nov 25, 2015
9a6979a
servlet pertanyaan dan jawaban
aodyra Nov 27, 2015
b5e3ebc
servlet edit question
aodyra Nov 27, 2015
1d4da47
memperbaiki fungsi register
aodyra Nov 27, 2015
fcf13d4
memperbaiki proses signin dan signout
aodyra Nov 27, 2015
a0f3a8b
menampilkan askhere.jsp untuk editquestion
aodyra Nov 27, 2015
688d938
menambahkan servlet untuk menampilkan satu pertanyaan dan jawaban
aodyra Nov 27, 2015
cf3b2a8
servler funngsi delete dan voting
aodyra Nov 27, 2015
4bda812
menambah servlet voting answer
aodyra Nov 27, 2015
02a81b3
finish work
aodyra Nov 27, 2015
315287b
Update model answer menggunakan timestamp
fauzanriff Nov 27, 2015
a8c6937
Penyesuaian package model dengan database
fauzanriff Nov 27, 2015
d277e68
Update QuestionWS dan UserWS sesuai kebutuhan client
fauzanriff Nov 27, 2015
1810497
Pembangunan keels Auth yang berhubungan dengan identity service
fauzanriff Nov 27, 2015
9d138e5
Autentikasi Pengecekan User pada QuestionWS
fauzanriff Nov 27, 2015
022f21a
Autentikasi pengecekan user pada AnswerWS
fauzanriff Nov 27, 2015
c9539cf
Autentikasi Pada UserWS
fauzanriff Nov 27, 2015
a721b94
Autenticas dan pánanganan vote
fauzanriff Nov 27, 2015
a1a93ef
Identity service selesai
khalilambiya Nov 27, 2015
1782b3f
Re-deploy, Re-commit some mistaken. Bug fixes on checking identity se…
fauzanriff Nov 27, 2015
7948b20
Update README.md
fauzanriff Nov 27, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
117 changes: 117 additions & 0 deletions Database/StackExchangeWS.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 14, 2015 at 08:39 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `question`
--

-- --------------------------------------------------------

--
-- Table structure for table `answer`
--

CREATE TABLE IF NOT EXISTS `answer` (
`Question_ID` int(11) NOT NULL,
`Answer_ID` int(11) NOT NULL,
`Content` varchar(100) NOT NULL,
`Vote` int(11) NOT NULL,
`Answered_by` varchar(15) NOT NULL,
`Email` varchar(25) NOT NULL,
`datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `answer`
--

INSERT INTO `answer` (`Question_ID`, `Answer_ID`, `Content`, `Vote`, `Answered_by`, `Email`, `datetime`) VALUES
(8, 8, 'Content\r\n ', 1, 'Name', '[email protected]', '2015-10-16 12:15:07'),
(8, 9, 'Content\r\n ', 0, 'Name', '[email protected]', '2015-10-16 12:18:26'),
(10, 10, 'Content\r\n ', 4, 'Name', '[email protected]', '2015-10-16 13:26:37');

-- --------------------------------------------------------

--
-- Table structure for table `member`
--

CREATE TABLE IF NOT EXISTS `member` (
`member_id` int(11) NOT NULL,
`name` varchar(25) NOT NULL,
`email` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `questions`
--

CREATE TABLE IF NOT EXISTS `questions` (
`Question_ID` int(11) NOT NULL,
`Content` varchar(100) NOT NULL,
`Asked_by` varchar(15) NOT NULL,
`Email` varchar(25) NOT NULL,
`Vote_Point` int(11) NOT NULL DEFAULT '0',
`Answers` int(11) NOT NULL DEFAULT '0',
`datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`QuestionTopic` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `questions`
--

INSERT INTO `questions` (`Question_ID`, `Content`, `Asked_by`, `Email`, `Vote_Point`, `Answers`, `datetime`, `QuestionTopic`) VALUES
(8, 'Content\r\n ', 'gua edit yang i', '[email protected]', 3, 2, '2015-10-16 09:21:03', 'Question Topic'),
(9, 'Content\r\n ', 'Name', '[email protected]', 2, 0, '2015-10-16 13:17:25', 'Question Topic'),
(10, 'Content\r\n ', 'Name', '[email protected]', 2, 1, '2015-10-16 13:19:10', 'Question Topic');

-- --------------------------------------------------------

--
-- Table structure for table `vote`
--

CREATE TABLE IF NOT EXISTS `vote` (
`id_member` varchar(25) NOT NULL,
`id_question` varchar(25) NOT NULL,
`id_answer` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `answer`
--
ALTER TABLE `answer`
ADD PRIMARY KEY (`Answer_ID`);

--
-- Indexes for table `questions`
--
ALTER TABLE `questions`
ADD PRIMARY KEY (`Question_ID`), ADD UNIQUE KEY `Question_ID` (`Question_ID`);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
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*
GDrive : https://drive.google.com/file/d/0B9b4UTkP27p5dEJNdW1ERVBvdVk/view?usp=sharing

### Arsitektur Umum Server

Expand Down
71 changes: 71 additions & 0 deletions StackExchange-Client/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="StackExchange-Client" default="default" basedir=".">
<description>Builds, tests, and runs the project StackExchange-Client.</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

package stackexchange.webservice;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for addAnswer complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="addAnswer"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="answer" type="{http://webservice.stackexchange/}answer" minOccurs="0"/&gt;
* &lt;element name="token" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "addAnswer", propOrder = {
"answer",
"token"
})
public class AddAnswer {

protected Answer answer;
protected String token;

/**
* Gets the value of the answer property.
*
* @return
* possible object is
* {@link Answer }
*
*/
public Answer getAnswer() {
return answer;
}

/**
* Sets the value of the answer property.
*
* @param value
* allowed object is
* {@link Answer }
*
*/
public void setAnswer(Answer value) {
this.answer = value;
}

/**
* Gets the value of the token property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToken() {
return token;
}

/**
* Sets the value of the token property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToken(String value) {
this.token = value;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

package stackexchange.webservice;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;


/**
* <p>Java class for addQuestion complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="addQuestion"&gt;
* &lt;complexContent&gt;
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
* &lt;sequence&gt;
* &lt;element name="question" type="{http://webservice.stackexchange/}question" minOccurs="0"/&gt;
* &lt;element name="token" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
* &lt;/sequence&gt;
* &lt;/restriction&gt;
* &lt;/complexContent&gt;
* &lt;/complexType&gt;
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "addQuestion", propOrder = {
"question",
"token"
})
public class AddQuestion {

protected Question question;
protected String token;

/**
* Gets the value of the question property.
*
* @return
* possible object is
* {@link Question }
*
*/
public Question getQuestion() {
return question;
}

/**
* Sets the value of the question property.
*
* @param value
* allowed object is
* {@link Question }
*
*/
public void setQuestion(Question value) {
this.question = value;
}

/**
* Gets the value of the token property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getToken() {
return token;
}

/**
* Sets the value of the token property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setToken(String value) {
this.token = value;
}

}
Loading