public final class IdentityAttributeDAO extends Object implements IIdentityAttributeDAO
BEAN_NAME
Constructor and Description |
---|
IdentityAttributeDAO() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeChangeHistory(AttributeChange attributeChange,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
add an historical change attribute entry
|
void |
delete(int nIdentityId,
int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteAllAttributes(int nIdentityId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all attributes matching the provided identityId
|
List<AttributeChange> |
getAttributeChangeHistory(int nIdentityId,
String strAttributeKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return list of attribute change history for an identity attribute from the newest to the latest change
|
int |
getLastIdHistory(String strConnectionId,
String strCertifierCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return last id of history change for a given connection_id and certifier_name USE for gru_certifier id generation
|
void |
insert(IdentityAttribute identityAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
IdentityAttribute |
load(int nIdentityId,
int nAttributeId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
IdentityAttribute |
selectAttribute(int nIdentityId,
String strAttributeKey,
String strApplicationCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of an attribute for a given identity ID and attribute key which is allowed for the client application provided
|
Map<String,IdentityAttribute> |
selectAttributes(int nIdentityId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the identityAttribute objects and returns them as a list
|
Map<String,IdentityAttribute> |
selectAttributes(int nIdentityId,
String strApplicationCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all attributes for a given identity ID which are alowed for the client application provided
|
fr.paris.lutece.util.ReferenceList |
selectIdentityAttributesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the identityAttribute objects and returns them as a referenceList
|
void |
store(IdentityAttribute identityAttribute,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IIdentityAttributeDAO
identityAttribute
- instance of the IdentityAttribute object to insertplugin
- the Pluginpublic IdentityAttribute load(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IIdentityAttributeDAO
nIdentityId
- The identity IDnAttributeId
- The Attribute IDplugin
- the Pluginpublic void delete(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IIdentityAttributeDAO
nIdentityId
- The identity IDnAttributeId
- The Attribute IDplugin
- the Pluginpublic void store(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IIdentityAttributeDAO
identityAttribute
- the reference of the IdentityAttributeplugin
- the Pluginpublic Map<String,IdentityAttribute> selectAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributes
in interface IIdentityAttributeDAO
nIdentityId
- The Identity IDplugin
- the Pluginpublic Map<String,IdentityAttribute> selectAttributes(int nIdentityId, String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttributes
in interface IIdentityAttributeDAO
nIdentityId
- The identity IDstrApplicationCode
- code of client applicationplugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectIdentityAttributesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdentityAttributesReferenceList
in interface IIdentityAttributeDAO
plugin
- the Pluginpublic IdentityAttribute selectAttribute(int nIdentityId, String strAttributeKey, String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAttribute
in interface IIdentityAttributeDAO
nIdentityId
- The identity IDstrAttributeKey
- attribute keystrApplicationCode
- code of client applicationplugin
- the Pluginpublic void deleteAllAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityAttributeDAO
deleteAllAttributes
in interface IIdentityAttributeDAO
nIdentityId
- The identity IDplugin
- the Pluginpublic void addAttributeChangeHistory(AttributeChange attributeChange, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityAttributeDAO
addAttributeChangeHistory
in interface IIdentityAttributeDAO
attributeChange
- attribute change desc objectplugin
- the Pluginpublic List<AttributeChange> getAttributeChangeHistory(int nIdentityId, String strAttributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityAttributeDAO
getAttributeChangeHistory
in interface IIdentityAttributeDAO
nIdentityId
- identityIdstrAttributeKey
- attributeKeyplugin
- pluginpublic int getLastIdHistory(String strConnectionId, String strCertifierCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getLastIdHistory
in interface IIdentityAttributeDAO
strConnectionId
- connection id of the identitystrCertifierCode
- code of the certifierplugin
- pluginCopyright © 2019 City of Paris. All rights reserved.