Interface IViewDAO
- All Known Implementing Classes:
ViewDAO
public interface IViewDAO
IViewDAO
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheckExistView(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if a view already exists or notvoidDelete a view from the tablevoiddeleteDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a dashboard of a viewvoiddeleteDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all dashboards of a viewvoiddeleteProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove profile from a viewvoiddeleteProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove a profile from a viewfr.paris.lutece.util.ReferenceListgetViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of viewsbooleanCheck if the given profile has a view or notvoidInsert a new record in the table.voidinsertDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a dashboard for a viewvoidinsertProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Add a profile for a viewLoad the data of view from the tableselectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the columns listfr.paris.lutece.portal.service.dashboard.IDashboardComponentselectDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the dashboardList<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 keyList<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 filterintselectMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the max order value, for the given columnintselectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the max order value, for all columnsselectProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of profiles associated to the viewselectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the view from a profileselectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find view by filterselectViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the list of viewsvoidUpdate the record identified by the given view key with the given view in the tablevoidstoreDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a dashboard
-
Method Details
-
delete
Delete a view from the table- Parameters:
strViewKey- The view keyplugin- Plugin
-
insert
Insert a new record in the table.- Parameters:
view- The view objectplugin- Plugin
-
load
Load the data of view from the table- Parameters:
strViewKey- The view keyplugin- Plugin- Returns:
- the instance of the view
-
selectViewsList
Load the list of views- Parameters:
plugin- Plugin- Returns:
- The List of the views
-
store
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 oneplugin- Plugin
-
selectViewsByFilter
List<View> selectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find view by filter- Parameters:
vFilter- the Filterplugin- Plugin- Returns:
- List of views
-
checkExistView
Check if a view already exists or not- Parameters:
strKey- The view keyplugin- 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 Keyplugin- 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 keyplugin- Plugin- Returns:
- the view associated to the profile
-
hasView
Check if the given profile has a view or not- Parameters:
strProfileKey- the profile keyplugin- 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 KeystrProfileKey- The profile Keyplugin- Plugin
-
deleteProfiles
Remove a profile from a view- Parameters:
strViewKey- The view Keyplugin- 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 keystrProfileKey- the profile keyplugin- 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 keyplugin- 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 namestrViewKey- the view keyplugin- 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 keydashboard- the dashboardplugin- Plugin
-
deleteDashboards
Delete all dashboards of a view- Parameters:
strViewKey- the view keyplugin- 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 keystrDashboardName- the dashboard nameplugin- 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 keydashboard- the dashboardplugin- 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 columnplugin- Plugin- Returns:
- the max order
-
selectColumns
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 filterstrViewKey- the view keyplugin- Plugin- Returns:
- all dashboard components matching filter
-