|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.profiles.service.views.ViewsService
public class ViewsService
ViewService
Constructor Summary | |
---|---|
ViewsService()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewsService()
Method Detail |
---|
public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ViewFilter vFilter, View view, fr.paris.lutece.util.url.UrlItem url)
getItemNavigator
in interface IViewsService
vFilter
- the view filterview
- the viewurl
- the url
public 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 IViewsService
user
- the current userview
- the viewstrPermission
- the permission namelocale
- Localeplugin
- Plugin
public 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 IViewsService
strViewKey
- the view keyuser
- the current userplugin
- Plugin
public 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 IViewsService
strViewKey
- the view keyuser
- the admin userplugin
- Plugin
public Map<String,fr.paris.lutece.util.ReferenceList> getMapAvailableOrders(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMapAvailableOrders
in interface IViewsService
plugin
- Plugin
public fr.paris.lutece.util.ReferenceList getListAvailableOrders(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListAvailableOrders
in interface IViewsService
nColumn
- columnplugin
- Plugin
public fr.paris.lutece.util.ReferenceList getListAvailableColumns()
getListAvailableColumns
in interface IViewsService
public 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 IViewsService
dashboard
- 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 IViewsService
strViewKey
- the view keynColumn
- the column idplugin
- the plugins
public void doReorderColumn(String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
doReorderColumn
in interface IViewsService
strViewKey
- 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 IViewsService
strViewKey
- the view keyplugin
- the plugin
public View create(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create
in interface IViewsService
view
- The instance of the View which contains the informations to storeplugin
- Plugin
public View update(View view, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IViewsService
view
- The instance of the view which contains the new data to storeplugin
- Plugin
public void remove(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IViewsService
strViewKey
- The View object to removeplugin
- Pluginpublic View findByPrimaryKey(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IViewsService
strViewKey
- The key of the Viewplugin
- Plugin
public List<View> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IViewsService
plugin
- Plugin
public List<View> findViewsByFilter(ViewFilter vFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findViewsByFilter
in interface IViewsService
vFilter
- the Filterplugin
- Plugin
public boolean checkExistView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistView
in interface IViewsService
strViewKey
- The view keyplugin
- Plugin
public fr.paris.lutece.util.ReferenceList getViewsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getViewsList
in interface IViewsService
plugin
- Plugin
public List<Profile> getProfilesListForView(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfilesListForView
in interface IViewsService
strViewKey
- The view Keyplugin
- Plugin
public View findViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findViewForProfile
in interface IViewsService
strProfileKey
- the profile keyplugin
- Plugin
public boolean hasView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasView
in interface IViewsService
strProfileKey
- the profile keyplugin
- Plugin
public void addProfileForView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addProfileForView
in interface IViewsService
strViewKey
- The view KeystrProfileKey
- The profile Keyplugin
- Pluginpublic void removeProfiles(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfiles
in interface IViewsService
strViewKey
- The view Keyplugin
- Pluginpublic void removeProfileFromView(String strViewKey, String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfileFromView
in interface IViewsService
strViewKey
- 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 IViewsService
strViewKey
- the view keyplugin
- Plugin
IDashboardComponent
public fr.paris.lutece.portal.service.dashboard.IDashboardComponent findDashboard(String strDashboardName, String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findDashboard
in interface IViewsService
strDashboardName
- the dashboard namestrViewKey
- the view keyplugin
- Plugin
public void createDashboard(String strViewKey, fr.paris.lutece.portal.service.dashboard.IDashboardComponent dashboard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
createDashboard
in interface IViewsService
strViewKey
- the view keydashboard
- the dashboardplugin
- Pluginpublic void removeDashboards(String strViewKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeDashboards
in interface IViewsService
strViewKey
- the view keyplugin
- Pluginpublic void removeDashboard(String strViewKey, String strDashboardName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeDashboard
in interface IViewsService
strViewKey
- 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 IViewsService
strViewKey
- 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 IViewsService
filter
- the filterstrViewKey
- the view keyplugin
- Plugin
public int findMaxOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findMaxOrder
in interface IViewsService
plugin
- Plugin
public int findMaxOrder(int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findMaxOrder
in interface IViewsService
nColumn
- the columnplugin
- Plugin
public List<Integer> findColumns(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findColumns
in interface IViewsService
plugin
- Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |