fr.paris.lutece.plugins.profiles.business.views
Interface IViewDAO

All Known Implementing Classes:
ViewDAO

public interface IViewDAO

IViewDAO


Method Summary
 boolean checkExistView(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if a view already exists or not
 void delete(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a view from the table
 void deleteDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a dashboard of a view
 void deleteDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all dashboards of a view
 void deleteProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove profile from a view
 void deleteProfiles(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(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(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(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Add a profile for a view
 View load(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of view from the table
 List<Integer> selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the columns list
 fr.paris.lutece.portal.service.dashboard.IDashboardComponent selectDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the dashboard
 List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of dashboards from a given view key
 List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, 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
 List<Profile> selectProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of profiles associated to the view
 View selectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the view from a profile
 List<View> selectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find view by filter
 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(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(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(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

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

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(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

List<Profile> selectProfilesListForView(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(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(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(String strViewKey,
                          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(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(String strViewKey,
                           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

List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboards(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(String strDashboardName,
                                                                             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(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(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(String strViewKey,
                     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(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

List<Integer> selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the columns list

Parameters:
plugin - Plugin
Returns:
the columns list

selectDashboardsByFilter

List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> selectDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter,
                                                                                            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


Copyright © 2013 Mairie de Paris. All Rights Reserved.