Class ClientApplicationDAO
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.application.ClientApplicationDAO
- All Implemented Interfaces:
IClientApplicationDAO
This class provides Data Access methods for ClientApplication objects
-
Field Summary
Fields inherited from interface fr.paris.lutece.plugins.identitystore.business.application.IClientApplicationDAO
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablegetClientApplications(String strCertifier, fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieve ClientApplication allowed for a given certifiervoidinsert(ClientApplication clientApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectByApplicationCode(String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectByClientCode(String strClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select a ClientApplication by its codeselectByContractId(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectClientApplicationList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the ClientApplication objects and returns them as a listfr.paris.lutece.util.ReferenceListselectClientApplicationReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the ClientApplication objects and returns them as a referenceListselectIdClientApplicationList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the ClientApplication objects and returns them as a listvoidstore(ClientApplication clientApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
ClientApplicationDAO
public ClientApplicationDAO()
-
-
Method Details
-
insert
public void insert(ClientApplication clientApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Specified by:
insertin interfaceIClientApplicationDAO- Parameters:
clientApplication- instance of the ClientApplication object to insertplugin- the Plugin
-
load
Load the data from the table- Specified by:
loadin interfaceIClientApplicationDAO- Parameters:
nKey- The identifier of the ClientApplicationplugin- the Plugin- Returns:
- The instance of the ClientApplication
-
selectByContractId
public ClientApplication selectByContractId(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
selectByContractIdin interfaceIClientApplicationDAO
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceIClientApplicationDAO- Parameters:
nKey- The identifier of the ClientApplication to deleteplugin- the Plugin
-
store
public void store(ClientApplication clientApplication, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceIClientApplicationDAO- Parameters:
clientApplication- the reference of the ClientApplicationplugin- the Plugin
-
selectClientApplicationList
public List<ClientApplication> selectClientApplicationList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the ClientApplication objects and returns them as a list- Specified by:
selectClientApplicationListin interfaceIClientApplicationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the ClientApplication objects
-
selectIdClientApplicationList
public List<Integer> selectIdClientApplicationList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the ClientApplication objects and returns them as a list- Specified by:
selectIdClientApplicationListin interfaceIClientApplicationDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the ClientApplication objects
-
selectClientApplicationReferenceList
public fr.paris.lutece.util.ReferenceList selectClientApplicationReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the ClientApplication objects and returns them as a referenceList- Specified by:
selectClientApplicationReferenceListin interfaceIClientApplicationDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the ClientApplication objects
-
selectByClientCode
public ClientApplication selectByClientCode(String strClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select a ClientApplication by its code- Specified by:
selectByClientCodein interfaceIClientApplicationDAO- Parameters:
strClientCode- The codeplugin- The plugin- Returns:
- The ClientApplication
-
getClientApplications
public List<ClientApplication> getClientApplications(String strCertifier, fr.paris.lutece.portal.service.plugin.Plugin plugin) Retrieve ClientApplication allowed for a given certifier- Specified by:
getClientApplicationsin interfaceIClientApplicationDAO- Parameters:
strCertifier- The identifier of the certifierplugin- The plugin- Returns:
- list of allowed ClientApplication
-
selectByApplicationCode
public List<ClientApplication> selectByApplicationCode(String strApplicationCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
selectByApplicationCodein interfaceIClientApplicationDAO
-