Interface ISiteDAO
- All Known Implementing Classes:
SiteDAO
public interface ISiteDAO
ISiteDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablesearchDuplicateSite(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find if site is already existselectByCluster(int nClusterId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all sites for a given clusterselectIdSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the site objects and returns them as a listselectSitesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the site objects and returns them as a listfr.paris.lutece.util.ReferenceListselectSitesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the site objects and returns them as a referenceListvoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
site- instance of the Site object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
site- the reference of the Siteplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Site to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the siteplugin- the Plugin- Returns:
- The instance of the site
-
selectSitesList
Load the data of all the site objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the site objects
-
selectIdSitesList
Load the id of all the site objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the site objects
-
selectSitesReferenceList
fr.paris.lutece.util.ReferenceList selectSitesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the site objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the site objects
-
selectByCluster
Find all sites for a given cluster- Parameters:
nClusterId- The cluster IDplugin- The plugin- Returns:
- the list which contains the data of all the site objects
-
searchDuplicateSite
String searchDuplicateSite(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find if site is already exist- Parameters:
siteName- The site NameartifactId- The artifactId of the sitescmurl- The site's scm urlplugin- The plugin- Returns:
- the cluster name which contains the existing site
-