fr.paris.lutece.plugins.profiles.service
Class ProfilesService

java.lang.Object
  extended by fr.paris.lutece.plugins.profiles.service.ProfilesService

public class ProfilesService
extends java.lang.Object

ProfilesService


Constructor Summary
ProfilesService()
           
 
Method Summary
 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.
 void doReorderColumn(java.lang.String strViewKey, int nColumn, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Reorders column's dashboard
 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
 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)
           
static ProfilesService getInstance()
          Returns the instance of the singleton
 fr.paris.lutece.util.html.ItemNavigator getItemNavigator(Profile profile, fr.paris.lutece.util.url.UrlItem url, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the item navigator
 fr.paris.lutece.util.html.ItemNavigator getItemNavigator(View view, fr.paris.lutece.util.url.UrlItem url, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the item navigator
 java.util.List<ProfileAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user, Profile profile, java.lang.String strPermission, java.util.Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of actions
 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
 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
 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
 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
 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, and true as value if column is well ordered, false otherwise.
 void init()
          Initialize the profiles service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfilesService

public ProfilesService()
Method Detail

init

public void init()
Initialize the profiles service


getInstance

public static ProfilesService getInstance()
Returns the instance of the singleton

Returns:
The instance of the singleton

getItemNavigator

public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(Profile profile,
                                                                fr.paris.lutece.util.url.UrlItem url,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the item navigator

Parameters:
profile - the profile
url - the url
plugin - Plugin
Returns:
the item navigator

getListActions

public java.util.List<ProfileAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user,
                                                    Profile profile,
                                                    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 user
profile - the profile
strPermission - the permission name
locale - Locale
plugin - Plugin
Returns:
the list of actions

getItemNavigator

public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(View view,
                                                                fr.paris.lutece.util.url.UrlItem url,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the item navigator

Parameters:
view - the view
url - the url
plugin - Plugin
Returns:
the item navigator

getListActions

public 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 user
view - the view
strPermission - the permission name
locale - Locale
plugin - Plugin
Returns:
the list of actions

getAllSetDashboards

public 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 key
user - the current user
plugin - Plugin
Returns:
the list of dashboards

getNotSetDashboards

public 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 key
plugin - Plugin
Returns:
the list of dashboards

getMapAvailableOrders

public 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

public 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 - column
plugin - Plugin
Returns:
the refList

getListAvailableColumns

public fr.paris.lutece.util.ReferenceList getListAvailableColumns()
Returns list with available column

Returns:
all available columns

doMoveDashboard

public 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 values
nOldColumn - previous column id
nOldOrder - previous order
bCreate - true if this is a new dashboard, false otherwise.

getDashboardComponents

public 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)
Parameters:
nColumn - the column id
Returns:
all dashboards for this column

doReorderColumn

public void doReorderColumn(java.lang.String strViewKey,
                            int nColumn,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Reorders column's dashboard

Parameters:
nColumn - the column to reorder

getOrderedColumnsStatus

public 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, and true as value if column is well ordered, false otherwise.

Returns:
the map


Copyright © 2011 Mairie de Paris. All Rights Reserved.