Class IdentityTransportApiManagerRest
java.lang.Object
fr.paris.lutece.plugins.identitystore.v1.web.rs.service.IdentityTransportApiManagerRest
- All Implemented Interfaces:
IIdentityTransportProvider
public final class IdentityTransportApiManagerRest
extends Object
implements IIdentityTransportProvider
IdentityRestClientService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDtocertifyAttributes(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange, String strCertifierCode) certify attributes from an identityfr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDtocreateIdentity(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange) Creates an identity only if the identity does not already exist.fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.ResponseDtodeleteIdentity(String strIdConnection, String strClientCode) Deletes an identity from the specified connectionIddownloadFileAttribute(String strIdConnection, String strCustomerId, String strAttributeKey, String strClientAppCode) fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDtogetIdentity(String strIdConnection, String strCustomerId, String strClientCode) get identity matching connectionId and customerId for provided application codevoidsetApiManagerCredentials(String strApiManagerCredentials) Sets the API Manager credentialsvoidsetApiManagerEndPoint(String strApiManagerEndPoint) setter of apiManagerEndPointvoidsetHttpTransport(IHttpTransportProvider httpTransport) setter of httpTransportvoidsetIdentityStoreEndPoint(String strIdentityStoreEndPoint) setter of identityStoreEndPointfr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDtoupdateIdentity(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange, Map<String, org.apache.commons.fileupload.FileItem> mapFileItem) apply changes to an identityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.identitystore.v1.web.service.IIdentityTransportProvider
certifyAttributes, createIdentity, deleteIdentity, downloadFileAttribute, getIdentity, updateIdentity
-
Constructor Details
-
IdentityTransportApiManagerRest
public IdentityTransportApiManagerRest()Simple Constructor
-
-
Method Details
-
setApiManagerEndPoint
setter of apiManagerEndPoint- Parameters:
strApiManagerEndPoint- value to use
-
setApiManagerCredentials
Sets the API Manager credentials- Parameters:
strApiManagerCredentials- the API Manager credentials
-
setIdentityStoreEndPoint
setter of identityStoreEndPoint- Parameters:
strIdentityStoreEndPoint- value to use
-
setHttpTransport
setter of httpTransport- Parameters:
httpTransport- IHttpTransportProvider to use
-
getIdentity
public fr.paris.lutece.plugins.identitystore.v1.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 get identity matching connectionId and customerId for provided application code- Specified by:
getIdentityin interfaceIIdentityTransportProvider- Parameters:
strIdConnection- connection Id (can be null if strCustomerId is provided)strCustomerId- customer Id (can be null if strConnectionId is provided)strClientCode- application code of calling application- Returns:
- identity if found
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionfr.paris.lutece.portal.service.util.AppException- if inconsitent parmeters provided, or errors occurs...
-
updateIdentity
public fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto updateIdentity(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange, Map<String, org.apache.commons.fileupload.FileItem> mapFileItem) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionapply changes to an identity- Specified by:
updateIdentityin interfaceIIdentityTransportProvider- Parameters:
identityChange- change to apply to identitymapFileItem- file map to upload- Returns:
- the updated identity
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
downloadFileAttribute
public InputStream downloadFileAttribute(String strIdConnection, String strCustomerId, String strAttributeKey, String strClientAppCode) - Specified by:
downloadFileAttributein interfaceIIdentityTransportProvider- Parameters:
strIdConnection- 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 application- Returns:
- inputstream of attribute file
-
createIdentity
public fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto createIdentity(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Creates 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- Specified by:
createIdentityin interfaceIIdentityTransportProvider- Parameters:
identityChange- change to apply to identity- Returns:
- the created identity
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
deleteIdentity
public fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.ResponseDto deleteIdentity(String strIdConnection, String strClientCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Deletes an identity from the specified connectionId- Specified by:
deleteIdentityin interfaceIIdentityTransportProvider- Parameters:
strIdConnection- the connection idstrClientCode- the application code- Returns:
- the
ResponseDtoobject - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionfr.paris.lutece.portal.service.util.AppException- if inconsistent parameters provided, or errors occurs...
-
certifyAttributes
public fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityDto certifyAttributes(fr.paris.lutece.plugins.identitystore.v1.web.rs.dto.IdentityChangeDto identityChange, String strCertifierCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Description copied from interface:IIdentityTransportProvidercertify attributes from an identity- Specified by:
certifyAttributesin interfaceIIdentityTransportProvider- Parameters:
identityChange- change to apply to identitystrCertifierCode- the certifier code ID- Returns:
- the updated identity
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-