Class ViewDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.profiles.business.views.ViewDAO
-
-
Constructor Summary
Constructors Constructor Description ViewDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckExistView(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a view already exists or notvoiddelete(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a view from the tablevoiddeleteDashboard(java.lang.String strViewKey, java.lang.String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a dashboard of a viewvoiddeleteDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all dashboards of a viewvoiddeleteProfileFromView(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove profile from a viewvoiddeleteProfiles(java.lang.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(java.lang.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(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 viewvoidinsertProfileForView(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Add a profile for a viewViewload(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of view from the tablejava.util.List<java.lang.Integer>selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the columns listfr.paris.lutece.portal.service.dashboard.IDashboardComponentselectDashboard(java.lang.String strDashboardName, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the dashboardjava.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 keyjava.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 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 columnsjava.util.List<Profile>selectProfilesListForView(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of profiles associated to the viewViewselectViewForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the view from a profilejava.util.List<View>selectViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find view by filterjava.util.List<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(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
-
insert
public void insert(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public View load(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of view from the table
-
delete
public void delete(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a view from the table
-
store
public 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
-
selectViewsList
public java.util.List<View> selectViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of views- Specified by:
selectViewsListin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- The List of the views
-
selectViewsByFilter
public java.util.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(java.lang.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 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- Specified by:
selectProfilesListForViewin interfaceIViewDAO- Parameters:
strViewKey- The view Keyplugin- Plugin- Returns:
- The list of users
-
selectViewForProfile
public View selectViewForProfile(java.lang.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
public boolean hasView(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if the given profile has a view or not
-
insertProfileForView
public void insertProfileForView(java.lang.String strViewKey, java.lang.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
public void deleteProfiles(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a profile from a view- Specified by:
deleteProfilesin interfaceIViewDAO- Parameters:
strViewKey- The view Keyplugin- Plugin
-
deleteProfileFromView
public void deleteProfileFromView(java.lang.String strViewKey, java.lang.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 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- 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(java.lang.String strDashboardName, java.lang.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(java.lang.String strViewKey, java.lang.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(java.lang.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(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- Specified by:
insertDashboardin interfaceIViewDAO- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
storeDashboard
public 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- 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
public java.util.List<java.lang.Integer> selectColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the columns list- Specified by:
selectColumnsin interfaceIViewDAO- Parameters:
plugin- Plugin- Returns:
- the columns list
-
selectDashboardsByFilter
public 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- Specified by:
selectDashboardsByFilterin interfaceIViewDAO- Parameters:
filter- the filterstrViewKey- the view keyplugin- Plugin- Returns:
- all dashboard components matching filter
-
-