public interface AccessRuleApi
Modifier and Type | Method and Description |
---|---|
void |
create(Iterable<AccessRule> accessRules)
Create new access rules or append to existing access rules.
|
boolean |
delete(int id)
Delete an access rule from the access list.
|
boolean |
delete(Iterable<Integer> ids)
Batch delete the access rules given the specified ids.
|
boolean |
deleteAll()
Delete the entire access list.
|
Iterable<AccessRuleWithId> |
list()
List the AccessRules.
|
@Named(value="accessrule:create") @POST @Consumes(value="application/json") @Path(value="/accesslist") void create(Iterable<AccessRule> accessRules)
@Named(value="accessrule:list") @GET @Consumes(value="application/json") @Path(value="/accesslist") Iterable<AccessRuleWithId> list()
@Named(value="accessrule:delete") @DELETE @Path(value="/accesslist/{id}") @Consumes(value="*/*") boolean delete(@PathParam(value="id") int id)
@Named(value="accessrule:delete") @DELETE @Path(value="/accesslist") @Consumes(value="*/*") boolean delete(@QueryParam(value="id") Iterable<Integer> ids)
@Named(value="accessrule:delete") @DELETE @Path(value="/accesslist") @Consumes(value="*/*") boolean deleteAll()
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.