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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAdministrator
(String name) Returns a list of currently valid administrators.protected EntityManager
status()
Returns single information of the currently logged in deputy.
-
Constructor Details
-
AdminRestService
public AdminRestService()
-
-
Method Details
-
getAdministrators
-
getAdministrator
-
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()
-