Class AdminRestService

Object
AdminRestService

@DeclareRoles({"deputy","god","player"}) @RolesAllowed("deputy") @Path("/administration/administrators") public class AdminRestService extends Object
Currently the only thing it is used for is for a player to reset the owner of his character.
Author:
maartenl
  • Constructor Details

    • AdminRestService

      public AdminRestService()
  • Method Details

    • getAdministrators

      @RolesAllowed("player") public List<Admin> getAdministrators()
      Returns a list of currently valid administrators.
      Returns:
      list of administrators
    • getAdministrator

      @RolesAllowed("player") public Optional<Admin> getAdministrator(String name)
    • status

      @GET @Produces("application/json") public String status()
      Returns single information of the currently logged in deputy. The URL: /karchangame/resources/administration/administrators. Can produce application/json.
      Returns:
      a deputy.
    • getEntityManager

      protected EntityManager getEntityManager()