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 |
|---|---|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
createIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.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) |
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto |
getApplicationRights(String strClientAppCode)
retrieve application rights on attributs
|
List<fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto> |
getIdentities(Map<String,List<String>> mapAttributeValues,
List<String> listAttributeKeyNames,
String strClientApplicationCode)
returns a list of identity from combination of attributes
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
getIdentity(String strConnectionId,
String strCustomerId,
String strApplicationCode)
get identity matching connectionId and customerId for provided application code
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
getIdentityByConnectionId(String strConnectionId,
String strApplicationCode)
get identity matching connectionId for provided application code
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
getIdentityByCustomerId(String strCustomerId,
String strApplicationCode)
get identity matching customerId for provided application code
|
void |
setTransportProvider(IIdentityTransportProvider transportProvider)
setter of transportProvider parameter
|
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.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 fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto getIdentityByConnectionId(String strConnectionId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - connection IdstrApplicationCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto getIdentityByCustomerId(String strCustomerId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - customer IdstrApplicationCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto getIdentity(String strConnectionId, String strCustomerId, String strApplicationCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
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 applicationfr.paris.lutece.portal.service.util.AppException - if inconsitent parmeters provided, or errors occurs...fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange,
Map<String,org.apache.commons.fileupload.FileItem> mapFiles)
throws fr.paris.lutece.portal.service.util.AppException,
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - change to apply to identitymapFiles - fileitem map to uploadfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto createIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
throws fr.paris.lutece.portal.service.util.AppException,
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - change to apply to identityfr.paris.lutece.portal.service.util.AppException - if error occured while updating identityfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void deleteIdentity(String strConnectionId, String strApplicationCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strConnectionId - the connection idstrApplicationCode - the application codefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic 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 attributefr.paris.lutece.plugins.identitystore.web.exception.IdentityNotFoundException - if no identity found for input parameterspublic fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto getApplicationRights(String strClientAppCode) throws fr.paris.lutece.portal.service.util.AppException, fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strClientAppCode - application code of calling applicationfr.paris.lutece.portal.service.util.AppException - if error occuredfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto> getIdentities(Map<String,List<String>> mapAttributeValues, List<String> listAttributeKeyNames, String strClientApplicationCode) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
mapAttributeValues - a map that associates list of values to search for some attributeslistAttributeKeyNames - a list of attributes to retrieve in identitiesstrClientApplicationCode - application code who requested identitiesfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.