public class Posts extends Object
| Constructor and Description |
|---|
Posts() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAllLikedPostIdsByUser() |
javax.ws.rs.core.Response |
getAllLikedPostsByUser(int limit) |
javax.ws.rs.core.Response |
getAllPostsByApp() |
javax.ws.rs.core.Response |
getAllPostsByUser() |
javax.ws.rs.core.Response |
getAllPostsByVRE() |
javax.ws.rs.core.Response |
getPostsByHashTags(String hashtag) |
javax.ws.rs.core.Response |
getQuantityPostsByUser(int quantity) |
javax.ws.rs.core.Response |
getRecentPostsByUserAndDate(long timeInMillis) |
javax.ws.rs.core.Response |
writePostApp(PostInputBean post) |
javax.ws.rs.core.Response |
writePostUser(PostInputBean post) |
public javax.ws.rs.core.Response getRecentPostsByUserAndDate(@Min(value=0L,message="time cannot be negative")
long timeInMillis)
throws javax.validation.ValidationException
javax.validation.ValidationExceptionpublic javax.ws.rs.core.Response getAllPostsByUser()
public javax.ws.rs.core.Response getQuantityPostsByUser(@Min(value=0L,message="quantity cannot be negative")
int quantity)
throws javax.validation.ValidationException
javax.validation.ValidationExceptionpublic javax.ws.rs.core.Response writePostUser(@NotNull(message="Post to write is missing")
PostInputBean post)
throws javax.validation.ValidationException
javax.validation.ValidationExceptionpublic javax.ws.rs.core.Response getAllPostsByApp()
public javax.ws.rs.core.Response writePostApp(@NotNull(message="Post to write is null")
PostInputBean post)
public javax.ws.rs.core.Response getAllPostsByVRE()
public javax.ws.rs.core.Response getPostsByHashTags(@NotNull(message="hashtag cannot be missing")
String hashtag)
throws javax.validation.ValidationException
javax.validation.ValidationExceptionpublic javax.ws.rs.core.Response getAllLikedPostIdsByUser()
public javax.ws.rs.core.Response getAllLikedPostsByUser(@Min(message="limit cannot be negative",value=0L)
int limit)
throws javax.validation.ValidationException
javax.validation.ValidationExceptionCopyright © 2019. All rights reserved.