public final class IdentityTransportRest extends Object implements IIdentityTransportProvider
| Constructor and Description |
|---|
IdentityTransportRest()
Simple Constructor
|
IdentityTransportRest(IHttpTransportProvider httpTransport)
Constructor with IHttpTransportProvider parameter
|
| Modifier and Type | Method and Description |
|---|---|
IdentityDto |
certifyAttributes(IdentityChangeDto identityChange,
String strCertifierCode)
certify attributes from an identity
|
IdentityDto |
createIdentity(IdentityChangeDto identityChange)
Creates an identity only if the identity does not already exist.
|
ResponseDto |
deleteIdentity(String strIdConnection,
String strClientCode)
Deletes an identity from the specified connectionId
|
InputStream |
downloadFileAttribute(String strIdConnection,
String strCustomerId,
String strAttributeKey,
String strClientAppCode) |
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
|
IdentityDto |
updateIdentity(IdentityChangeDto identityChange,
Map<String,org.apache.commons.fileupload.FileItem> mapFileItem)
apply changes to an identity
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcertifyAttributes, createIdentity, deleteIdentity, downloadFileAttribute, getIdentity, updateIdentitypublic IdentityTransportRest()
public IdentityTransportRest(IHttpTransportProvider httpTransport)
httpTransport - the provider to usepublic void setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
strIdentityStoreEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to usepublic IdentityDto getIdentity(String strIdConnection, String strCustomerId, String strClientCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
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 applicationIdentityNotFoundException - if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...public IdentityDto updateIdentity(IdentityChangeDto identityChange, Map<String,org.apache.commons.fileupload.FileItem> mapFileItem) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
updateIdentity in interface IIdentityTransportProvideridentityChange - change to apply to identitymapFileItem - file map to uploadIdentityNotFoundException - 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 IdentityDto createIdentity(IdentityChangeDto identityChange) throws IdentityNotFoundException, 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 identityIdentityNotFoundExceptionpublic ResponseDto deleteIdentity(String strIdConnection, String strClientCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
deleteIdentity in interface IIdentityTransportProviderstrIdConnection - the connection idstrClientCode - the application codeResponseDto objectIdentityNotFoundException - if no identity found for input parametersfr.paris.lutece.portal.service.util.AppException - if inconsistent parameters provided, or errors occurs...public IdentityDto certifyAttributes(IdentityChangeDto identityChange, String strCertifierCode)
IIdentityTransportProvidercertifyAttributes in interface IIdentityTransportProvideridentityChange - change to apply to identitystrCertifierCode - the certifier code IDCopyright © 2022 City of Paris. All rights reserved.