Package org.graylog2.users
Interface RoleService
- All Known Implementing Classes:
RoleServiceImpl
public interface RoleService
-
Method Summary
Modifier and TypeMethodDescriptionint
Deletes the (case insensitively) named role, unless it is read only.boolean
loadAll()
-
Method Details
-
loadById
- Throws:
NotFoundException
-
load
- Throws:
NotFoundException
-
exists
-
loadAll
-
loadAllIdMap
- Throws:
NotFoundException
-
findIdMap
- Throws:
NotFoundException
-
loadAllLowercaseNameMap
- Throws:
NotFoundException
-
delete
Deletes the (case insensitively) named role, unless it is read only.- Parameters:
roleName
- role name to delete, case insensitive- Returns:
- the number of deleted roles
-
getAdminRoleObjectId
String getAdminRoleObjectId() -
getReaderRoleObjectId
String getReaderRoleObjectId()
-