#{viewPostController.viewPost.title}
+ ++
#{viewPostController.viewPost.content}
+ ++ +
Komentar
+ ++
-
+
-
+ ++
#{comment.name}
+#{comment.date}+#{comment.content} …
+
+
Java class for comment complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="comment"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="content" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="date" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/> + * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> + * <element name="postId" type="{http://www.w3.org/2001/XMLSchema}int"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "comment", propOrder = { + "content", + "date", + "email", + "id", + "name", + "postId" +}) +public class Comment { + + protected String content; + protected String date; + protected String email; + protected int id; + protected String name; + protected int postId; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the date property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDate() { + return date; + } + + /** + * Sets the value of the date property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDate(String value) { + this.date = value; + } + + /** + * Gets the value of the email property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEmail() { + return email; + } + + /** + * Sets the value of the email property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEmail(String value) { + this.email = value; + } + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the postId property. + * + */ + public int getPostId() { + return postId; + } + + /** + * Sets the value of the postId property. + * + */ + public void setPostId(int value) { + this.postId = value; + } + +} diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetCommentList.java b/simple-blog/src/java/simpleblog/heroku/service/GetCommentList.java new file mode 100644 index 0000000..18dc918 --- /dev/null +++ b/simple-blog/src/java/simpleblog/heroku/service/GetCommentList.java @@ -0,0 +1,52 @@ + +package simpleblog.heroku.service; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *
Java class for getCommentList complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="getCommentList"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "getCommentList", propOrder = { + "arg0" +}) +public class GetCommentList { + + protected int arg0; + + /** + * Gets the value of the arg0 property. + * + */ + public int getArg0() { + return arg0; + } + + /** + * Sets the value of the arg0 property. + * + */ + public void setArg0(int value) { + this.arg0 = value; + } + +} diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetCommentListResponse.java b/simple-blog/src/java/simpleblog/heroku/service/GetCommentListResponse.java new file mode 100644 index 0000000..2855066 --- /dev/null +++ b/simple-blog/src/java/simpleblog/heroku/service/GetCommentListResponse.java @@ -0,0 +1,69 @@ + +package simpleblog.heroku.service; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *
Java class for getCommentListResponse complex type. + * + *
The following schema fragment specifies the expected content contained within this class. + * + *
+ * <complexType name="getCommentListResponse"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <sequence> + * <element name="return" type="{http://service.heroku.simpleblog/}comment" maxOccurs="unbounded" minOccurs="0"/> + * </sequence> + * </restriction> + * </complexContent> + * </complexType> + *+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "getCommentListResponse", propOrder = { + "_return" +}) +public class GetCommentListResponse { + + @XmlElement(name = "return") + protected List
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a set
method for the return property.
+ *
+ *
+ * For example, to add a new item, do as follows: + *
+ * getReturn().add(newItem); + *+ * + * + *
+ * Objects of the following type(s) are allowed in the list
+ * {@link Comment }
+ *
+ *
+ */
+ public List Java class for getPost complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getPostList complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getPostListResponse complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link Post }
+ *
+ *
+ */
+ public List Java class for getPostResponse complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getUser complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getUserById complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getUserByIdResponse complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getUserList complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for getUserListResponse complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ * This accessor method returns a reference to the live list,
+ * not a snapshot. Therefore any modification you make to the
+ * returned list will be present inside the JAXB object.
+ * This is why there is not a
+ * For example, to add a new item, do as follows:
+ *
+ * Objects of the following type(s) are allowed in the list
+ * {@link User }
+ *
+ *
+ */
+ public List Java class for getUserResponse complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for IOException complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _GetPost_QNAME = new QName("http://service.heroku.simpleblog/", "getPost");
+ private final static QName _GetCommentList_QNAME = new QName("http://service.heroku.simpleblog/", "getCommentList");
+ private final static QName _GetPostResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getPostResponse");
+ private final static QName _GetCommentListResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getCommentListResponse");
+ private final static QName _GetPostListResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getPostListResponse");
+ private final static QName _GetUserById_QNAME = new QName("http://service.heroku.simpleblog/", "getUserById");
+ private final static QName _GetPostList_QNAME = new QName("http://service.heroku.simpleblog/", "getPostList");
+ private final static QName _GetUserResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getUserResponse");
+ private final static QName _GetUser_QNAME = new QName("http://service.heroku.simpleblog/", "getUser");
+ private final static QName _GetUserByIdResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getUserByIdResponse");
+ private final static QName _GetUserList_QNAME = new QName("http://service.heroku.simpleblog/", "getUserList");
+ private final static QName _IOException_QNAME = new QName("http://service.heroku.simpleblog/", "IOException");
+ private final static QName _GetUserListResponse_QNAME = new QName("http://service.heroku.simpleblog/", "getUserListResponse");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: simpleblog.heroku.service
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link GetPostList }
+ *
+ */
+ public GetPostList createGetPostList() {
+ return new GetPostList();
+ }
+
+ /**
+ * Create an instance of {@link GetUserResponse }
+ *
+ */
+ public GetUserResponse createGetUserResponse() {
+ return new GetUserResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetUserById }
+ *
+ */
+ public GetUserById createGetUserById() {
+ return new GetUserById();
+ }
+
+ /**
+ * Create an instance of {@link GetUserByIdResponse }
+ *
+ */
+ public GetUserByIdResponse createGetUserByIdResponse() {
+ return new GetUserByIdResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetUser }
+ *
+ */
+ public GetUser createGetUser() {
+ return new GetUser();
+ }
+
+ /**
+ * Create an instance of {@link GetUserListResponse }
+ *
+ */
+ public GetUserListResponse createGetUserListResponse() {
+ return new GetUserListResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetUserList }
+ *
+ */
+ public GetUserList createGetUserList() {
+ return new GetUserList();
+ }
+
+ /**
+ * Create an instance of {@link IOException }
+ *
+ */
+ public IOException createIOException() {
+ return new IOException();
+ }
+
+ /**
+ * Create an instance of {@link GetPostResponse }
+ *
+ */
+ public GetPostResponse createGetPostResponse() {
+ return new GetPostResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetPost }
+ *
+ */
+ public GetPost createGetPost() {
+ return new GetPost();
+ }
+
+ /**
+ * Create an instance of {@link GetCommentList }
+ *
+ */
+ public GetCommentList createGetCommentList() {
+ return new GetCommentList();
+ }
+
+ /**
+ * Create an instance of {@link GetCommentListResponse }
+ *
+ */
+ public GetCommentListResponse createGetCommentListResponse() {
+ return new GetCommentListResponse();
+ }
+
+ /**
+ * Create an instance of {@link GetPostListResponse }
+ *
+ */
+ public GetPostListResponse createGetPostListResponse() {
+ return new GetPostListResponse();
+ }
+
+ /**
+ * Create an instance of {@link Post }
+ *
+ */
+ public Post createPost() {
+ return new Post();
+ }
+
+ /**
+ * Create an instance of {@link Comment }
+ *
+ */
+ public Comment createComment() {
+ return new Comment();
+ }
+
+ /**
+ * Create an instance of {@link User }
+ *
+ */
+ public User createUser() {
+ return new User();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link GetPost }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://service.heroku.simpleblog/", name = "getPost")
+ public JAXBElement Java class for post complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ * Java class for user complex type.
+ *
+ * The following schema fragment specifies the expected content contained within this class.
+ *
+ *
+ #{viewPostController.viewPost.content} #{comment.content} …
+ * <complexType name="getPost">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getPost", propOrder = {
+ "arg0"
+})
+public class GetPost {
+
+ protected int arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetPostList.java b/simple-blog/src/java/simpleblog/heroku/service/GetPostList.java
new file mode 100644
index 0000000..ab17e56
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetPostList.java
@@ -0,0 +1,52 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getPostList">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getPostList", propOrder = {
+ "arg0"
+})
+public class GetPostList {
+
+ protected int arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetPostListResponse.java b/simple-blog/src/java/simpleblog/heroku/service/GetPostListResponse.java
new file mode 100644
index 0000000..c255f3b
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetPostListResponse.java
@@ -0,0 +1,69 @@
+
+package simpleblog.heroku.service;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getPostListResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://service.heroku.simpleblog/}post" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getPostListResponse", propOrder = {
+ "_return"
+})
+public class GetPostListResponse {
+
+ @XmlElement(name = "return")
+ protected Listset
method for the return property.
+ *
+ *
+ * getReturn().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="getPostResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://service.heroku.simpleblog/}post" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getPostResponse", propOrder = {
+ "_return"
+})
+public class GetPostResponse {
+
+ @XmlElement(name = "return")
+ protected Post _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link Post }
+ *
+ */
+ public Post getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link Post }
+ *
+ */
+ public void setReturn(Post value) {
+ this._return = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetUser.java b/simple-blog/src/java/simpleblog/heroku/service/GetUser.java
new file mode 100644
index 0000000..1121588
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetUser.java
@@ -0,0 +1,87 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getUser">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUser", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class GetUser {
+
+ protected String arg0;
+ protected String arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setArg0(String value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setArg1(String value) {
+ this.arg1 = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetUserById.java b/simple-blog/src/java/simpleblog/heroku/service/GetUserById.java
new file mode 100644
index 0000000..45e9a7a
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetUserById.java
@@ -0,0 +1,52 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getUserById">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUserById", propOrder = {
+ "arg0"
+})
+public class GetUserById {
+
+ protected int arg0;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetUserByIdResponse.java b/simple-blog/src/java/simpleblog/heroku/service/GetUserByIdResponse.java
new file mode 100644
index 0000000..551f46c
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetUserByIdResponse.java
@@ -0,0 +1,62 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getUserByIdResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://service.heroku.simpleblog/}user" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUserByIdResponse", propOrder = {
+ "_return"
+})
+public class GetUserByIdResponse {
+
+ @XmlElement(name = "return")
+ protected User _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link User }
+ *
+ */
+ public User getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link User }
+ *
+ */
+ public void setReturn(User value) {
+ this._return = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetUserList.java b/simple-blog/src/java/simpleblog/heroku/service/GetUserList.java
new file mode 100644
index 0000000..ad02941
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetUserList.java
@@ -0,0 +1,32 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getUserList">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUserList")
+public class GetUserList {
+
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/GetUserListResponse.java b/simple-blog/src/java/simpleblog/heroku/service/GetUserListResponse.java
new file mode 100644
index 0000000..6fb485b
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/GetUserListResponse.java
@@ -0,0 +1,69 @@
+
+package simpleblog.heroku.service;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="getUserListResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://service.heroku.simpleblog/}user" maxOccurs="unbounded" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUserListResponse", propOrder = {
+ "_return"
+})
+public class GetUserListResponse {
+
+ @XmlElement(name = "return")
+ protected Listset
method for the return property.
+ *
+ *
+ * getReturn().add(newItem);
+ *
+ *
+ *
+ *
+ * <complexType name="getUserResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://service.heroku.simpleblog/}user" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "getUserResponse", propOrder = {
+ "_return"
+})
+public class GetUserResponse {
+
+ @XmlElement(name = "return")
+ protected User _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ * @return
+ * possible object is
+ * {@link User }
+ *
+ */
+ public User getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ * @param value
+ * allowed object is
+ * {@link User }
+ *
+ */
+ public void setReturn(User value) {
+ this._return = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/IOException.java b/simple-blog/src/java/simpleblog/heroku/service/IOException.java
new file mode 100644
index 0000000..8033935
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/IOException.java
@@ -0,0 +1,32 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="IOException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "IOException")
+public class IOException {
+
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/IOException_Exception.java b/simple-blog/src/java/simpleblog/heroku/service/IOException_Exception.java
new file mode 100644
index 0000000..4d26668
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/IOException_Exception.java
@@ -0,0 +1,54 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2.9-b130926.1035
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "IOException", targetNamespace = "http://service.heroku.simpleblog/")
+public class IOException_Exception
+ extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private IOException faultInfo;
+
+ /**
+ *
+ * @param faultInfo
+ * @param message
+ */
+ public IOException_Exception(String message, IOException faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param faultInfo
+ * @param cause
+ * @param message
+ */
+ public IOException_Exception(String message, IOException faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: simpleblog.heroku.service.IOException
+ */
+ public IOException getFaultInfo() {
+ return faultInfo;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/ObjectFactory.java b/simple-blog/src/java/simpleblog/heroku/service/ObjectFactory.java
new file mode 100644
index 0000000..399bd6d
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/ObjectFactory.java
@@ -0,0 +1,293 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the simpleblog.heroku.service package.
+ *
+ * <complexType name="post">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="content" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="date" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="status" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="userId" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "post", propOrder = {
+ "content",
+ "date",
+ "id",
+ "status",
+ "title",
+ "userId"
+})
+public class Post {
+
+ protected String content;
+ protected String date;
+ protected int id;
+ protected int status;
+ protected String title;
+ protected int userId;
+
+ /**
+ * Gets the value of the content property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * Sets the value of the content property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setContent(String value) {
+ this.content = value;
+ }
+
+ /**
+ * Gets the value of the date property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDate() {
+ return date;
+ }
+
+ /**
+ * Sets the value of the date property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDate(String value) {
+ this.date = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ */
+ public void setId(int value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the status property.
+ *
+ */
+ public int getStatus() {
+ return status;
+ }
+
+ /**
+ * Sets the value of the status property.
+ *
+ */
+ public void setStatus(int value) {
+ this.status = value;
+ }
+
+ /**
+ * Gets the value of the title property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * Sets the value of the title property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setTitle(String value) {
+ this.title = value;
+ }
+
+ /**
+ * Gets the value of the userId property.
+ *
+ */
+ public int getUserId() {
+ return userId;
+ }
+
+ /**
+ * Sets the value of the userId property.
+ *
+ */
+ public void setUserId(int value) {
+ this.userId = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/SimpleblogService.java b/simple-blog/src/java/simpleblog/heroku/service/SimpleblogService.java
new file mode 100644
index 0000000..2219770
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/SimpleblogService.java
@@ -0,0 +1,129 @@
+
+package simpleblog.heroku.service;
+
+import java.util.List;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2.9-b130926.1035
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "SimpleblogService", targetNamespace = "http://service.heroku.simpleblog/")
+@XmlSeeAlso({
+ ObjectFactory.class
+})
+public interface SimpleblogService {
+
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns simpleblog.heroku.service.User
+ * @throws IOException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "getUser", targetNamespace = "http://service.heroku.simpleblog/", className = "simpleblog.heroku.service.GetUser")
+ @ResponseWrapper(localName = "getUserResponse", targetNamespace = "http://service.heroku.simpleblog/", className = "simpleblog.heroku.service.GetUserResponse")
+ public User getUser(
+ @WebParam(name = "arg0", targetNamespace = "")
+ String arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ String arg1)
+ throws IOException_Exception
+ ;
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.util.Listfeatures
parameter will have their default values.
+ * @return
+ * returns SimpleblogService
+ */
+ @WebEndpoint(name = "SimpleblogServiceImplPort")
+ public SimpleblogService getSimpleblogServiceImplPort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://service.heroku.simpleblog/", "SimpleblogServiceImplPort"), SimpleblogService.class, features);
+ }
+
+ private static URL __getWsdlLocation() {
+ if (SIMPLEBLOGSERVICEIMPLSERVICE_EXCEPTION!= null) {
+ throw SIMPLEBLOGSERVICEIMPLSERVICE_EXCEPTION;
+ }
+ return SIMPLEBLOGSERVICEIMPLSERVICE_WSDL_LOCATION;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/User.java b/simple-blog/src/java/simpleblog/heroku/service/User.java
new file mode 100644
index 0000000..4f9fc99
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/User.java
@@ -0,0 +1,187 @@
+
+package simpleblog.heroku.service;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ *
+ * <complexType name="user">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="role" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="username" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ *
+ *
+ *
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "user", propOrder = {
+ "email",
+ "id",
+ "name",
+ "password",
+ "role",
+ "username"
+})
+public class User {
+
+ protected String email;
+ protected int id;
+ protected String name;
+ protected String password;
+ protected String role;
+ protected String username;
+
+ /**
+ * Gets the value of the email property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * Sets the value of the email property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setEmail(String value) {
+ this.email = value;
+ }
+
+ /**
+ * Gets the value of the id property.
+ *
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * Sets the value of the id property.
+ *
+ */
+ public void setId(int value) {
+ this.id = value;
+ }
+
+ /**
+ * Gets the value of the name property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * Sets the value of the name property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setName(String value) {
+ this.name = value;
+ }
+
+ /**
+ * Gets the value of the password property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * Sets the value of the password property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setPassword(String value) {
+ this.password = value;
+ }
+
+ /**
+ * Gets the value of the role property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getRole() {
+ return role;
+ }
+
+ /**
+ * Sets the value of the role property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setRole(String value) {
+ this.role = value;
+ }
+
+ /**
+ * Gets the value of the username property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getUsername() {
+ return username;
+ }
+
+ /**
+ * Sets the value of the username property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setUsername(String value) {
+ this.username = value;
+ }
+
+}
diff --git a/simple-blog/src/java/simpleblog/heroku/service/package-info.java b/simple-blog/src/java/simpleblog/heroku/service/package-info.java
new file mode 100644
index 0000000..c6091bc
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/heroku/service/package-info.java
@@ -0,0 +1,2 @@
+@javax.xml.bind.annotation.XmlSchema(namespace = "http://service.heroku.simpleblog/")
+package simpleblog.heroku.service;
diff --git a/simple-blog/src/java/simpleblog/model/Comment.java b/simple-blog/src/java/simpleblog/model/Comment.java
new file mode 100644
index 0000000..f906a3e
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/model/Comment.java
@@ -0,0 +1,68 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package simpleblog.model;
+
+/**
+ *
+ * @author Luqman
+ */
+public class Comment {
+ private int id;
+ private int postId;
+ private String name;
+ private String email;
+ private String date;
+ private String content;
+
+ public int getId() {
+ return id;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getPostId() {
+ return postId;
+ }
+
+ public void setPostId(int postId) {
+ this.postId = postId;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ public String getDate() {
+ return date;
+ }
+
+ public void setDate(String date) {
+ this.date = date;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+}
diff --git a/simple-blog/src/java/simpleblog/model/CookieHelper.java b/simple-blog/src/java/simpleblog/model/CookieHelper.java
new file mode 100644
index 0000000..ef68c5e
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/model/CookieHelper.java
@@ -0,0 +1,70 @@
+package simpleblog.model;
+
+
+import javax.faces.context.FacesContext;
+import javax.servlet.http.Cookie;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ *
+ * @author Ichwan Haryo Sembodo
+ */
+public class CookieHelper {
+
+ public void setCookie(String name, String value,int expiry) {
+
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+
+ HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
+ Cookie cookie = null;
+
+ Cookie[] userCookies = request.getCookies();
+ if (userCookies != null && userCookies.length > 0 ) {
+ for (int i = 0; i < userCookies.length; i++) {
+ if (userCookies[i].getName().equals(name)) {
+ cookie = userCookies[i];
+ break;
+ }
+ }
+ }
+
+ if (cookie != null) {
+ cookie.setValue(value);
+ } else {
+ cookie = new Cookie(name, value);
+ //cookie.setPath(request.getContextPath());
+ }
+
+ cookie.setMaxAge(expiry);
+
+ HttpServletResponse response = (HttpServletResponse) facesContext.getExternalContext().getResponse();
+ response.setContentType("text/html");
+ response.addCookie(cookie);
+ }
+
+ public Cookie getCookie(String name) {
+
+ FacesContext facesContext = FacesContext.getCurrentInstance();
+
+ HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
+ Cookie cookie = null;
+
+ Cookie[] userCookies = request.getCookies();
+ if (userCookies != null && userCookies.length > 0 ) {
+ for (int i = 0; i < userCookies.length; i++) {
+ if (userCookies[i].getName().equals(name)) {
+ cookie = userCookies[i];
+ return cookie;
+ }
+ }
+ }
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/simple-blog/src/java/simpleblog/model/Post.java b/simple-blog/src/java/simpleblog/model/Post.java
new file mode 100644
index 0000000..e9aefa8
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/model/Post.java
@@ -0,0 +1,104 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package simpleblog.model;
+
+/**
+ *
+ * @author Luqman
+ */
+public class Post {
+ private int id;
+ private String title;
+ private String content;
+ private String date;
+ private int userId;
+ private int status;
+
+ /**
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the title
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * @param title the title to set
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ /**
+ * @return the content
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * @param content the content to set
+ */
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ /**
+ * @return the date
+ */
+ public String getDate() {
+ return date;
+ }
+
+ /**
+ * @param date the date to set
+ */
+ public void setDate(String date) {
+ this.date = date;
+ }
+
+ /**
+ * @return the userId
+ */
+ public int getUserId() {
+ return userId;
+ }
+
+ /**
+ * @param userId the userId to set
+ */
+ public void setUserId(int userId) {
+ this.userId = userId;
+ }
+
+ /**
+ * @return the status
+ */
+ public int getStatus() {
+ return status;
+ }
+
+ /**
+ * @param status the status to set
+ */
+ public void setStatus(int status) {
+ this.status = status;
+ }
+}
diff --git a/simple-blog/src/java/simpleblog/model/User.java b/simple-blog/src/java/simpleblog/model/User.java
new file mode 100644
index 0000000..0bd78c4
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/model/User.java
@@ -0,0 +1,110 @@
+package simpleblog.model;
+
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+/**
+ *
+ * @author Ichwan Haryo Sembodo
+ */
+public class User {
+ private int id;
+ private String email;
+ private String username;
+ private String name;
+ private String password;
+ private String role;
+
+ public User(){
+ role = "guest";
+ }
+
+ /**
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the email
+ */
+ public String getEmail() {
+ return email;
+ }
+
+ /**
+ * @param email the email to set
+ */
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+ /**
+ * @return the username
+ */
+ public String getUsername() {
+ return username;
+ }
+
+ /**
+ * @param username the username to set
+ */
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ /**
+ * @return the name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param name the name to set
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * @return the password
+ */
+ public String getPassword() {
+ return password;
+ }
+
+ /**
+ * @param password the password to set
+ */
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ /**
+ * @return the role
+ */
+ public String getRole() {
+ return role;
+ }
+
+ /**
+ * @param role the role to set
+ */
+ public void setRole(String role) {
+ this.role = role;
+ }
+
+
+}
diff --git a/simple-blog/src/java/simpleblog/model/ViewPost.java b/simple-blog/src/java/simpleblog/model/ViewPost.java
new file mode 100644
index 0000000..cf21f3b
--- /dev/null
+++ b/simple-blog/src/java/simpleblog/model/ViewPost.java
@@ -0,0 +1,75 @@
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
+package simpleblog.model;
+
+/**
+ *
+ * @author Luqman
+ */
+public class ViewPost {
+ private int id;
+ private String title;
+ private String content;
+ private String date;
+
+ /**
+ * @return the id
+ */
+ public int getId() {
+ return id;
+ }
+
+ /**
+ * @param id the id to set
+ */
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ /**
+ * @return the title
+ */
+ public String getTitle() {
+ return title;
+ }
+
+ /**
+ * @param title the title to set
+ */
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ /**
+ * @return the content
+ */
+ public String getContent() {
+ return content;
+ }
+
+ /**
+ * @param content the content to set
+ */
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ /**
+ * @return the date
+ */
+ public String getDate() {
+ return date;
+ }
+
+ /**
+ * @param date the date to set
+ */
+ public void setDate(String date) {
+ this.date = date;
+ }
+
+}
diff --git a/simple-blog/update.bat b/simple-blog/update.bat
new file mode 100644
index 0000000..7219b81
--- /dev/null
+++ b/simple-blog/update.bat
@@ -0,0 +1 @@
+wsimport -keep -d nbproject -s src/java http://if3110-iii-25-simple-blog.herokuapp.com/SimpleblogService?wsdl
\ No newline at end of file
diff --git a/simple-blog/web/DeleteTable.xhtml b/simple-blog/web/DeleteTable.xhtml
new file mode 100644
index 0000000..c6ac701
--- /dev/null
+++ b/simple-blog/web/DeleteTable.xhtml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+ #{viewPostController.viewPost.title}
+
+
+
+
+ Komentar
+
+
+
+
+ #{comment.name}
+