Class Posts
- java.lang.Object
-
- org.gcube.portal.social.networking.ws.methods.v2.Posts
-
@Path("2/posts") public class Posts extends ObjectREST interface for the social networking library (posts).
-
-
Constructor Summary
Constructors Constructor Description Posts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetAllLikedPostIdsByUser()javax.ws.rs.core.ResponsegetAllLikedPostsByUser(int limit)javax.ws.rs.core.ResponsegetAllPostsByApp()javax.ws.rs.core.ResponsegetAllPostsByUser()javax.ws.rs.core.ResponsegetAllPostsByVRE()javax.ws.rs.core.ResponsegetPostsByHashTags(String hashtag)javax.ws.rs.core.ResponsegetQuantityPostsByUser(int quantity)javax.ws.rs.core.ResponsegetRecentPostsByUserAndDate(long timeInMillis)javax.ws.rs.core.ResponsewritePostApp(PostInputBean post)javax.ws.rs.core.ResponsewritePostUser(PostInputBean post)
-
-
-
Method Detail
-
getRecentPostsByUserAndDate
@GET @Path("get-posts-user-since/") @Produces("application/json") public javax.ws.rs.core.Response getRecentPostsByUserAndDate(@QueryParam("time") @Min(value=0L,message="time cannot be negative") long timeInMillis) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
getAllPostsByUser
@GET @Path("get-posts-user/") @Produces("application/json") public javax.ws.rs.core.Response getAllPostsByUser()
-
getQuantityPostsByUser
@GET @Path("get-posts-user-quantity/") @Produces("application/json") public javax.ws.rs.core.Response getQuantityPostsByUser(@DefaultValue("10") @QueryParam("quantity") @Min(value=0L,message="quantity cannot be negative") int quantity) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
writePostUser
@POST @Path("write-post-user") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response writePostUser(@NotNull(message="Post to write is missing") PostInputBean post) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
getAllPostsByApp
@GET @Path("get-posts-app/") @Produces("application/json") public javax.ws.rs.core.Response getAllPostsByApp()
-
writePostApp
@POST @Path("write-post-app") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response writePostApp(@NotNull(message="Post to write is null") PostInputBean post)
-
getAllPostsByVRE
@GET @Path("get-posts-vre/") @Produces("application/json") public javax.ws.rs.core.Response getAllPostsByVRE()
-
getPostsByHashTags
@GET @Path("get-posts-by-hashtag/") @Produces("application/json") public javax.ws.rs.core.Response getPostsByHashTags(@QueryParam("hashtag") @NotNull(message="hashtag cannot be missing") String hashtag) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
getAllLikedPostIdsByUser
@GET @Path("get-id-liked-posts/") @Produces("application/json") public javax.ws.rs.core.Response getAllLikedPostIdsByUser()
-
getAllLikedPostsByUser
@GET @Path("get-liked-posts/") @Produces("application/json") public javax.ws.rs.core.Response getAllLikedPostsByUser(@DefaultValue("10") @QueryParam("limit") @Min(message="limit cannot be negative",value=0L) int limit) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
-