Class VariablesResource

    • Constructor Detail

      • VariablesResource

        public VariablesResource()
    • Method Detail

      • getAllVariables

        @GET
        @Produces("application/json")
        public List<VariableEntity> getAllVariables()
      • getCurrentVariables

        @GET
        @Path("/currents")
        @Produces("application/json")
        public List<VariableEntity> getCurrentVariables()
      • getVariable

        @GET
        @Path("/{variableId}")
        @Produces("application/json")
        public VariableEntity getVariable​(@PathParam("variableId")
                                          String variableId)
      • createVariable

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public VariableEntity createVariable​(VariableEntity entity)
      • updateVariable

        @POST
        @Path("/{variableId}")
        @Consumes("application/json")
        @Produces("application/json")
        public VariableEntity updateVariable​(@PathParam("variableId")
                                             String variableId,
                                             VariableEntity entity)
      • deleteVariable

        @DELETE
        @Path("/{variableId}")
        @Produces("application/json")
        public void deleteVariable​(@PathParam("variableId")
                                   String variableId)
      • deleteVariables

        @DELETE
        @Produces("application/json")
        public void deleteVariables()
      • deleteVariableValues

        @DELETE
        @Path("/{variableId}/values/{valueId}")
        @Produces("application/json")
        public void deleteVariableValues​(@PathParam("variableId")
                                         String variableId,
                                         @PathParam("valueId")
                                         String valueId)
      • 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.