Class DemandTypeRestService


  • @Path("/rest/notificationstore/v3/demandType")
    public class DemandTypeRestService
    extends java.lang.Object
    Service Rest DemandTypeRestService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createDemandType​(java.lang.String strIdDemandType, java.lang.String strLabel, java.lang.String strUrl, java.lang.String strAppCode, java.lang.String strCategory)
      Create DemandType
      javax.ws.rs.core.Response deleteDemandType​(int nId)
      Delete DemandType
      javax.ws.rs.core.Response getDemandType​(java.lang.Integer nId)
      Get DemandType
      javax.ws.rs.core.Response getDemandTypeList​(java.lang.String strDirectMode)
      Get DemandType List
      javax.ws.rs.core.Response modifyDemandType​(java.lang.Integer nId, java.lang.String strIdDemandType, java.lang.String strLabel, java.lang.String strUrl, java.lang.String strAppCode, java.lang.String strCategory)
      Modify DemandType
      • Methods inherited from class java.lang.Object

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

      • DemandTypeRestService

        public DemandTypeRestService()
    • Method Detail

      • getDemandTypeList

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getDemandTypeList​(@QueryParam("direct")
                                                           java.lang.String strDirectMode)
        Get DemandType List
        Parameters:
        nVersion - the API version
        Returns:
        the DemandType List
      • createDemandType

        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response createDemandType​(@FormParam("id_demand_type")
                                                          java.lang.String strIdDemandType,
                                                          @FormParam("label")
                                                          java.lang.String strLabel,
                                                          @FormParam("url")
                                                          java.lang.String strUrl,
                                                          @FormParam("app_code")
                                                          java.lang.String strAppCode,
                                                          @FormParam("category")
                                                          java.lang.String strCategory)
        Create DemandType
        Parameters:
        nVersion - the API version
        strIdDemandType - the id_demand_type
        strLabel - the label
        strUrl - the url
        strAppCode - the app_code
        strCategory - the category
        Returns:
        the DemandType if created
      • modifyDemandType

        @PUT
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifyDemandType​(@PathParam("id")
                                                          java.lang.Integer nId,
                                                          @FormParam("id_demand_type")
                                                          java.lang.String strIdDemandType,
                                                          @FormParam("label")
                                                          java.lang.String strLabel,
                                                          @FormParam("url")
                                                          java.lang.String strUrl,
                                                          @FormParam("app_code")
                                                          java.lang.String strAppCode,
                                                          @FormParam("category")
                                                          java.lang.String strCategory)
        Modify DemandType
        Parameters:
        nVersion - the API version
        id - the id
        strIdDemandType - the id_demand_type
        strLabel - the label
        strUrl - the url
        strAppCode - the app_code
        strCategory - the category
        Returns:
        the DemandType if modified
      • deleteDemandType

        @DELETE
        @Path("/{id}")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteDemandType​(@PathParam("id")
                                                          int nId)
        Delete DemandType
        Parameters:
        nVersion - the API version
        nId - the nId
        Returns:
        the DemandType List if deleted
      • getDemandType

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