public final class IdentityStoreService extends Object
Modifier and Type | Method and Description |
---|---|
static Identity |
createIdentity(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
Creates an identity.
|
static IdentityAttribute |
getAttribute(String strConnectionId,
String strAttributeKey,
String strClientApplicationCode)
returns attributes from connection id
|
static Map<String,IdentityAttribute> |
getAttributesByConnectionId(String strConnectionId)
returns attributes from connection id
|
static Map<String,IdentityAttribute> |
getAttributesByConnectionId(String strConnectionId,
String strClientApplicationCode)
returns attributes from connection id
|
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 Identity |
getOrCreateIdentity(String strConnectionId,
String strCustomerId,
String strClientAppCode)
get identity from connectionId or customerId If no identity is found then a new one be created with attributes based on external provider data
|
static void |
removeIdentity(String strConnectionId,
String strClientApplicationCode)
Removes an identity from the specified connection id
|
static void |
setAttribute(Identity identity,
String strKey,
String strValue,
ChangeAuthor author,
AttributeCertificate certificate)
Set an attribute value associated to an identity
|
static Identity |
updateIdentity(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChangeDto,
Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
Updates an existing identity.
|
public static Identity createIdentity(fr.paris.lutece.plugins.identitystore.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 Identity getOrCreateIdentity(String strConnectionId, String strCustomerId, String strClientAppCode)
strConnectionId
- connection idstrCustomerId
- customer idstrClientAppCode
- client application codefr.paris.lutece.portal.service.util.AppException
- if provided connectionId and customerId are not consistentpublic static Map<String,IdentityAttribute> getAttributesByConnectionId(String strConnectionId)
strConnectionId
- connection idpublic static Map<String,IdentityAttribute> getAttributesByConnectionId(String strConnectionId, String strClientApplicationCode)
strConnectionId
- connection idstrClientApplicationCode
- application code who requested attributespublic 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 Identity updateIdentity(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityChangeDto identityChangeDto, Map<String,fr.paris.lutece.portal.business.file.File> mapAttachedFiles)
identity
- the identity to complete.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 void setAttribute(Identity identity, String strKey, String strValue, ChangeAuthor author, AttributeCertificate certificate)
identity
- identitystrKey
- The key to setstrValue
- The valueauthor
- The author of the changecertificate
- The certificate. May be nullCopyright © 2017 City of Paris. All rights reserved.