Class ParameterServices

    • Constructor Detail

      • ParameterServices

        public ParameterServices()
    • Method Detail

      • newParameter

        @GET
        @Consumes("application/json")
        @Produces("application/json")
        public Parameter newParameter()
      • save

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public Parameter save​(Parameter newParameter)
      • assertRights

        protected void assertRights​(Parameter newParameter)
      • hasGlobalParamRight

        protected boolean hasGlobalParamRight()
      • isProtected

        protected boolean isProtected​(Parameter oldParameter)
      • copy

        @POST
        @Path("/{id}/copy")
        @Consumes("application/json")
        @Produces("application/json")
        public Parameter copy​(@PathParam("id")
                              String id)
      • delete

        @DELETE
        @Path("/{id}")
        public void delete​(@PathParam("id")
                           String id)
      • isPassword

        public static boolean isPassword​(Parameter parameter)
      • isPassword

        public static boolean isPassword​(String key)
      • get

        @GET
        @Path("/{id}")
        public Parameter get​(@PathParam("id")
                             String id)
      • getAll

        @GET
        @Path("/all")
        @Produces("application/json")
        public List<Parameter> getAll​(@QueryParam("skip")
                                      Integer skip,
                                      @QueryParam("limit")
                                      Integer limit)