Package org.graylog2.users
Class RoleServiceImpl
java.lang.Object
org.graylog2.users.RoleServiceImpl
- All Implemented Interfaces:
RoleService
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRoleServiceImpl
(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, Permissions permissions, javax.validation.Validator validator) -
Method Summary
Modifier and TypeMethodDescriptionint
Deletes the (case insensitively) named role, unless it is read only.boolean
loadAll()
-
Field Details
-
ADMIN_ROLENAME
- See Also:
-
-
Constructor Details
-
Method Details
-
loadById
- Specified by:
loadById
in interfaceRoleService
- Throws:
NotFoundException
-
load
- Specified by:
load
in interfaceRoleService
- Throws:
NotFoundException
-
exists
- Specified by:
exists
in interfaceRoleService
-
loadAll
- Specified by:
loadAll
in interfaceRoleService
-
findIdMap
- Specified by:
findIdMap
in interfaceRoleService
- Throws:
NotFoundException
-
loadAllIdMap
- Specified by:
loadAllIdMap
in interfaceRoleService
- Throws:
NotFoundException
-
loadAllLowercaseNameMap
- Specified by:
loadAllLowercaseNameMap
in interfaceRoleService
- Throws:
NotFoundException
-
delete
Description copied from interface:RoleService
Deletes the (case insensitively) named role, unless it is read only.- Specified by:
delete
in interfaceRoleService
- Parameters:
roleName
- role name to delete, case insensitive- Returns:
- the number of deleted roles
-
getAdminRoleObjectId
- Specified by:
getAdminRoleObjectId
in interfaceRoleService
-
getReaderRoleObjectId
- Specified by:
getReaderRoleObjectId
in interfaceRoleService
-