Class SubscriptionRest


  • @Path("/rest/notificationstore-broadcast/api/v{version}/subscriptions")
    public class SubscriptionRest
    extends java.lang.Object
    SubscriptionRest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createSubscription​(java.lang.String demand_type_id, java.lang.String mail, java.lang.String frequency, java.lang.Integer nVersion)
      Create Subscription
      javax.ws.rs.core.Response deleteSubscription​(java.lang.Integer nVersion, java.lang.Integer id)
      Delete Subscription
      javax.ws.rs.core.Response getSubscription​(java.lang.Integer nVersion, java.lang.Integer id)
      Get Subscription
      javax.ws.rs.core.Response getSubscriptionList​(java.lang.Integer nVersion)
      Get Subscription List
      javax.ws.rs.core.Response modifySubscription​(java.lang.Integer id, java.lang.String demand_type_id, java.lang.String mail, java.lang.String frequency, java.lang.Integer nVersion)
      Modify Subscription
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubscriptionRest

        public SubscriptionRest()
    • Method Detail

      • getSubscriptionList

        @GET
        @Path("")
        @Produces("application/json")
        public javax.ws.rs.core.Response getSubscriptionList​(@PathParam("version")
                                                             java.lang.Integer nVersion)
        Get Subscription List
        Parameters:
        nVersion - the API version
        Returns:
        the Subscription List
      • createSubscription

        @POST
        @Path("")
        @Produces("application/json")
        public javax.ws.rs.core.Response createSubscription​(@FormParam("demand_type_id")
                                                            java.lang.String demand_type_id,
                                                            @FormParam("mail")
                                                            java.lang.String mail,
                                                            @FormParam("frequency")
                                                            java.lang.String frequency,
                                                            @PathParam("version")
                                                            java.lang.Integer nVersion)
        Create Subscription
        Parameters:
        nVersion - the API version
        demand_type_id - the demand_type_id
        mail - the mail
        frequency - the frequency
        Returns:
        the Subscription if created
      • modifySubscription

        @PUT
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifySubscription​(@PathParam("id")
                                                            java.lang.Integer id,
                                                            @FormParam("demand_type_id")
                                                            java.lang.String demand_type_id,
                                                            @FormParam("mail")
                                                            java.lang.String mail,
                                                            @FormParam("frequency")
                                                            java.lang.String frequency,
                                                            @PathParam("version")
                                                            java.lang.Integer nVersion)
        Modify Subscription
        Parameters:
        nVersion - the API version
        id - the id
        demand_type_id - the demand_type_id
        mail - the mail
        frequency - the frequency
        Returns:
        the Subscription if modified
      • deleteSubscription

        @DELETE
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteSubscription​(@PathParam("version")
                                                            java.lang.Integer nVersion,
                                                            @PathParam("id")
                                                            java.lang.Integer id)
        Delete Subscription
        Parameters:
        nVersion - the API version
        id - the id
        Returns:
        the Subscription List if deleted
      • getSubscription

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getSubscription​(@PathParam("version")
                                                         java.lang.Integer nVersion,
                                                         @PathParam("id")
                                                         java.lang.Integer id)
        Get Subscription
        Parameters:
        nVersion - the API version
        id - the id
        Returns:
        the Subscription