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
NotFoundException
Role load(String roleName) throws NotFoundException
NotFoundException
boolean exists(String roleName)
Set<Role> loadAll() throws NotFoundException
NotFoundException
Map<String,Role> loadAllIdMap() throws NotFoundException
NotFoundException
Map<String,Role> loadAllLowercaseNameMap() throws NotFoundException
NotFoundException
Role save(Role role) throws ValidationException
ValidationException
int delete(String roleName)
roleName
- role name to delete, case insensitiveString getAdminRoleObjectId()
String getReaderRoleObjectId()
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.