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,
java.lang.String suffix,
java.lang.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(java.lang.String kind,
QueryOptions searchOptions,
java.lang.String querySuffix)
Get total number of externalIdentityMappings for specific kind according to the queryOptions.
|
long |
getNumberOfExternalIdentityMappingsForUser(java.lang.String kind,
long userId,
java.lang.String externalId,
QueryOptions searchOptions,
java.lang.String querySuffix)
Get total number of
SExternalIdentityMapping objects associated with the specified externalId and kind for the specific user. |
java.util.List<SExternalIdentityMapping> |
searchExternalIdentityMappings(java.lang.String kind,
QueryOptions queryOptions,
java.lang.String querySuffix)
Get all externalIdentityMappings for specific kind according to the queryOptions.
|
java.util.List<SExternalIdentityMapping> |
searchExternalIdentityMappings(java.lang.String kind,
java.lang.String externalId,
QueryOptions queryOptions)
Search all
SExternalIdentityMapping objects associated with the specified externalId and kind. |
java.util.List<SExternalIdentityMapping> |
searchExternalIdentityMappingsForUser(java.lang.String kind,
long userId,
java.lang.String externalId,
QueryOptions queryOptions,
java.lang.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 DBSExternalIdentityMappingCreationException
SExternalIdentityMapping 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.SExternalIdentityMappingDeletionException
void deleteExternalIdentityMapping(SExternalIdentityMapping externalIdentityMapping) throws SExternalIdentityMappingDeletionException
externalIdentityMapping
- the externalIdentityMapping will be deletedSExternalIdentityMappingDeletionException
void deleteAllExternalIdentityMappings() throws SExternalIdentityMappingDeletionException
SExternalIdentityMappingDeletionException
java.util.List<SExternalIdentityMapping> searchExternalIdentityMappings(java.lang.String kind, QueryOptions queryOptions, java.lang.String querySuffix) throws 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";SBonitaReadException
long getNumberOfExternalIdentityMappings(java.lang.String kind, QueryOptions searchOptions, java.lang.String querySuffix) throws 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";SBonitaReadException
java.util.List<SExternalIdentityMapping> searchExternalIdentityMappingsForUser(java.lang.String kind, long userId, java.lang.String externalId, QueryOptions queryOptions, java.lang.String querySuffix) throws 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 SExternalIdentityMapping
s to search.queryOptions
- a QueryOptions object containing some query conditionsquerySuffix
- the query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";SBonitaReadException
long getNumberOfExternalIdentityMappingsForUser(java.lang.String kind, long userId, java.lang.String externalId, QueryOptions searchOptions, java.lang.String querySuffix) throws 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 SExternalIdentityMapping
s to search.searchOptions
- a QueryOptions object containing some query conditionsquerySuffix
- the query suffix, it can be "USER", "GROUP", "ROLE", "MEMBERSHIP";SBonitaReadException
java.util.List<SExternalIdentityMapping> searchExternalIdentityMappings(java.lang.String kind, java.lang.String externalId, QueryOptions queryOptions) throws 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 SExternalIdentityMapping
s to search.queryOptions
- a QueryOptions object containing some query conditionsSBonitaReadException
- in case of search error.SExternalIdentityMapping getExternalIdentityMappingById(long mappingId, java.lang.String suffix, java.lang.String messageSuffix) throws SExternalIdentityMappingNotFoundException
mappingId
- suffix
- the query suffix to specify (ForUser, ForGroup, ...)messageSuffix
- SExternalIdentityMappingNotFoundException