Class IdentityAttributeDAO
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.identity.IdentityAttributeDAO
- All Implemented Interfaces:
IIdentityAttributeDAO
This class provides Data Access methods for IdentityAttribute objects
-
Field Summary
Fields inherited from interface fr.paris.lutece.plugins.identitystore.business.identity.IIdentityAttributeDAO
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange, fr.paris.lutece.portal.service.plugin.Plugin plugin) add an historical change attribute entryvoiddelete(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteAllAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all attributes matching the provided identityIdfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChangegetAttributeChange(fr.paris.lutece.util.sql.DAOUtil daoUtil) List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>getAttributeChangeHistory(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) return list of attribute change history for an identity attribute from the newest to the latest changeList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>getAttributeChangeHistory(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) return list of attribute change history for an identity attribute from the newest to the latest changegetIdentityAttribute(fr.paris.lutece.util.sql.DAOUtil daoUtil) voidinsert(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.selectAllAttributesByIdentityList(List<Identity> listIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of a selection of attributes for a list of identityselectAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the identityAttribute objects and returns them as a listvoidstore(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
IdentityAttributeDAO
public IdentityAttributeDAO()
-
-
Method Details
-
insert
public void insert(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIIdentityAttributeDAO- Parameters:
identityAttribute- instance of the IdentityAttribute object to insertplugin- the Plugin
-
delete
public void delete(int nIdentityId, int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIIdentityAttributeDAO- Parameters:
nIdentityId- The identity IDnAttributeId- The Attribute IDplugin- the Plugin
-
store
public void store(IdentityAttribute identityAttribute, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceIIdentityAttributeDAO- Parameters:
identityAttribute- the reference of the IdentityAttributeplugin- the Plugin
-
selectAttributes
public 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- Specified by:
selectAttributesin interfaceIIdentityAttributeDAO- Parameters:
nIdentityId- The Identity IDplugin- the Plugin- Returns:
- The map which contains the data of all the identityAttribute objects
-
selectAllAttributesByIdentityList
public List<IdentityAttribute> selectAllAttributesByIdentityList(List<Identity> listIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of a selection of attributes for a list of identity- Specified by:
selectAllAttributesByIdentityListin interfaceIIdentityAttributeDAO- Parameters:
listIdentity- The list of identityplugin- the Plugin- Returns:
- the list which contains the data of the identityAttribute objects
-
deleteAllAttributes
public void deleteAllAttributes(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IIdentityAttributeDAODelete all attributes matching the provided identityId- Specified by:
deleteAllAttributesin interfaceIIdentityAttributeDAO- Parameters:
nIdentityId- The identity IDplugin- the Plugin
-
addAttributeChangeHistory
public void addAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Description copied from interface:IIdentityAttributeDAOadd an historical change attribute entry- Specified by:
addAttributeChangeHistoryin interfaceIIdentityAttributeDAO- Parameters:
attributeChange- attribute change desc objectplugin- the Plugin- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getAttributeChangeHistory
public List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(int nIdentityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Description copied from interface:IIdentityAttributeDAOreturn list of attribute change history for an identity attribute from the newest to the latest change- Specified by:
getAttributeChangeHistoryin interfaceIIdentityAttributeDAO- Parameters:
nIdentityId- identityIdplugin- plugin- Returns:
- list of attribute change history for an identity attribute
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getAttributeChangeHistory
public List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Description copied from interface:IIdentityAttributeDAOreturn list of attribute change history for an identity attribute from the newest to the latest change- Specified by:
getAttributeChangeHistoryin interfaceIIdentityAttributeDAO- Parameters:
customerId- customerIdplugin- plugin- Returns:
- list of attribute change history for an identity attribute
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getIdentityAttribute
-
getAttributeChange
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange getAttributeChange(fr.paris.lutece.util.sql.DAOUtil daoUtil) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-