public class ExternalIdentityMappingServiceImpl extends Object implements ExternalIdentityMappingService
| Constructor and Description |
|---|
ExternalIdentityMappingServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
Recorder recorder,
EventService eventService,
TechnicalLoggerService logger,
QueriableLoggerService queriableLoggerService) |
| Modifier and Type | Method and Description |
|---|---|
SExternalIdentityMapping |
createExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping)
Create externalIdentityMapping in DB for given externalIdentityMapping
|
void |
deleteAllExternalIdentityMappings()
Delete all external identity mapping for the connected tenant
|
void |
deleteExternalIdentityMapping(long mappingId)
Delete the id specified externalIdentityMapping
|
void |
deleteExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping)
Delete the specific externalIdentityMapping
|
SExternalIdentityMapping |
getExternalIdentityMappingById(long mappingId)
Get externalIdentityMapping by its id
|
SExternalIdentityMapping |
getExternalIdentityMappingById(long mappingId,
String suffix,
String messageSuffix) |
SExternalIdentityMapping |
getExternalIdentityMappingForGroup(long mappingId)
Get externalIdentityMapping by its id with displayNamePart having group related informations
|
SExternalIdentityMapping |
getExternalIdentityMappingForRole(long mappingId)
Get externalIdentityMapping by its id with displayNamePart having role related informations
|
SExternalIdentityMapping |
getExternalIdentityMappingForRoleAndGroup(long mappingId)
Get externalIdentityMapping by its id with displayNamePart having role and group related informations
|
SExternalIdentityMapping |
getExternalIdentityMappingForUser(long mappingId)
Get externalIdentityMapping by its id with displayNamePart having user related informations
|
long |
getNumberOfExternalIdentityMappings(String kind,
org.bonitasoft.engine.persistence.QueryOptions searchOptions,
String querySuffix)
Get total number of externalIdentityMappings for specific kind according to the queryOptions.
|
long |
getNumberOfExternalIdentityMappingsForUser(String kind,
long userId,
String externalId,
org.bonitasoft.engine.persistence.QueryOptions searchOptions,
String querySuffix)
Get total number of
SExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. |
List<SExternalIdentityMapping> |
searchExternalIdentityMappings(String kind,
org.bonitasoft.engine.persistence.QueryOptions queryOptions,
String querySuffix)
Get all externalIdentityMappings for specific kind according to the queryOptions.
|
List<SExternalIdentityMapping> |
searchExternalIdentityMappings(String kind,
String externalId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions)
Search all
SExternalIdentityMapping objects associated with the specified externalId and kind. |
List<SExternalIdentityMapping> |
searchExternalIdentityMappingsForUser(String kind,
long userId,
String externalId,
org.bonitasoft.engine.persistence.QueryOptions queryOptions,
String querySuffix)
Search all
SExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. |
public ExternalIdentityMappingServiceImpl(org.bonitasoft.engine.persistence.ReadPersistenceService persistenceService,
Recorder recorder,
EventService eventService,
TechnicalLoggerService logger,
QueriableLoggerService queriableLoggerService)
public SExternalIdentityMapping createExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping) throws SExternalIdentityMappingCreationException
ExternalIdentityMappingServicecreateExternalIdentityMapping in interface ExternalIdentityMappingServiceexternalIdentityMapping - an SExternalIdentityMapping object will be stored in DBSExternalIdentityMappingCreationExceptionpublic SExternalIdentityMapping getExternalIdentityMappingById(long mappingId) throws SExternalIdentityMappingNotFoundException
ExternalIdentityMappingServicegetExternalIdentityMappingById in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.public SExternalIdentityMapping getExternalIdentityMappingForUser(long mappingId) throws SExternalIdentityMappingNotFoundException
ExternalIdentityMappingServicegetExternalIdentityMappingForUser in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.public SExternalIdentityMapping getExternalIdentityMappingById(long mappingId, String suffix, String messageSuffix) throws SExternalIdentityMappingNotFoundException
getExternalIdentityMappingById in interface ExternalIdentityMappingServicesuffix - the query suffix to specify (ForUser, ForGroup, ...)SExternalIdentityMappingNotFoundExceptionpublic SExternalIdentityMapping getExternalIdentityMappingForGroup(long mappingId) throws SExternalIdentityMappingNotFoundException
ExternalIdentityMappingServicegetExternalIdentityMappingForGroup in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.public SExternalIdentityMapping getExternalIdentityMappingForRole(long mappingId) throws SExternalIdentityMappingNotFoundException
ExternalIdentityMappingServicegetExternalIdentityMappingForRole in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.public SExternalIdentityMapping getExternalIdentityMappingForRoleAndGroup(long mappingId) throws SExternalIdentityMappingNotFoundException
ExternalIdentityMappingServicegetExternalIdentityMappingForRoleAndGroup in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.public void deleteExternalIdentityMapping(long mappingId)
throws SExternalIdentityMappingNotFoundException,
SExternalIdentityMappingDeletionException
ExternalIdentityMappingServicedeleteExternalIdentityMapping in interface ExternalIdentityMappingServicemappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMappingDeletionExceptionpublic void deleteExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping) throws SExternalIdentityMappingDeletionException
ExternalIdentityMappingServicedeleteExternalIdentityMapping in interface ExternalIdentityMappingServiceexternalIdentityMapping - the externalIdentityMapping will be deletedSExternalIdentityMappingDeletionExceptionpublic void deleteAllExternalIdentityMappings()
throws SExternalIdentityMappingDeletionException
ExternalIdentityMappingServicedeleteAllExternalIdentityMappings in interface ExternalIdentityMappingServiceSExternalIdentityMappingDeletionExceptionpublic long getNumberOfExternalIdentityMappingsForUser(String kind, long userId, String externalId, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
ExternalIdentityMappingServiceSExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. Use
querySuffix to
indicate what the displayNamePart is related togetNumberOfExternalIdentityMappingsForUser in interface ExternalIdentityMappingServicekind - the discriminator of the SExternalIdentityMapping to search for.userId - The identifier of userexternalId - the external Id identifying the SExternalIdentityMappings to search.searchOptions - a QueryOptions object containing some query conditionsquerySuffix - the query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SExternalIdentityMapping> searchExternalIdentityMappingsForUser(String kind, long userId, String externalId, org.bonitasoft.engine.persistence.QueryOptions queryOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
ExternalIdentityMappingServiceSExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. Use querySuffix to
indicate what the displayNamePart is related tosearchExternalIdentityMappingsForUser in interface ExternalIdentityMappingServicekind - the discriminator of the SExternalIdentityMapping to search for.userId - The identifier of userexternalId - the external Id identifying the SExternalIdentityMappings to search.queryOptions - a QueryOptions object containing some query conditionsquerySuffix - the query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic long getNumberOfExternalIdentityMappings(String kind, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
ExternalIdentityMappingServicegetNumberOfExternalIdentityMappings in interface ExternalIdentityMappingServicekind - the discriminator of the SExternalIdentityMapping to search for.searchOptions - a QueryOptions object containing some query conditionsquerySuffix - the query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SExternalIdentityMapping> searchExternalIdentityMappings(String kind, org.bonitasoft.engine.persistence.QueryOptions queryOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
ExternalIdentityMappingServicesearchExternalIdentityMappings in interface ExternalIdentityMappingServicekind - the discriminator of the SExternalIdentityMapping to search for.queryOptions - a QueryOptions object containing some query conditionsquerySuffix - The query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";org.bonitasoft.engine.persistence.SBonitaReadExceptionpublic List<SExternalIdentityMapping> searchExternalIdentityMappings(String kind, String externalId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
ExternalIdentityMappingServiceSExternalIdentityMapping objects associated with the specified externalId and kind.searchExternalIdentityMappings in interface ExternalIdentityMappingServicekind - the discriminator of the SExternalIdentityMapping to search for.externalId - the external Id identifying the SExternalIdentityMappings to search.queryOptions - a QueryOptions object containing some query conditionsorg.bonitasoft.engine.persistence.SBonitaReadException - in case of search error.Copyright © 2018 Bonitasoft S.A.. All rights reserved.