Class Entities
- java.lang.Object
-
- org.gcube.social_networking.rest.collections.Collection
-
- org.gcube.social_networking.rest.collections.Entities
-
@Path("entities") public class Entities extends Collection
-
-
Constructor Summary
Constructors Constructor Description Entities()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsegetAllNotificationByUser(@NotNull String id, int limit, boolean unread, boolean check, boolean message)jakarta.ws.rs.core.ResponsegetAllPostsByApp(@NotNull String id)jakarta.ws.rs.core.ResponsegetAllPostsByUser(@NotNull String id, boolean liked, int limit)jakarta.ws.rs.core.ResponsegetRecentComments(@NotNull String id, long time)jakarta.ws.rs.core.ResponsegetRecentPosts(@NotNull String id, @jakarta.validation.constraints.NotNull boolean recent_comment, @jakarta.validation.constraints.NotNull boolean recent_like, @jakarta.validation.constraints.NotNull boolean recent_limit, long time, int limit)jakarta.ws.rs.core.ResponsegetUserNotificationChannels(@NotNull String id, @NotNull org.gcube.social_networking.socialnetworking.model.shared.NotificationType notificationType)jakarta.ws.rs.core.ResponsegetUserNotificationPreferences(@NotNull String id)jakarta.ws.rs.core.ResponsesetAllNotificationReadByUser(@NotNull String id)jakarta.ws.rs.core.ResponsesetUserNotificationPreferences(@NotNull String id, @NotNull List<org.gcube.social_networking.socialnetworking.model.shared.NotificationPreference> notificationPreferences)-
Methods inherited from class org.gcube.social_networking.rest.collections.Collection
BatchCreateChildOfWithParameter, BatchDeleteChildOfWithParameter, BatchUpdateChildOf, check, checkChildOf, create, createChildOf, delete, deleteChildOf, deleteChildOfWithParameter, deleteWithParameter, read, readAll, readChildOf, readChildOfWithParameter, readWithParameter, update, updateChildOf, updateChildOfWithParameter, updateWithParameter
-
-
-
-
Method Detail
-
getAllPostsByUser
@GET @Path("users/{id}/allposts") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getAllPostsByUser(@NotNull @PathParam("id") @NotNull String id, @QueryParam("liked") boolean liked, @QueryParam("limit") int limit)
-
getAllPostsByApp
@GET @Path("apps/{id}/posts") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getAllPostsByApp(@NotNull @PathParam("id") @NotNull String id)
-
getRecentPosts
@GET @Path("users/{id}/posts/") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getRecentPosts(@NotNull @PathParam("id") @NotNull String id, @NotNull @QueryParam("recent_comment") @jakarta.validation.constraints.NotNull boolean recent_comment, @NotNull @QueryParam("recent_like") @jakarta.validation.constraints.NotNull boolean recent_like, @NotNull @QueryParam("recent_limit") @jakarta.validation.constraints.NotNull boolean recent_limit, @QueryParam("time") long time, @QueryParam("limit") int limit)
-
getRecentComments
@GET @Path("users/{id}/comments/") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getRecentComments(@NotNull @PathParam("id") @NotNull String id, @QueryParam("time") long time)
-
getAllNotificationByUser
@GET @Path("users/{id}/notifications") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getAllNotificationByUser(@NotNull @PathParam("id") @NotNull String id, @QueryParam("limit") @DefaultValue("10") int limit, @QueryParam("unread") boolean unread, @QueryParam("check") boolean check, @QueryParam("message") boolean message)
-
setAllNotificationReadByUser
@PUT @Path("users/{id}/notifications") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response setAllNotificationReadByUser(@NotNull @PathParam("id") @NotNull String id)
-
getUserNotificationChannels
@GET @Path("users/{id}/notifications/channels") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getUserNotificationChannels(@NotNull @PathParam("id") @NotNull String id, @NotNull @NotNull org.gcube.social_networking.socialnetworking.model.shared.NotificationType notificationType)
-
getUserNotificationPreferences
@GET @Path("users/{id}/notifications/preferences") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response getUserNotificationPreferences(@NotNull @PathParam("id") @NotNull String id)
-
setUserNotificationPreferences
@PUT @Path("users/{id}/notifications/preferences") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) @Consumes({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response setUserNotificationPreferences(@NotNull @PathParam("id") @NotNull String id, @NotNull @NotNull List<org.gcube.social_networking.socialnetworking.model.shared.NotificationPreference> notificationPreferences)
-
-