Interface IIdentityTransportProvider
-
- All Known Implementing Classes:
IdentityTransportRest,MockIdentityTransportRest
public interface IIdentityTransportProviderInterface for providing identity transport
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidcheckCommonHeaders(String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponsecreateIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Creates an identity only if the identity does not already exist.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateResponsecreateIdentityTask(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Create a task related to anIdentityDtoby its customer ID.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponsedeleteIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Deletes an identity from the specified connectionIdfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportResponseexportIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Exports a list of identities according to the provided request and client code.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponsegetIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)get identity matching connectionId for provided application codefr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistoryGetResponsegetIdentityHistory(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Gives the identity history (identity+attributes) from a customerIDfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetResponsegetIdentityTaskList(String taskCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Get the task.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskListGetResponsegetIdentityTaskList(String resourceId, String resourceType, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Get the tasks related to a given resource.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetStatusResponsegetIdentityTaskStatus(String taskCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Get theIdentityTaskStatusTypeof the task.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponsegetServiceContract(String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Deprecated.Please useIServiceContractTransportProviderfor requests regarding service contract.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchResponsegetUpdatedIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)get identities that have been updated, according to given request.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponseimportIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)import an identity to the id storefr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponsemergeIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMerge, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Merge two identities.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponsesearchIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)returns a list of identity from combination of attributesfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchResponsesearchIdentityHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Search for identities history according to given requestfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponsesearchIdentityTasks(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Search for tasks.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponseuncertifyIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Dé-certification d'une identité.
Une identité ne pouvant pas posséder d'attributs non-certifiés, une dé-certification implique la certification de ses attributs avec le processus défini par la property :identitystore.identity.uncertify.processus(par défaut : "dec", qui correspond au niveau le plus faible de certification (auto-déclaratif))fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponseunMergeIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMerge, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Unmerge two identities.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponseupdateIdentity(String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Updates an identity.fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskUpdateStatusResponseupdateIdentityTaskStatus(String taskCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskUpdateStatusRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author)Update theIdentityTaskStatusTypeof the task.
-
-
-
Method Detail
-
getIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse getIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
get identity matching connectionId for provided application code- Parameters:
strCustomerId- customer IdstrClientCode- client code of calling applicationauthor- author of the request- Returns:
- identity if found
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException- if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException- if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
createIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse createIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCreates an identity only if the identity does not already exist. The identity is created from the provided attributes. The order to test if the identity exists: - by using the provided customer id if present - by using the provided connection id if present- Parameters:
identityChange- change to apply to identitystrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the
IdentityChangeResponse - Throws:
fr.paris.lutece.portal.service.util.AppException- if error occurred while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundExceptionfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
updateIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse updateIdentity(String customerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Updates an identity.- Parameters:
customerId- customer IdidentityChange- change to apply to identitystrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the
IdentityChangeResponse - Throws:
fr.paris.lutece.portal.service.util.AppException- if error occurred while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundExceptionfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
deleteIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse deleteIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Deletes an identity from the specified connectionId- Parameters:
strClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the
ResponseDtoobject - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException- if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException- if inconsistent parameters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
searchIdentities
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse searchIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest identitySearchRequest, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionreturns a list of identity from combination of attributes- Parameters:
identitySearchRequest- change to apply to identitystrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- identity filled according to application rights for user identified by connection id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getServiceContract
@Deprecated fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getServiceContract(String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Deprecated.Please useIServiceContractTransportProviderfor requests regarding service contract.returns the active service contract for the given application code- Parameters:
strClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the active service contract for the given application code
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
importIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse importIdentity(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeRequest identityChange, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionimport an identity to the id store- Parameters:
identityChange- change to apply to identitystrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- identity filled according to application rights for user identified by connection id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
mergeIdentities
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse mergeIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMerge, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionMerge two identities.- Parameters:
identityMerge- the request containing the master cuid, the secondary cuid, and a list of attribute to be taken from the secondary identity and put on the master identity.strClientCode- client code of calling applicationauthor- the author of the request- Returns:
- IdentityMergeResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
unMergeIdentities
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeResponse unMergeIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.merge.IdentityMergeRequest identityMerge, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionUnmerge two identities.- Parameters:
identityMerge- the request containing the master cuid, the secondary cuidstrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- IdentityMergeResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getIdentityHistory
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistoryGetResponse getIdentityHistory(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Gives the identity history (identity+attributes) from a customerID- Parameters:
strCustomerId- customerIDstrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the history
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
searchIdentityHistory
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchResponse searchIdentityHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityHistorySearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionSearch for identities history according to given request- Parameters:
request- requeststrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the history
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getUpdatedIdentities
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchResponse getUpdatedIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.UpdatedIdentitySearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionget identities that have been updated, according to given request.- Parameters:
request- the requeststrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- the list of identities
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
uncertifyIdentity
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.IdentityChangeResponse uncertifyIdentity(String strCustomerId, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Dé-certification d'une identité.
Une identité ne pouvant pas posséder d'attributs non-certifiés, une dé-certification implique la certification de ses attributs avec le processus défini par la property :identitystore.identity.uncertify.processus(par défaut : "dec", qui correspond au niveau le plus faible de certification (auto-déclaratif))- Parameters:
strCustomerId- the customer IDstrClientCode- client code of calling applicationauthor- the author of the request- Returns:
- IdentityChangeResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
exportIdentities
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportResponse exportIdentities(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.exporting.IdentityExportRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionExports a list of identities according to the provided request and client code.- Parameters:
request- the export requeststrClientCode- the client code- Returns:
- IdentityExportResponse
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
createIdentityTask
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateResponse createIdentityTask(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskCreateRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCreate a task related to anIdentityDtoby its customer ID.- Parameters:
request- the task creation requeststrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- the code of the created task used to identify that task for further usage
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
updateIdentityTaskStatus
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskUpdateStatusResponse updateIdentityTaskStatus(String taskCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskUpdateStatusRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Update theIdentityTaskStatusTypeof the task.- Parameters:
request- the task status update requesttaskCode- the code of the task returned at creation timestrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- an
IdentityTaskUpdateStatusResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
getIdentityTaskStatus
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetStatusResponse getIdentityTaskStatus(String taskCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Get theIdentityTaskStatusTypeof the task.- Parameters:
taskCode- the code of the task returned at creation timestrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- an
IdentityTaskGetStatusResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
getIdentityTaskList
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskGetResponse getIdentityTaskList(String taskCode, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Get the task.- Parameters:
taskCode- the code of the task returned at creation timestrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- an
IdentityTaskGetResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
getIdentityTaskList
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskListGetResponse getIdentityTaskList(String resourceId, String resourceType, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Get the tasks related to a given resource.- Parameters:
resourceId- the ID of the resourceresourceType- the type of the resourcestrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- an
IdentityTaskGetResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
searchIdentityTasks
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponse searchIdentityTasks(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request, String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionSearch for tasks.- Parameters:
request- the search requeststrClientCode- the client code calling the requestauthor- the author of the request- Returns:
- an
IdentityTaskSearchResponse - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException- in case of error
-
checkCommonHeaders
default void checkCommonHeaders(String strClientCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.RequestAuthor author) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
-