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 |
createIdentity(IdentityChangeDto identityChange)
Creates an identity only if the identity does not already exist.
|
InputStream |
downloadFileAttribute(String strConnectionId,
int nCustomerId,
String strAttributeKey,
String strClientAppCode) |
IdentityDto |
getIdentity(int nCustomerId,
String strApplicationCode)
get identity matching customerId for provided application code
|
IdentityDto |
getIdentity(String strConnectionId,
int nCustomerId,
String strApplicationCode)
get identity matching connectionId and customerId for provided application
code
|
IdentityDto |
getIdentity(String strConnectionId,
String strApplicationCode)
get identity matching connectionId 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 getIdentity(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 getIdentity(int nCustomerId, String strApplicationCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
nCustomerId - 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, int nCustomerId, String strApplicationCode) throws IdentityNotFoundException, fr.paris.lutece.portal.service.util.AppException
strConnectionId - connection Id (can be null if strCustomerId is provided)nCustomerId - customer Id (can be null if strconnection Id 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 InputStream downloadFileAttribute(String strConnectionId, int nCustomerId, String strAttributeKey, String strClientAppCode)
strConnectionId - connection Id (can be null if strCustomerId is provided)nCustomerId - customer Id (can be null if strconnection Id 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 parametersCopyright © 2016 City of Paris. All rights reserved.