Class ViewDAO
java.lang.Object
fr.paris.lutece.plugins.profiles.business.views.ViewDAO
- All Implemented Interfaces:
IViewDAO
ViewDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckExistView(String strViewKey, 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
-
Constructor Details
-
ViewDAO
public ViewDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
Load the data of view from the table -
delete
Delete a view from the table -
store
Update the record identified by the given view key with the given view in the table -
selectViewsList
Load the list of views- Specified by:
selectViewsListin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- The List of the views
-
selectViewsByFilter
public List<View> selectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find view by filter- Specified by:
selectViewsByFilterin interfaceIViewDAO- Parameters:
vFilter- the Filterplugin- Plugin- Returns:
- List of views
-
checkExistView
public boolean checkExistView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Check if a view already exists or not- Specified by:
checkExistViewin interfaceIViewDAO- Parameters:
strViewKey- The view keyplugin- Plugin- Returns:
- true if it already exists, false otherwise
-
getViewsList
public fr.paris.lutece.util.ReferenceList getViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of views- Specified by:
getViewsListin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- the list of views
-
selectProfilesListForView
public List<Profile> selectProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the list of profiles associated to the view- Specified by:
selectProfilesListForViewin interfaceIViewDAO- Parameters:
strViewKey- The view Keyplugin- Plugin- Returns:
- The list of users
-
selectViewForProfile
public View selectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the view from a profile- Specified by:
selectViewForProfilein interfaceIViewDAO- Parameters:
strProfileKey- the profile keyplugin- Plugin- Returns:
- the view associated to the profile
-
hasView
Check if the given profile has a view or not -
insertProfileForView
public void insertProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Add a profile for a view- Specified by:
insertProfileForViewin interfaceIViewDAO- Parameters:
strViewKey- The view KeystrProfileKey- The profile Keyplugin- Plugin
-
deleteProfiles
Remove a profile from a view- Specified by:
deleteProfilesin interfaceIViewDAO- Parameters:
strViewKey- The view Keyplugin- Plugin
-
deleteProfileFromView
public void deleteProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove profile from a view- Specified by:
deleteProfileFromViewin interfaceIViewDAO- Parameters:
strViewKey- the view keystrProfileKey- the profile keyplugin- Plugin
-
selectDashboards
public 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- Specified by:
selectDashboardsin interfaceIViewDAO- Parameters:
strViewKey- the view keyplugin- Plugin- Returns:
- a list of
IDashboardComponent
-
selectDashboard
public fr.paris.lutece.portal.service.dashboard.IDashboardComponent selectDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the dashboard- Specified by:
selectDashboardin interfaceIViewDAO- Parameters:
strDashboardName- the dashboard namestrViewKey- the view keyplugin- Plugin- Returns:
- the dashboard
-
deleteDashboard
public void deleteDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a dashboard of a view- Specified by:
deleteDashboardin interfaceIViewDAO- Parameters:
strViewKey- the view keystrDashboardName- the dashboard nameplugin- Plugin
-
deleteDashboards
public void deleteDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all dashboards of a view- Specified by:
deleteDashboardsin interfaceIViewDAO- Parameters:
strViewKey- the view keyplugin- Plugin
-
insertDashboard
public 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- Specified by:
insertDashboardin interfaceIViewDAO- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
storeDashboard
public void storeDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update a dashboard- Specified by:
storeDashboardin interfaceIViewDAO- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
selectMaxOrder
public int selectMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the max order value, for all columns- Specified by:
selectMaxOrderin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- the max order
-
selectMaxOrder
public int selectMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the max order value, for the given column- Specified by:
selectMaxOrderin interfaceIViewDAO- Parameters:
nColumn- the columnplugin- Plugin- Returns:
- the max order
-
selectColumns
Returns the columns list- Specified by:
selectColumnsin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- the columns list
-
selectDashboardsByFilter
public 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- Specified by:
selectDashboardsByFilterin interfaceIViewDAO- Parameters:
filter- the filterstrViewKey- the view keyplugin- Plugin- Returns:
- all dashboard components matching filter
-