public class ViewsService extends Object implements IViewsService
| Constructor and Description |
|---|
ViewsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProfileForView(String strViewKey,
String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a profile for a view
|
boolean |
checkExistView(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a view already exists or not
|
View |
create(View view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of View
|
void |
createDashboard(String strViewKey,
fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a dashboard for a view
|
void |
doMoveDashboard(fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
int nOldColumn,
int nOldOrder,
boolean bCreate,
String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Moves the dashboard.
|
void |
doReorderColumn(String strViewKey,
int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Reorders column's dashboard
|
List<View> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a List of Views objects
|
View |
findByPrimaryKey(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a profile whose identifier is specified in parameter
|
List<Integer> |
findColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all columns
|
fr.paris.lutece.portal.service.dashboard.IDashboardComponent |
findDashboard(String strDashboardName,
String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the dashboard
|
List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> |
findDashboards(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of dashboards from a given view key
|
List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> |
findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter,
String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the IDashboardComponent
|
int |
findMaxOrder(int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds the max order for the column.
|
int |
findMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds the max order for all columns.
|
View |
findViewForProfile(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the view from a profile
|
List<View> |
findViewsByFilter(ViewFilter vFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find Views by filter
|
Map<String,List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>> |
getAllSetDashboards(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
|
List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> |
getDashboardComponents(String strViewKey,
int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the dashboard component
|
fr.paris.lutece.util.html.ItemNavigator |
getItemNavigator(ViewFilter vFilter,
View view,
fr.paris.lutece.util.url.UrlItem url)
Get the item navigator
|
List<ViewAction> |
getListActions(fr.paris.lutece.portal.business.user.AdminUser user,
View view,
String strPermission,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of actions
|
fr.paris.lutece.util.ReferenceList |
getListAvailableColumns()
Returns list with available column
|
fr.paris.lutece.util.ReferenceList |
getListAvailableOrders(int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Orders reference list for the given column
|
Map<String,fr.paris.lutece.util.ReferenceList> |
getMapAvailableOrders(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds all refList order for all columns
|
List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> |
getNotSetDashboards(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
|
Map<String,Boolean> |
getOrderedColumnsStatus(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds the map to with column id as key, and
true as value if column is well ordered, false otherwise. |
List<Profile> |
getProfilesListForView(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of profiles associated to the view
|
fr.paris.lutece.util.ReferenceList |
getViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of Views
|
boolean |
hasView(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given profile has a view or not
|
void |
remove(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the View whose identifier is specified in parameter
|
void |
removeDashboard(String strViewKey,
String strDashboardName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a dashboard of a view
|
void |
removeDashboards(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all dashboards of a view
|
void |
removeProfileFromView(String strViewKey,
String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a view from a profile
|
void |
removeProfiles(String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a profile from a view
|
View |
update(View view,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the view which is specified in parameter
|
void |
updateDashboard(String strViewKey,
fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a dashboard
|
public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ViewFilter vFilter, View view, fr.paris.lutece.util.url.UrlItem url)
getItemNavigator in interface IViewsServicevFilter - the view filterview - the viewurl - the urlpublic List<ViewAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user, View view, String strPermission, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListActions in interface IViewsServiceuser - the current userview - the viewstrPermission - the permission namelocale - Localeplugin - Pluginpublic Map<String,List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent>> getAllSetDashboards(String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getAllSetDashboards in interface IViewsServicestrViewKey - the view keyuser - the current userplugin - Pluginpublic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> getNotSetDashboards(String strViewKey, fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNotSetDashboards in interface IViewsServicestrViewKey - the view keyuser - the admin userplugin - Pluginpublic Map<String,fr.paris.lutece.util.ReferenceList> getMapAvailableOrders(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMapAvailableOrders in interface IViewsServiceplugin - Pluginpublic fr.paris.lutece.util.ReferenceList getListAvailableOrders(int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListAvailableOrders in interface IViewsServicenColumn - columnplugin - Pluginpublic fr.paris.lutece.util.ReferenceList getListAvailableColumns()
getListAvailableColumns in interface IViewsServicepublic void doMoveDashboard(fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard,
int nOldColumn,
int nOldOrder,
boolean bCreate,
String strViewKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
doMoveDashboard in interface IViewsServicedashboard - to move, with new valuesnOldColumn - previous column idnOldOrder - previous orderbCreate - true if this is a new dashboard, false otherwise.strViewKey - the view keyplugin - the pluginpublic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> getDashboardComponents(String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDashboardComponents in interface IViewsServicestrViewKey - the view keynColumn - the column idplugin - the pluginspublic void doReorderColumn(String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
doReorderColumn in interface IViewsServicestrViewKey - the view keynColumn - the column to reorderplugin - the pluginpublic Map<String,Boolean> getOrderedColumnsStatus(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
true as value if column is well ordered, false otherwise.getOrderedColumnsStatus in interface IViewsServicestrViewKey - the view keyplugin - the pluginpublic View create(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IViewsServiceview - The instance of the View which contains the informations to storeplugin - Pluginpublic View update(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IViewsServiceview - The instance of the view which contains the new data to storeplugin - Pluginpublic void remove(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IViewsServicestrViewKey - The View object to removeplugin - Pluginpublic View findByPrimaryKey(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IViewsServicestrViewKey - The key of the Viewplugin - Pluginpublic List<View> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IViewsServiceplugin - Pluginpublic List<View> findViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findViewsByFilter in interface IViewsServicevFilter - the Filterplugin - Pluginpublic boolean checkExistView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistView in interface IViewsServicestrViewKey - The view keyplugin - Pluginpublic fr.paris.lutece.util.ReferenceList getViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getViewsList in interface IViewsServiceplugin - Pluginpublic List<Profile> getProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfilesListForView in interface IViewsServicestrViewKey - The view Keyplugin - Pluginpublic View findViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findViewForProfile in interface IViewsServicestrProfileKey - the profile keyplugin - Pluginpublic boolean hasView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasView in interface IViewsServicestrProfileKey - the profile keyplugin - Pluginpublic void addProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addProfileForView in interface IViewsServicestrViewKey - The view KeystrProfileKey - The profile Keyplugin - Pluginpublic void removeProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfiles in interface IViewsServicestrViewKey - The view Keyplugin - Pluginpublic void removeProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfileFromView in interface IViewsServicestrViewKey - the view keystrProfileKey - the profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDashboards in interface IViewsServicestrViewKey - the view keyplugin - PluginIDashboardComponentpublic fr.paris.lutece.portal.service.dashboard.IDashboardComponent findDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDashboard in interface IViewsServicestrDashboardName - the dashboard namestrViewKey - the view keyplugin - Pluginpublic void createDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createDashboard in interface IViewsServicestrViewKey - the view keydashboard - the dashboardplugin - Pluginpublic void removeDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeDashboards in interface IViewsServicestrViewKey - the view keyplugin - Pluginpublic void removeDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeDashboard in interface IViewsServicestrViewKey - the view keystrDashboardName - the dashboard nameplugin - Pluginpublic void updateDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateDashboard in interface IViewsServicestrViewKey - the view keydashboard - the dashboardplugin - Pluginpublic List<fr.paris.lutece.portal.service.dashboard.IDashboardComponent> findDashboardsByFilter(fr.paris.lutece.portal.business.dashboard.DashboardFilter filter, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDashboardsByFilter in interface IViewsServicefilter - the filterstrViewKey - the view keyplugin - Pluginpublic int findMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findMaxOrder in interface IViewsServiceplugin - Pluginpublic int findMaxOrder(int nColumn,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findMaxOrder in interface IViewsServicenColumn - the columnplugin - Pluginpublic List<Integer> findColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findColumns in interface IViewsServiceplugin - PluginCopyright © 2017 City of Paris. All rights reserved.