public interface ExternalIdentityMappingService
| 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. |
SExternalIdentityMapping createExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping) throws SExternalIdentityMappingAlreadyExistsException, SExternalIdentityMappingCreationException
externalIdentityMapping - an SExternalIdentityMapping object will be stored in DBSExternalIdentityMappingAlreadyExistsException - error thrown if externalIdentityMapping already exists in DBSExternalIdentityMappingCreationExceptionSExternalIdentityMapping getExternalIdentityMappingById(long mappingId) throws SExternalIdentityMappingNotFoundException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMapping getExternalIdentityMappingForUser(long mappingId) throws SExternalIdentityMappingNotFoundException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMapping getExternalIdentityMappingForGroup(long mappingId) throws SExternalIdentityMappingNotFoundException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMapping getExternalIdentityMappingForRole(long mappingId) throws SExternalIdentityMappingNotFoundException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMapping getExternalIdentityMappingForRoleAndGroup(long mappingId) throws SExternalIdentityMappingNotFoundException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.void deleteExternalIdentityMapping(long mappingId)
throws SExternalIdentityMappingNotFoundException,
SExternalIdentityMappingDeletionException
mappingId - the identifier of externalIdentityMappingSExternalIdentityMappingNotFoundException - error thrown if no externalIdentityMapping have an id corresponding to the parameter.SExternalIdentityMappingDeletionExceptionvoid deleteExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping) throws SExternalIdentityMappingDeletionException
externalIdentityMapping - the externalIdentityMapping will be deletedSExternalIdentityMappingDeletionExceptionvoid deleteAllExternalIdentityMappings()
throws SExternalIdentityMappingDeletionException
SExternalIdentityMappingDeletionExceptionList<SExternalIdentityMapping> searchExternalIdentityMappings(String kind, org.bonitasoft.engine.persistence.QueryOptions queryOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
kind - 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.SBonitaReadExceptionlong getNumberOfExternalIdentityMappings(String kind, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
kind - 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.SBonitaReadExceptionList<SExternalIdentityMapping> searchExternalIdentityMappingsForUser(String kind, long userId, String externalId, org.bonitasoft.engine.persistence.QueryOptions queryOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
SExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. Use querySuffix to
indicate what the displayNamePart is related tokind - 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.SBonitaReadExceptionlong getNumberOfExternalIdentityMappingsForUser(String kind, long userId, String externalId, org.bonitasoft.engine.persistence.QueryOptions searchOptions, String querySuffix) throws org.bonitasoft.engine.persistence.SBonitaReadException
SExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. Use
querySuffix to
indicate what the displayNamePart is related tokind - 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.SBonitaReadExceptionList<SExternalIdentityMapping> searchExternalIdentityMappings(String kind, String externalId, org.bonitasoft.engine.persistence.QueryOptions queryOptions) throws org.bonitasoft.engine.persistence.SBonitaReadException
SExternalIdentityMapping objects associated with the specified externalId and kind.kind - 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.SExternalIdentityMapping getExternalIdentityMappingById(long mappingId, String suffix, String messageSuffix) throws SExternalIdentityMappingNotFoundException
mappingId - suffix - the query suffix to specify (ForUser, ForGroup, ...)messageSuffix - SExternalIdentityMappingNotFoundExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.