public final class IdentityStoreService extends Object
| Modifier and Type | Method and Description |
|---|---|
static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto |
buildIdentityChange(String strClientAppCode)
Creates a basic identityChange
|
static ClientApplication |
fetchClientApplication(String strClientApplicationCode)
Finds the client application with the specified code
|
static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto |
getApplicationRights(String strClientAppCode)
generate the ApplicationRightsDto of a given application
|
static IdentityAttribute |
getAttribute(String strConnectionId,
String strAttributeKey,
String strClientApplicationCode)
returns attributes from connection id
|
static 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
|
static Identity |
getIdentityByConnectionId(String strConnectionId,
String strClientApplicationCode)
returns identity from connection id
|
static Identity |
getIdentityByCustomerId(String strCustomerId,
String strClientApplicationCode)
returns identity from customer id
|
static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
getOrCreateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
Creates an identity.
|
static SecureMode |
getSecureMode()
Get the secure Mode of the identitystore
|
static String |
getTrustedApplicationCode(String strHeaderClientAppCode,
fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
Get the application code to use
|
static String |
getTrustedApplicationCode(String strHeaderClientAppCode,
String strParamAppCode)
Get the application code to use
|
static void |
removeIdentity(String strConnectionId,
String strClientApplicationCode)
Removes an identity from the specified connection id
|
static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto |
updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
Updates an existing identity.
|
public static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto getOrCreateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
Identity is done, otherwise, the provided identity is used.identityChangeDto - the object IdentityChangeDto containing the information to perform the creationmapAttachedFiles - the files to createpublic static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto buildIdentityChange(String strClientAppCode)
strClientAppCode - client application codefr.paris.lutece.portal.service.util.AppException - if the connectionId and customerId are emptypublic static IdentityAttribute getAttribute(String strConnectionId, String strAttributeKey, String strClientApplicationCode)
strConnectionId - connection idstrAttributeKey - attribute keystrClientApplicationCode - application code who requested attributespublic static Identity getIdentityByConnectionId(String strConnectionId, String strClientApplicationCode)
strConnectionId - connection idstrClientApplicationCode - application code who requested identitypublic static Identity getIdentityByCustomerId(String strCustomerId, String strClientApplicationCode)
strCustomerId - customer idstrClientApplicationCode - application code who requested identitypublic static List<fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto> getIdentities(Map<String,List<String>> mapAttributeValues, List<String> listAttributeKeyNames, String strClientApplicationCode)
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 identitiespublic static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto updateIdentity(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
identityChangeDto - the object IdentityChangeDto containing the information to perform the creationmapAttachedFiles - the files to createpublic static void removeIdentity(String strConnectionId, String strClientApplicationCode)
strConnectionId - the connection idstrClientApplicationCode - the application codepublic static fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.ApplicationRightsDto getApplicationRights(String strClientAppCode)
strClientAppCode - the code applicationpublic static String getTrustedApplicationCode(String strHeaderClientAppCode, String strParamAppCode)
strHeaderClientAppCode - The application code in HTTP request headerstrParamAppCode - The application code provided by the clientpublic static String getTrustedApplicationCode(String strHeaderClientAppCode, fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityChangeDto identityChange)
strHeaderClientAppCode - The application code in HTTP request headeridentityChange - The identity changepublic static SecureMode getSecureMode()
public static ClientApplication fetchClientApplication(String strClientApplicationCode) throws fr.paris.lutece.portal.service.util.AppException
strClientApplicationCode - the client application codefr.paris.lutece.portal.service.util.AppException - if the client application cannot be foundCopyright © 2021 City of Paris. All rights reserved.