Package org.graylog2.users
Class RoleServiceImpl
java.lang.Object
org.graylog2.users.RoleServiceImpl
- All Implemented Interfaces:
RoleService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoleServiceImpl(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, Permissions permissions, javax.validation.Validator validator) -
Method Summary
Modifier and TypeMethodDescriptionintDeletes the (case insensitively) named role, unless it is read only.booleanloadAll()
-
Field Details
-
ADMIN_ROLENAME
- See Also:
-
-
Constructor Details
-
Method Details
-
loadById
- Specified by:
loadByIdin interfaceRoleService- Throws:
NotFoundException
-
load
- Specified by:
loadin interfaceRoleService- Throws:
NotFoundException
-
exists
- Specified by:
existsin interfaceRoleService
-
loadAll
- Specified by:
loadAllin interfaceRoleService
-
findIdMap
- Specified by:
findIdMapin interfaceRoleService- Throws:
NotFoundException
-
loadAllIdMap
- Specified by:
loadAllIdMapin interfaceRoleService- Throws:
NotFoundException
-
loadAllLowercaseNameMap
- Specified by:
loadAllLowercaseNameMapin interfaceRoleService- Throws:
NotFoundException
-
delete
Description copied from interface:RoleServiceDeletes the (case insensitively) named role, unless it is read only.- Specified by:
deletein interfaceRoleService- Parameters:
roleName- role name to delete, case insensitive- Returns:
- the number of deleted roles
-
getAdminRoleObjectId
- Specified by:
getAdminRoleObjectIdin interfaceRoleService
-
getReaderRoleObjectId
- Specified by:
getReaderRoleObjectIdin interfaceRoleService
-