Package io.gravitee.am.service
Interface RoleService
- All Known Implementing Classes:
RoleServiceImpl
public interface RoleService
- Author:
- Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Role>create(ReferenceType referenceType, String referenceId, NewRole newRole, User principal) default io.reactivex.rxjava3.core.Single<Role>io.reactivex.rxjava3.core.Single<Role>io.reactivex.rxjava3.core.CompletablecreateDefaultRoles(String organizationId) io.reactivex.rxjava3.core.Completabledefault io.reactivex.rxjava3.core.Completabledelete(ReferenceType referenceType, String referenceId, String roleId) io.reactivex.rxjava3.core.Completabledelete(ReferenceType referenceType, String referenceId, String roleId, User principal) io.reactivex.rxjava3.core.Flowable<Role>findAllAssignable(ReferenceType referenceType, String referenceId, ReferenceType assignableType) findByDomain(String domain) findByDomain(String domain, int page, int size) io.reactivex.rxjava3.core.Single<Role>findById(ReferenceType referenceType, String referenceId, String id) io.reactivex.rxjava3.core.Maybe<Role>findByIdIn(List<String> ids) io.reactivex.rxjava3.core.Maybe<Role>findDefaultRole(String organizationId, DefaultRole defaultRole, ReferenceType assignableType) io.reactivex.rxjava3.core.Flowable<Role>findRolesByName(ReferenceType referenceType, String referenceId, ReferenceType assignableType, List<String> roleNames) io.reactivex.rxjava3.core.Maybe<Role>findSystemRole(SystemRole systemRole, ReferenceType assignableType) searchByDomain(String domain, String query, int page, int size) io.reactivex.rxjava3.core.Single<Role>update(ReferenceType referenceType, String referenceId, String id, UpdateRole updateRole, User principal) default io.reactivex.rxjava3.core.Single<Role>update(String domain, String id, UpdateRole role) io.reactivex.rxjava3.core.Single<Role>update(String domain, String id, UpdateRole role, User principal)
-
Method Details
-
findAllAssignable
io.reactivex.rxjava3.core.Flowable<Role> findAllAssignable(ReferenceType referenceType, String referenceId, ReferenceType assignableType) -
findByDomain
-
findByDomain
-
searchByDomain
-
findById
io.reactivex.rxjava3.core.Single<Role> findById(ReferenceType referenceType, String referenceId, String id) -
findById
-
findSystemRole
io.reactivex.rxjava3.core.Maybe<Role> findSystemRole(SystemRole systemRole, ReferenceType assignableType) -
findRolesByName
io.reactivex.rxjava3.core.Flowable<Role> findRolesByName(ReferenceType referenceType, String referenceId, ReferenceType assignableType, List<String> roleNames) -
findDefaultRole
io.reactivex.rxjava3.core.Maybe<Role> findDefaultRole(String organizationId, DefaultRole defaultRole, ReferenceType assignableType) -
findByIdIn
-
create
io.reactivex.rxjava3.core.Single<Role> create(ReferenceType referenceType, String referenceId, NewRole newRole, User principal) -
create
-
update
io.reactivex.rxjava3.core.Single<Role> update(ReferenceType referenceType, String referenceId, String id, UpdateRole updateRole, User principal) -
update
io.reactivex.rxjava3.core.Single<Role> update(String domain, String id, UpdateRole role, User principal) -
delete
io.reactivex.rxjava3.core.Completable delete(ReferenceType referenceType, String referenceId, String roleId, User principal) -
createOrUpdateSystemRoles
io.reactivex.rxjava3.core.Completable createOrUpdateSystemRoles() -
create
-
update
-
delete
default io.reactivex.rxjava3.core.Completable delete(ReferenceType referenceType, String referenceId, String roleId) -
createDefaultRoles
-