public final class IdentityTransportApiManagerRest extends Object implements IIdentityTransportProvider
| Constructor and Description |
|---|
IdentityTransportApiManagerRest()
Simple Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAuthentication(Map<String,String> mapHeadersRequest)
add specific authentication to request
|
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) |
ApplicationRightsDto |
getApplicationRights(String strClientAppCode) |
protected IHttpTransportProvider |
getHttpTransport() |
List<IdentityDto> |
getIdentities(Map<String,List<String>> mapAttributeValues,
List<String> listAttributeKeyNames,
String strClientCode)
returns a list of identity from combination of attributes
|
IdentityDto |
getIdentity(String strIdConnection,
String strCustomerId,
String strClientCode)
get identity matching connectionId and customerId for provided application code
|
void |
setApiManagerCredentials(String strApiManagerCredentials)
Sets the API Manager credentials
|
void |
setApiManagerEndPoint(String strApiManagerEndPoint)
setter of apiManagerEndPoint
|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateIdentity, deleteIdentity, downloadFileAttribute, getApplicationRights, getIdentities, getIdentity, updateIdentitypublic IdentityTransportApiManagerRest()
public void setApiManagerEndPoint(String strApiManagerEndPoint)
strApiManagerEndPoint - value to usepublic void setApiManagerCredentials(String strApiManagerCredentials)
strApiManagerCredentials - the API Manager credentialsprotected void addAuthentication(Map<String,String> mapHeadersRequest)
mapHeadersRequest - map of headers to addpublic void setIdentityStoreEndPoint(String strIdentityStoreEndPoint)
strIdentityStoreEndPoint - value to usepublic void setHttpTransport(IHttpTransportProvider httpTransport)
httpTransport - IHttpTransportProvider to useprotected IHttpTransportProvider getHttpTransport()
public 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 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 List<IdentityDto> getIdentities(Map<String,List<String>> mapAttributeValues, List<String> listAttributeKeyNames, String strClientCode)
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 identitiesCopyright © 2022 City of Paris. All rights reserved.