Class Notifications
- java.lang.Object
-
- org.gcube.portal.social.networking.ws.methods.v2.Notifications
-
@Path("2/notifications") public class Notifications extends ObjectREST interface for the social networking library (notifications).
-
-
Constructor Summary
Constructors Constructor Description Notifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecatalogue(org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent event)Send a Catalogue notification to a given userjavax.ws.rs.core.ResponsegetRangeNotifications(int from, int quantity)javax.ws.rs.core.ResponseisUserDisabled(String username)javax.ws.rs.core.ResponsenotifyJobStatus(org.gcube.social_networking.socialnetworking.model.beans.JobNotificationBean job)Send a JOB notification to a given recipientjavax.ws.rs.core.ResponsesetUserNotifications(UserSetNotificationBean setting)Set user notification enabled or disabledjavax.ws.rs.core.Responseworkspace(org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEvent event)Send a Workspace notification to a given user
-
-
-
Method Detail
-
getRangeNotifications
@GET @Path("get-range-notifications/") @Produces("application/json") public javax.ws.rs.core.Response getRangeNotifications(@DefaultValue("1") @QueryParam("from") @Min(value=1L,message="from must be greater or equal to 1") int from, @DefaultValue("10") @QueryParam("quantity") @Min(value=0L,message="quantity must be greater or equal to 0") int quantity) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
isUserDisabled
@GET @Path("is-user-disabled/") @Produces("application/json") public javax.ws.rs.core.Response isUserDisabled(@QueryParam("username") @NotNull(message="username cannot be null") String username) throws javax.validation.ValidationException- Throws:
javax.validation.ValidationException
-
setUserNotifications
@POST @Path("set-user-notifications/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response setUserNotifications(@NotNull(message="input is missing") UserSetNotificationBean setting) throws javax.validation.ValidationExceptionSet user notification enabled or disabled- Parameters:
disable- true if you want to disable the notifications for this user, false if you want to enable them- Returns:
- the result of the operation
- Throws:
javax.validation.ValidationException
-
notifyJobStatus
@POST @Path("notify-job-status/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response notifyJobStatus(@NotNull(message="input is missing") org.gcube.social_networking.socialnetworking.model.beans.JobNotificationBean job) throws javax.validation.ValidationExceptionSend a JOB notification to a given recipient- Parameters:
job- The job bean- Returns:
- Throws:
javax.validation.ValidationException
-
catalogue
@POST @Path("catalogue/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response catalogue(@NotNull(message="input is missing") org.gcube.social_networking.socialnetworking.model.beans.catalogue.CatalogueEvent event) throws javax.validation.ValidationException, org.gcube.vomanagement.usermanagement.exception.UserManagementSystemException, org.gcube.vomanagement.usermanagement.exception.UserRetrievalFaultSend a Catalogue notification to a given user- Parameters:
event-- Returns:
- Throws:
javax.validation.ValidationExceptionorg.gcube.vomanagement.usermanagement.exception.UserManagementSystemExceptionorg.gcube.vomanagement.usermanagement.exception.UserRetrievalFault
-
workspace
@POST @Path("workspace/") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response workspace(@NotNull(message="input is missing") org.gcube.social_networking.socialnetworking.model.beans.workspace.WorkspaceEvent event) throws javax.validation.ValidationExceptionSend a Workspace notification to a given user- Parameters:
event-- Returns:
- Throws:
javax.validation.ValidationException
-
-