Interface IViewDAO

  • All Known Implementing Classes:
    ViewDAO

    public interface IViewDAO
    IViewDAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkExistView​(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a view already exists or not
      void delete​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a view from the table
      void deleteDashboard​(java.lang.String strViewKey, java.lang.String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a dashboard of a view
      void deleteDashboards​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete all dashboards of a view
      void deleteProfileFromView​(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove profile from a view
      void deleteProfiles​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a profile from a view
      fr.paris.lutece.util.ReferenceList getViewsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of views
      boolean hasView​(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if the given profile has a view or not
      void insert​(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      void insertDashboard​(java.lang.String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a dashboard for a view
      void insertProfileForView​(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add a profile for a view
      View load​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of view from the table
      java.util.List<java.lang.Integer> selectColumns​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the columns list
      fr.paris.lutece.portal.service.dashboard.IDashboardComponent selectDashboard​(java.lang.String strDashboardName, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the dashboard
      java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboards​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of dashboards from a given view key
      java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboardsByFilter​(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Finds all dashboard components matching filter
      int selectMaxOrder​(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the max order value, for the given column
      int selectMaxOrder​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the max order value, for all columns
      java.util.List<Profile> selectProfilesListForView​(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of profiles associated to the view
      View selectViewForProfile​(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the view from a profile
      java.util.List<View> selectViewsByFilter​(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find view by filter
      java.util.List<View> selectViewsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of views
      void store​(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record identified by the given view key with the given view in the table
      void storeDashboard​(java.lang.String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update a dashboard
    • Method Detail

      • delete

        void delete​(java.lang.String strViewKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a view from the table
        Parameters:
        strViewKey - The view key
        plugin - Plugin
      • insert

        void insert​(View view,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        view - The view object
        plugin - Plugin
      • load

        View load​(java.lang.String strViewKey,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of view from the table
        Parameters:
        strViewKey - The view key
        plugin - Plugin
        Returns:
        the instance of the view
      • selectViewsList

        java.util.List<View> selectViewsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the list of views
        Parameters:
        plugin - Plugin
        Returns:
        The List of the views
      • store

        void store​(View view,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record identified by the given view key with the given view in the table
        Parameters:
        view - The reference of view to be the new one
        plugin - Plugin
      • selectViewsByFilter

        java.util.List<View> selectViewsByFilter​(ViewFilter vFilter,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find view by filter
        Parameters:
        vFilter - the Filter
        plugin - Plugin
        Returns:
        List of views
      • checkExistView

        boolean checkExistView​(java.lang.String strKey,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Check if a view already exists or not
        Parameters:
        strKey - The view key
        plugin - Plugin
        Returns:
        true if it already exists, false otherwise
      • getViewsList

        fr.paris.lutece.util.ReferenceList getViewsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of views
        Parameters:
        plugin - Plugin
        Returns:
        the list of views
      • selectProfilesListForView

        java.util.List<Profile> selectProfilesListForView​(java.lang.String strViewKey,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of profiles associated to the view
        Parameters:
        strViewKey - The view Key
        plugin - Plugin
        Returns:
        The list of users
      • selectViewForProfile

        View selectViewForProfile​(java.lang.String strProfileKey,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the view from a profile
        Parameters:
        strProfileKey - the profile key
        plugin - Plugin
        Returns:
        the view associated to the profile
      • hasView

        boolean hasView​(java.lang.String strProfileKey,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Check if the given profile has a view or not
        Parameters:
        strProfileKey - the profile key
        plugin - Plugin
        Returns:
        true if the profile has the view, false otherwise
      • insertProfileForView

        void insertProfileForView​(java.lang.String strViewKey,
                                  java.lang.String strProfileKey,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Add a profile for a view
        Parameters:
        strViewKey - The view Key
        strProfileKey - The profile Key
        plugin - Plugin
      • deleteProfiles

        void deleteProfiles​(java.lang.String strViewKey,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove a profile from a view
        Parameters:
        strViewKey - The view Key
        plugin - Plugin
      • deleteProfileFromView

        void deleteProfileFromView​(java.lang.String strViewKey,
                                   java.lang.String strProfileKey,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Remove profile from a view
        Parameters:
        strViewKey - the view key
        strProfileKey - the profile key
        plugin - Plugin
      • selectDashboards

        java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboards​(java.lang.String strViewKey,
                                                                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the list of dashboards from a given view key
        Parameters:
        strViewKey - the view key
        plugin - Plugin
        Returns:
        a list of IDashboardComponent
      • selectDashboard

        fr.paris.lutece.portal.service.dashboard.IDashboardComponent selectDashboard​(java.lang.String strDashboardName,
                                                                                     java.lang.String strViewKey,
                                                                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the dashboard
        Parameters:
        strDashboardName - the dashboard name
        strViewKey - the view key
        plugin - Plugin
        Returns:
        the dashboard
      • insertDashboard

        void insertDashboard​(java.lang.String strViewKey,
                             fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a dashboard for a view
        Parameters:
        strViewKey - the view key
        dashboard - the dashboard
        plugin - Plugin
      • deleteDashboards

        void deleteDashboards​(java.lang.String strViewKey,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete all dashboards of a view
        Parameters:
        strViewKey - the view key
        plugin - Plugin
      • deleteDashboard

        void deleteDashboard​(java.lang.String strViewKey,
                             java.lang.String strDashboardName,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a dashboard of a view
        Parameters:
        strViewKey - the view key
        strDashboardName - the dashboard name
        plugin - Plugin
      • storeDashboard

        void storeDashboard​(java.lang.String strViewKey,
                            fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update a dashboard
        Parameters:
        strViewKey - the view key
        dashboard - the dashboard
        plugin - Plugin
      • selectMaxOrder

        int selectMaxOrder​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns the max order value, for all columns
        Parameters:
        plugin - Plugin
        Returns:
        the max order
      • selectMaxOrder

        int selectMaxOrder​(int nColumn,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns the max order value, for the given column
        Parameters:
        nColumn - the column
        plugin - Plugin
        Returns:
        the max order
      • selectColumns

        java.util.List<java.lang.Integer> selectColumns​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns the columns list
        Parameters:
        plugin - Plugin
        Returns:
        the columns list
      • selectDashboardsByFilter

        java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboardsByFilter​(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter,
                                                                                                              java.lang.String strViewKey,
                                                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Finds all dashboard components matching filter
        Parameters:
        filter - the filter
        strViewKey - the view key
        plugin - Plugin
        Returns:
        all dashboard components matching filter