Class Entities


  • @Path("entities")
    public class Entities
    extends Collection
    • Constructor Detail

      • Entities

        public Entities()
    • 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)