Interface IViewsService
-
- All Known Implementing Classes:
ViewsService
public interface IViewsServiceIViewsService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProfileForView(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Add a profile for a viewbooleancheckExistView(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a view already exists or notViewcreate(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of an instance of ViewvoidcreateDashboard(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 viewvoiddoMoveDashboard(fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Moves the dashboard.voiddoReorderColumn(java.lang.String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Reorders column's dashboardjava.util.List<View>findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a List of Views objectsViewfindByPrimaryKey(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns an instance of a profile whose identifier is specified in parameterjava.util.List<java.lang.Integer>findColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)Finds all columnsfr.paris.lutece.portal.service.dashboard.IDashboardComponentfindDashboard(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>findDashboards(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>findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of all the IDashboardComponentintfindMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Finds the max order for the column.intfindMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)Finds the max order for all columns.ViewfindViewForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the view from a profilejava.util.List<View>findViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find Views by filterjava.util.Map<java.lang.String,java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>>getAllSetDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of dashboards of the given viewjava.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>getDashboardComponents(java.lang.String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the dashboard componentfr.paris.lutece.util.html.ItemNavigatorgetItemNavigator(ViewFilter vFilter, View view, fr.paris.lutece.util.url.UrlItem url)Get the item navigatorjava.util.List<ViewAction>getListActions(fr.paris.lutece.portal.business.user.AdminUser user, View view, java.lang.String strPermission, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of actionsfr.paris.lutece.util.ReferenceListgetListAvailableColumns()Returns list with available columnfr.paris.lutece.util.ReferenceListgetListAvailableOrders(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Orders reference list for the given columnjava.util.Map<java.lang.String,fr.paris.lutece.util.ReferenceList>getMapAvailableOrders(fr.paris.lutece.portal.service.plugin.Plugin plugin)Builds all refList order for all columnsjava.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>getNotSetDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of dashboards that are not setjava.util.Map<java.lang.String,java.lang.Boolean>getOrderedColumnsStatus(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Builds the map to with column id as key, andtrueas value if column is well ordered,falseotherwise.java.util.List<Profile>getProfilesListForView(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of profiles associated to the 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 notvoidremove(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the View whose identifier is specified in parametervoidremoveDashboard(java.lang.String strViewKey, java.lang.String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a dashboard of a viewvoidremoveDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all dashboards of a viewvoidremoveProfileFromView(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a view from a profilevoidremoveProfiles(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a profile from a viewViewupdate(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update of the view which is specified in parametervoidupdateDashboard(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
-
getItemNavigator
fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ViewFilter vFilter, View view, fr.paris.lutece.util.url.UrlItem url)
Get the item navigator- Parameters:
vFilter- the view filterview- the viewurl- the url- Returns:
- the item navigator
-
getListActions
java.util.List<ViewAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user, View view, java.lang.String strPermission, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of actions- Parameters:
user- the current userview- the viewstrPermission- the permission namelocale- Localeplugin- Plugin- Returns:
- the list of actions
-
getAllSetDashboards
java.util.Map<java.lang.String,java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>> getAllSetDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of dashboards of the given view- Parameters:
strViewKey- the view keyuser- the current userplugin- Plugin- Returns:
- the list of dashboards
-
getNotSetDashboards
java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> getNotSetDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the list of dashboards that are not set- Parameters:
strViewKey- the view keyuser- the admin userplugin- Plugin- Returns:
- the list of dashboards
-
getMapAvailableOrders
java.util.Map<java.lang.String,fr.paris.lutece.util.ReferenceList> getMapAvailableOrders(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds all refList order for all columns- Parameters:
plugin- Plugin- Returns:
- the map with column id as key
-
getListAvailableOrders
fr.paris.lutece.util.ReferenceList getListAvailableOrders(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Orders reference list for the given column- Parameters:
nColumn- columnplugin- Plugin- Returns:
- the refList
-
getListAvailableColumns
fr.paris.lutece.util.ReferenceList getListAvailableColumns()
Returns list with available column- Returns:
- all available columns
-
doMoveDashboard
void doMoveDashboard(fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Moves the dashboard.- Parameters:
dashboard- to move, with new valuesnOldColumn- previous column idnOldOrder- previous orderbCreate-trueif this is a new dashboard,falseotherwise.strViewKey- the view keyplugin- the plugin
-
getDashboardComponents
java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> getDashboardComponents(java.lang.String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the dashboard component- Parameters:
strViewKey- the view keynColumn- the column idplugin- the plugins- Returns:
- all dashboards for this column
-
doReorderColumn
void doReorderColumn(java.lang.String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Reorders column's dashboard- Parameters:
strViewKey- the view keynColumn- the column to reorderplugin- the plugin
-
getOrderedColumnsStatus
java.util.Map<java.lang.String,java.lang.Boolean> getOrderedColumnsStatus(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Builds the map to with column id as key, andtrueas value if column is well ordered,falseotherwise.- Parameters:
strViewKey- the view keyplugin- the plugin- Returns:
- the map
-
create
View create(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of View- Parameters:
view- The instance of the View which contains the informations to storeplugin- Plugin- Returns:
- The instance of View which has been created with its primary key.
-
update
View update(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the view which is specified in parameter- Parameters:
view- The instance of the view which contains the new data to storeplugin- Plugin- Returns:
- The instance of the view which has been updated
-
remove
void remove(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove the View whose identifier is specified in parameter- Parameters:
strViewKey- The View object to removeplugin- Plugin
-
findByPrimaryKey
View findByPrimaryKey(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a profile whose identifier is specified in parameter- Parameters:
strViewKey- The key of the Viewplugin- Plugin- Returns:
- An instance of View
-
findAll
java.util.List<View> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a List of Views objects- Parameters:
plugin- Plugin- Returns:
- A List of Views
-
findViewsByFilter
java.util.List<View> findViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find Views by filter- Parameters:
vFilter- the Filterplugin- Plugin- Returns:
- List of Views
-
checkExistView
boolean checkExistView(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Check if a view already exists or not- Parameters:
strViewKey- 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
-
getProfilesListForView
java.util.List<Profile> getProfilesListForView(java.lang.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 profile
-
findViewForProfile
View findViewForProfile(java.lang.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(java.lang.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
-
addProfileForView
void addProfileForView(java.lang.String strViewKey, java.lang.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
-
removeProfiles
void removeProfiles(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a profile from a view- Parameters:
strViewKey- The view Keyplugin- Plugin
-
removeProfileFromView
void removeProfileFromView(java.lang.String strViewKey, java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Remove a view from a profile- Parameters:
strViewKey- the view keystrProfileKey- the profile keyplugin- Plugin
-
findDashboards
java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboards(java.lang.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
-
findDashboard
fr.paris.lutece.portal.service.dashboard.IDashboardComponent findDashboard(java.lang.String strDashboardName, java.lang.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
-
createDashboard
void createDashboard(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- Parameters:
strViewKey- the view keydashboard- the dashboardplugin- Plugin
-
removeDashboards
void removeDashboards(java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete all dashboards of a view- Parameters:
strViewKey- the view keyplugin- Plugin
-
removeDashboard
void removeDashboard(java.lang.String strViewKey, java.lang.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
-
updateDashboard
void updateDashboard(java.lang.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
-
findDashboardsByFilter
java.util.List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, java.lang.String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Loads the data of all the IDashboardComponent- Parameters:
filter- the filterstrViewKey- the view keyplugin- Plugin- Returns:
- the list which contains the data of all the IDashboardComponent
-
findMaxOrder
int findMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds the max order for all columns.- Parameters:
plugin- Plugin- Returns:
- the max order
-
findMaxOrder
int findMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)Finds the max order for the column.- Parameters:
nColumn- the columnplugin- Plugin- Returns:
- the max order
-
findColumns
java.util.List<java.lang.Integer> findColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all columns- Parameters:
plugin- Plugin- Returns:
- the list of columns
-
-