Class AdminServices

    • Constructor Detail

      • AdminServices

        public AdminServices()
    • Method Detail

      • save

        @POST
        @Consumes("application/json")
        @Path("/user")
        public void save​(User user)
      • remove

        @DELETE
        @Path("/user/{id}")
        public void remove​(@PathParam("id")
                           String username)
      • getUser

        @GET
        @Path("/user/{id}")
        @Produces("application/json")
        public User getUser​(@PathParam("id")
                            String username)
      • getUserList

        @GET
        @Path("/users")
        @Produces("application/json")
        public List<User> getUserList()
      • getMaintenanceMessage

        @GET
        @Path("/maintenance/message")
        public String getMaintenanceMessage()
      • setMaintenanceMessage

        @POST
        @Path("/maintenance/message")
        public void setMaintenanceMessage​(String message)
      • getMaintenanceMessageToggle

        @GET
        @Path("/maintenance/message/toggle")
        public boolean getMaintenanceMessageToggle()
      • setMaintenanceMessageToggle

        @POST
        @Path("/maintenance/message/toggle")
        public void setMaintenanceMessageToggle​(boolean enabled)
      • getCurrentUser

        protected User getCurrentUser()
      • getMyUser

        @GET
        @Path("/myaccount")
        @Produces("application/json")
        public User getMyUser()
      • getPreferences

        @GET
        @Path("/myaccount/preferences")
        public Preferences getPreferences()
      • putPreference

        @POST
        @Path("/myaccount/preferences/{id}")
        public void putPreference​(@PathParam("id")
                                  String preferenceName,
                                  Object value)
      • putPreference

        @POST
        @Path("/myaccount/preferences")
        public void putPreference​(Preferences preferences)
      • resetPassword

        @POST
        @Consumes("application/json")
        @Path("/user/{id}/resetpwd")
        public void resetPassword​(@PathParam("id")
                                  String username)