Interface IViewDAO
-
- All Known Implementing Classes:
ViewDAO
public interface IViewDAOIViewDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckExistView(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a view already exists or notvoiddelete(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete 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 viewsbooleanhasView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if the given profile has a view or notvoidinsert(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert 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 viewViewload(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of view from the tableList<Integer>selectColumns(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 columnsList<Profile>selectProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of profiles associated to the viewViewselectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the view from a profileList<View>selectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find view by filterList<View>selectViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the list of viewsvoidstore(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 tablevoidstoreDashboard(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 keyplugin- 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 objectplugin- 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 keyplugin- 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 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
boolean checkExistView(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
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 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
void deleteProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
void deleteDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
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 filterstrViewKey- the view keyplugin- Plugin- Returns:
- all dashboard components matching filter
-
-