summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java11
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java2
2 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java
new file mode 100644
index 0000000..47c644c
--- /dev/null
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/AllPostsResource.java
@@ -0,0 +1,11 @@
+package eu.mulk.mulkcms2.benki.posts;
+
+import javax.ws.rs.Path;
+
+@Path("/posts")
+public class AllPostsResource extends PostResource {
+
+ public AllPostsResource() {
+ super(PostFilter.ALL, "All Posts");
+ }
+}
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
index a691490..e7b6e9a 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
@@ -260,7 +260,7 @@ public abstract class PostResource {
}
}
- protected Session getSession() {
+ protected final Session getSession() {
return entityManager.unwrap(Session.class);
}