Class BanRestService
Object
BanRestService
@DeclareRoles("deputy")
@RolesAllowed("deputy")
@Path("/administration/ban")
public class BanRestService
extends Object
- Author:
- maartenl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateBannedIP(String json) voidcreateBannedName(String json) voidcreateSillyName(String json) voidcreateUnbannedName(String json) ResponsefindAllBannedIPS(UriInfo info) ResponsefindAllBannedNames(UriInfo info) ResponsefindAllSillyNames(UriInfo info) ResponsefindAllUnbannedNames(UriInfo info) voidremoveBannedIP(String address) voidremoveBannedName(String bannedName) voidremoveSillyName(String sillyName) voidremoveUnbannedName(String unbannedName)
-
Constructor Details
-
BanRestService
public BanRestService()
-
-
Method Details
-
findAllBannedIPS
@GET @Path("bannedips") @Produces("application/json") public Response findAllBannedIPS(@Context UriInfo info) -
findAllBannedNames
@GET @Path("bannednames") @Produces("application/json") public Response findAllBannedNames(@Context UriInfo info) -
findAllSillyNames
@GET @Path("sillynames") @Produces("application/json") public Response findAllSillyNames(@Context UriInfo info) -
findAllUnbannedNames
@GET @Path("unbannednames") @Produces("application/json") public Response findAllUnbannedNames(@Context UriInfo info) -
createBannedIP
-
createBannedName
-
createSillyName
-
createUnbannedName
@POST @Consumes("application/json") @Path("unbannednames") public void createUnbannedName(String json) -
removeBannedIP
@DELETE @Path("bannedips/{address}") public void removeBannedIP(@PathParam("address") String address) -
removeBannedName
@DELETE @Path("bannednames/{name}") public void removeBannedName(@PathParam("name") String bannedName) -
removeSillyName
-
removeUnbannedName
@DELETE @Path("unbannednames/{name}") public void removeUnbannedName(@PathParam("name") String unbannedName)
-