Class DemandCategoryRestService


  • @Path("/rest/notificationstore/v3/category")
    public class DemandCategoryRestService
    extends java.lang.Object
    CategoryRest
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createDemandCategory​(java.lang.String code, java.lang.String label, java.lang.String isDefault)
      Create DemandCategory
      javax.ws.rs.core.Response deleteDemandCategory​(java.lang.Integer id)
      Delete DemandCategory
      javax.ws.rs.core.Response getDemandCategory​(java.lang.Integer id)
      Get DemandCategory
      javax.ws.rs.core.Response getDemandCategoryList()
      Get DemandCategory List
      javax.ws.rs.core.Response modifyDemandCategory​(java.lang.Integer id, java.lang.String code, java.lang.String label, java.lang.String isDefault)
      Modify DemandCategory
      • Methods inherited from class java.lang.Object

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

      • DemandCategoryRestService

        public DemandCategoryRestService()
    • Method Detail

      • getDemandCategoryList

        @GET
        @Path("/list")
        @Produces("application/json")
        public javax.ws.rs.core.Response getDemandCategoryList()
        Get DemandCategory List
        Parameters:
        nVersion - the API version
        Returns:
        the DemandCategory List
      • createDemandCategory

        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response createDemandCategory​(@FormParam("code")
                                                              java.lang.String code,
                                                              @FormParam("label")
                                                              java.lang.String label,
                                                              @FormParam("isDefault")
                                                              java.lang.String isDefault)
        Create DemandCategory
        Parameters:
        nVersion - the API version
        code - the code
        label - the label
        Returns:
        the DemandCategory if created
      • modifyDemandCategory

        @PUT
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifyDemandCategory​(@PathParam("id")
                                                              java.lang.Integer id,
                                                              @FormParam("code")
                                                              java.lang.String code,
                                                              @FormParam("label")
                                                              java.lang.String label,
                                                              @FormParam("isDefault")
                                                              java.lang.String isDefault)
        Modify DemandCategory
        Parameters:
        nVersion - the API version
        id - the id
        code - the code
        label - the label
        Returns:
        the DemandCategory if modified
      • deleteDemandCategory

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

        @GET
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getDemandCategory​(@PathParam("id")
                                                           java.lang.Integer id)
        Get DemandCategory
        Parameters:
        id - the id
        Returns:
        the DemandCategory