public class IdentityService extends Object
| Constructor and Description |
|---|
IdentityService()
Simple Constructor
|
IdentityService(IIdentityTransportProvider transportProvider)
Constructor with IIdentityTransportProvider in parameters
|
| 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.
|
void |
deleteIdentity(String strConnectionId,
String strApplicationCode)
Deletes an identity from the specified connectionId
|
InputStream |
downloadFileAttribute(String strConnectionId,
String strCustomerId,
String strAttributeKey,
String strClientAppCode) |
IdentityDto |
getIdentity(String strConnectionId,
String strCustomerId,
String strApplicationCode)
get identity matching connectionId and customerId for provided application code
|
IdentityDto |
getIdentityByConnectionId(String strConnectionId,
String strApplicationCode)
get identity matching connectionId for provided application code
|
IdentityDto |
getIdentityByCustomerId(String strCustomerId,
String strApplicationCode)
get identity matching customerId for provided application code
|
void |
setTransportProvider(IIdentityTransportProvider transportProvider)
setter of transportProvider parameter
|
IdentityDto |
updateIdentity(IdentityChangeDto identityChange,
Map<String,org.apache.commons.fileupload.FileItem> mapFiles)
apply changes to an identity
|
public IdentityService()
public IdentityService(IIdentityTransportProvider transportProvider)
transportProvider - IIdentityTransportProviderpublic void setTransportProvider(IIdentityTransportProvider transportProvider)
transportProvider - IIdentityTransportProviderpublic IdentityDto getIdentityByConnectionId(String strConnectionId, String strApplicationCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
strConnectionId - connection IdstrApplicationCode - 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 getIdentityByCustomerId(String strCustomerId, String strApplicationCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
strCustomerId - customer IdstrApplicationCode - 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 getIdentity(String strConnectionId, String strCustomerId, String strApplicationCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
strConnectionId - connection Id (can be null if strCustomerId is provided)strCustomerId - customer Id (can be null if strConnectionId is provided)strApplicationCode - 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> mapFiles) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
identityChange - change to apply to identitymapFiles - fileitem map to uploadfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityIdentityNotFoundException - if no identity found for input parameterspublic IdentityDto createIdentity(IdentityChangeDto identityChange) throws fr.paris.lutece.portal.service.util.AppException
identityChange - change to apply to identityfr.paris.lutece.portal.service.util.AppException - if error occured while updating identitypublic void deleteIdentity(String strConnectionId, String strApplicationCode)
strConnectionId - the connection idstrApplicationCode - the application codepublic InputStream downloadFileAttribute(String strConnectionId, String strCustomerId, String strAttributeKey, String strClientAppCode)
strConnectionId - 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 applicationfr.paris.lutece.portal.service.util.AppException - if error occured while retrieving file attributeIdentityNotFoundException - if no identity found for input parameterspublic IdentityDto certifyAttributes(IdentityChangeDto identityChange, String strCertifierCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
identityChange - change to apply to identitystrCertifierCode - the certifier code IDfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityIdentityNotFoundException - if no identity found for input parametersCopyright © 2022 City of Paris. All rights reserved.