Package io.gravitee.am.service.impl
Class OrganizationUserServiceImpl
java.lang.Object
io.gravitee.am.service.impl.AbstractUserService<OrganizationUserRepository>
io.gravitee.am.service.impl.OrganizationUserServiceImpl
- All Implemented Interfaces:
CommonUserService,OrganizationUserService
@Component
public class OrganizationUserServiceImpl
extends AbstractUserService<OrganizationUserRepository>
implements OrganizationUserService
- Author:
- David BRASSELY (david.brassely at graviteesource.com), Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Field Summary
FieldsFields inherited from class io.gravitee.am.service.impl.AbstractUserService
credentialService, groupService, LOGGER, roleService, userValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<User>io.reactivex.rxjava3.core.Single<User>findByAccessToken(String tokenId, String tokenValue) io.reactivex.rxjava3.core.Flowable<AccountAccessToken>findUserAccessTokens(String organisationId, String userId) io.reactivex.rxjava3.core.Single<AccountAccessToken>generateAccountAccessToken(User user, NewAccountAccessToken newAccountToken, String issuer) protected UserEnhancerprotected OrganizationUserRepositoryio.reactivex.rxjava3.core.Single<AccountAccessToken>revokeToken(String organizationId, String userId, String tokenId) io.reactivex.rxjava3.core.CompletablerevokeUserAccessTokens(ReferenceType referenceType, String referenceId, String userId) io.reactivex.rxjava3.core.CompletableSet the ORGANIZATION_USER role to a newly create user.io.reactivex.rxjava3.core.CompletableSeeOrganizationUserService.setRoles(io.gravitee.am.identityprovider.api.User, User)with null principalio.reactivex.rxjava3.core.Single<User>Methods inherited from class io.gravitee.am.service.impl.AbstractUserService
create, create, enhance, findAll, findByExternalIdAndSource, findById, findById, findByIdIn, findByUsernameAndSource, search, search, search, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.am.service.CommonUserService
create, create, enhance, findAll, findByExternalIdAndSource, findById, findById, findByIdIn, findByUsernameAndSource, search, search, search, update
-
Field Details
-
membershipService
-
-
Constructor Details
-
OrganizationUserServiceImpl
public OrganizationUserServiceImpl()
-
-
Method Details
-
getUserRepository
- Specified by:
getUserRepositoryin classAbstractUserService<OrganizationUserRepository>
-
getUserEnhancer
- Specified by:
getUserEnhancerin classAbstractUserService<OrganizationUserRepository>
-
setRoles
Description copied from interface:OrganizationUserServiceSeeOrganizationUserService.setRoles(io.gravitee.am.identityprovider.api.User, User)with null principal- Specified by:
setRolesin interfaceOrganizationUserService- Returns:
-
setRoles
Description copied from interface:OrganizationUserServiceSet the ORGANIZATION_USER role to a newly create user.- Specified by:
setRolesin interfaceOrganizationUserService- Parameters:
principal- of the user (may be null if creation comes from the Console action, not from a login)user- on who the default role must be applied
-
update
- Specified by:
updatein interfaceCommonUserService
-
generateAccountAccessToken
public io.reactivex.rxjava3.core.Single<AccountAccessToken> generateAccountAccessToken(User user, NewAccountAccessToken newAccountToken, String issuer) - Specified by:
generateAccountAccessTokenin interfaceOrganizationUserService
-
findUserAccessTokens
public io.reactivex.rxjava3.core.Flowable<AccountAccessToken> findUserAccessTokens(String organisationId, String userId) - Specified by:
findUserAccessTokensin interfaceOrganizationUserService
-
revokeUserAccessTokens
public io.reactivex.rxjava3.core.Completable revokeUserAccessTokens(ReferenceType referenceType, String referenceId, String userId) - Specified by:
revokeUserAccessTokensin interfaceOrganizationUserService
-
findByAccessToken
- Specified by:
findByAccessTokenin interfaceOrganizationUserService
-
revokeToken
public io.reactivex.rxjava3.core.Single<AccountAccessToken> revokeToken(String organizationId, String userId, String tokenId) - Specified by:
revokeTokenin interfaceOrganizationUserService
-
delete
- Specified by:
deletein interfaceCommonUserService- Overrides:
deletein classAbstractUserService<OrganizationUserRepository>
-