Class TicketResource

    • Constructor Detail

      • TicketResource

        public TicketResource()
    • Method Detail

      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.
      • getMyTickets

        @GET
        @Produces("application/json")
        public List<TicketEntity> getMyTickets​(@QueryParam("page")
                                               String page)
      • addTicket

        @POST
        @Path("{componentId}")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response addTicket​(@PathParam("componentId")
                                                   String componentId,
                                                   TicketEntity ticketEntity)