public class MockIdentityTransportDataStore extends Object
| Constructor and Description |
|---|
MockIdentityTransportDataStore() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
createIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
Creates an identity only if the identity does not already exist.
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ResponseDto |
deleteIdentity(String strConnectionId,
String strApplicationCode)
Deletes an identity from the specified connectionId
|
InputStream |
downloadFileAttribute(String strIdConnection,
String strCustomerId,
String strAttributeKey,
String strClientAppCode) |
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto |
getApplicationRights(String strClientAppCode) |
List<fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto> |
getIdentities(Map<String,List<String>> mapAttributeValues,
List<String> listAttributeKeyNames,
String strClientCode)
returns a list of identity from combination of attributes
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
getIdentity(String strIdConnection,
String strCustomerId,
String strClientCode)
get identity matching connectionId and customerId for provided application code
|
void |
setHttpTransport(IHttpTransportProvider httpTransport)
setter of httpTransport
|
void |
setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
setter of identityStoreEndPoint
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange,
Map<String,org.apache.commons.fileupload.FileItem> mapFileItem)
apply changes to an identity
|
public fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto getIdentity(String strIdConnection, String strCustomerId, String strClientCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
getIdentity in interface IIdentityTransportProviderstrIdConnection - connection Id (can be null if strCustomerId is provided)strCustomerId - customer Id (can be null if strConnectionId is provided)strClientCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException - if no identity found for input parametersfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange,
Map<String,org.apache.commons.fileupload.FileItem> mapFileItem)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException,
fr.paris.lutece.portal.service.util.AppException
updateIdentity in interface IIdentityTransportProvideridentityChange - change to apply to identitymapFileItem - file map to uploadfr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException - if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException - if error occured while updating identitypublic InputStream downloadFileAttribute(String strIdConnection, String strCustomerId, String strAttributeKey, String strClientAppCode)
downloadFileAttribute in interface IIdentityTransportProviderstrIdConnection - connection Id (can be null if strCustomerId is provided)strCustomerId - customer Id (can be null if strConnectionId is provided)strAttributeKey - attribute Key (must match a an attribute of type file)strClientAppCode - application code of calling applicationpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto createIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
throws fr.paris.lutece.portal.service.util.AppException
createIdentity in interface IIdentityTransportProvideridentityChange - change to apply to identityfr.paris.lutece.portal.service.util.AppException - if error occurred while updating identitypublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto getApplicationRights(String strClientAppCode) throws fr.paris.lutece.portal.service.util.AppException
getApplicationRights in interface IIdentityTransportProviderfr.paris.lutece.portal.service.util.AppException - if error occuredpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ResponseDto deleteIdentity(String strConnectionId, String strApplicationCode)
deleteIdentity in interface IIdentityTransportProviderstrConnectionId - the connection idstrApplicationCode - the application codeResponseDto objectpublic void setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
strIdentityStoreEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to usepublic List<fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto> getIdentities(Map<String,List<String>> mapAttributeValues, List<String> listAttributeKeyNames, String strClientCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
getIdentities in interface IIdentityTransportProvidermapAttributeValues - a map that associates list of values to search for some attributeslistAttributeKeyNames - a list of attributes to retrieve in identitiesstrClientCode - application code who requested identitiesfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.