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)
          Get the dashboard component
static ProfilesService getInstance()
          Returns the instance of the singleton
 fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ProfileFilter pFilter, Profile profile, fr.paris.lutece.util.url.UrlItem url)
          Get the item navigator
 fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ViewFilter vFilter, View view, fr.paris.lutece.util.url.UrlItem url)
          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(ProfileFilter pFilter,
                                                                Profile profile,
                                                                fr.paris.lutece.util.url.UrlItem url)
Get the item navigator

Parameters:
pFilter - the profile filter
profile - the profile
url - the url
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(ViewFilter vFilter,
                                                                View view,
                                                                fr.paris.lutece.util.url.UrlItem url)
Get the item navigator

Parameters:
vFilter - the view filter
view - the view
url - the url
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
user - the admin user
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.
strViewKey - the view key
plugin - the plugin

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)
Get the dashboard component

Parameters:
strViewKey - the view key
nColumn - the column id
plugin - the plugins
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:
strViewKey - the view key
nColumn - the column to reorder
plugin - the plugin

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.

Parameters:
strViewKey - the view key
plugin - the plugin
Returns:
the map


Copyright © 2011 Mairie de Paris. All Rights Reserved.