public final class IdentityDAO extends Object implements IIdentityDAO
BEAN_NAME
Constructor and Description |
---|
IdentityDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Identity identity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Identity |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
String |
newCustomerIdKey()
Generates a new customerId key using Java UUID
|
List<Identity> |
selectAllByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities by connection ID.
|
List<Identity> |
selectAllByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities by customer ID.
|
List<Identity> |
selectByAllAttributesValue(String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities matching the query on all Attributes, connection_id and customer_id fields..
|
List<Identity> |
selectByAttributeValue(String strAttributeId,
String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by a given Attribute value
|
Identity |
selectByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by connection ID
|
Identity |
selectByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by customer ID
|
List<String> |
selectCustomerIdsList(int nStart,
int nLimit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of nLimit customerIds from the nStart identity and returns them as a list
|
List<String> |
selectCustomerIdsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the customer id of all the identity objects and returns them as a list
|
int |
selectIdByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find an identity ID from the specified connection ID
|
fr.paris.lutece.util.ReferenceList |
selectIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the identity objects and returns them as a referenceList
|
void |
store(Identity identity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public String newCustomerIdKey()
public void insert(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IIdentityDAO
identity
- instance of the Identity object to insertplugin
- the Pluginpublic Identity load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IIdentityDAO
nKey
- The identifier of the identityplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IIdentityDAO
nKey
- The identifier of the Identity to deleteplugin
- the Pluginpublic void store(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IIdentityDAO
identity
- the reference of the Identityplugin
- the Pluginpublic List<String> selectCustomerIdsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCustomerIdsList
in interface IIdentityDAO
plugin
- the Pluginpublic List<String> selectCustomerIdsList(int nStart, int nLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCustomerIdsList
in interface IIdentityDAO
nStart
- the count of customerId from where startednLimit
- the max count of customerId to retrieveplugin
- the Pluginpublic fr.paris.lutece.util.ReferenceList selectIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdentitysReferenceList
in interface IIdentityDAO
plugin
- the Pluginpublic Identity selectByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAO
selectByConnectionId
in interface IIdentityDAO
strConnectionId
- The connection IDplugin
- The pluginpublic Identity selectByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAO
selectByCustomerId
in interface IIdentityDAO
strCustomerId
- The customerIDplugin
- The pluginpublic int selectIdByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAO
selectIdByConnectionId
in interface IIdentityDAO
strConnectionId
- the connection IDplugin
- the pluginpublic List<Identity> selectByAttributeValue(String strAttributeId, String strAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByAttributeValue
in interface IIdentityDAO
strAttributeId
- The value to matchstrAttributeValue
- The value to matchplugin
- The pluginpublic List<Identity> selectByAllAttributesValue(String strAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByAllAttributesValue
in interface IIdentityDAO
strAttributeValue
- The value to matchplugin
- The pluginpublic List<Identity> selectAllByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAllByCustomerId
in interface IIdentityDAO
strCustomerId
- The customer IDplugin
- The pluginpublic List<Identity> selectAllByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAllByConnectionId
in interface IIdentityDAO
strConnectionId
- The connection IDplugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.