Interface ISiteDAO

  • All Known Implementing Classes:
    SiteDAO

    public interface ISiteDAO
    ISiteDAO Interface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Site load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      String searchDuplicateSite​(String siteName, String artifactId, String scmUrl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find if site is already exist
      List<Site> selectByCluster​(int nClusterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find all sites for a given cluster
      List<Integer> selectIdSitesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the site objects and returns them as a list
      List<Site> selectSitesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the site objects and returns them as a list
      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
      void store​(Site site, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • Method Detail

      • insert

        void insert​(Site site,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        site - instance of the Site object to insert
        plugin - the Plugin
      • store

        void store​(Site site,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        site - the reference of the Site
        plugin - 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 delete
        plugin - the Plugin
      • load

        Site load​(int nKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the site
        plugin - the Plugin
        Returns:
        The instance of the site
      • selectSitesList

        List<Site> selectSitesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        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

        List<Integer> selectIdSitesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        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

        List<Site> selectByCluster​(int nClusterId,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find all sites for a given cluster
        Parameters:
        nClusterId - The cluster ID
        plugin - 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 Name
        artifactId - The artifactId of the site
        scmurl - The site's scm url
        plugin - The plugin
        Returns:
        the cluster name which contains the existing site