public interface RoleService
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String roleName)
Deletes the (case insensitively) named role, unless it is read only.
|
boolean |
exists(String roleName) |
String |
getAdminRoleObjectId() |
String |
getReaderRoleObjectId() |
Role |
load(String roleName) |
Set<Role> |
loadAll() |
Map<String,Role> |
loadAllIdMap() |
Map<String,Role> |
loadAllLowercaseNameMap() |
Role |
loadById(String roleId) |
Role |
save(Role role) |
Set<javax.validation.ConstraintViolation<Role>> |
validate(Role role) |
Role loadById(String roleId) throws NotFoundException
NotFoundExceptionRole load(String roleName) throws NotFoundException
NotFoundExceptionboolean exists(String roleName)
Set<Role> loadAll() throws NotFoundException
NotFoundExceptionMap<String,Role> loadAllIdMap() throws NotFoundException
NotFoundExceptionMap<String,Role> loadAllLowercaseNameMap() throws NotFoundException
NotFoundExceptionRole save(Role role) throws ValidationException
ValidationExceptionint delete(String roleName)
roleName - role name to delete, case insensitiveString getAdminRoleObjectId()
String getReaderRoleObjectId()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.