public final class IdentityStoreService extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createIdentity(Identity identity)
create 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(int nCustomerId,
String strClientApplicationCode)
returns identity from customer id
|
static void |
setAttribute(Identity identity,
String strKey,
String strValue,
ChangeAuthor author,
AttributeCertificate certificate)
Set an attribute value associated to an identity
|
static void |
setAttribute(Identity identity,
String strKey,
String strValue,
fr.paris.lutece.portal.business.file.File file,
ChangeAuthor author,
AttributeCertificate certificate)
Set an attribute value associated to an identity
|
public static void createIdentity(Identity identity)
identity - identity to createpublic 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(int nCustomerId, String strClientApplicationCode)
nCustomerId - customer idstrClientApplicationCode - application code who requested identitypublic 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 nullpublic static void setAttribute(Identity identity, String strKey, String strValue, fr.paris.lutece.portal.business.file.File file, ChangeAuthor author, AttributeCertificate certificate)
Identity - identitystrKey - The key to setstrValue - The valuefile - file to upload, null if attribute type is not fileauthor - The author of the changecertificate - The certificate. May be nullCopyright © 2016 City of Paris. All rights reserved.