Class AdminDashboardService
java.lang.Object
fr.paris.lutece.portal.service.dashboard.admin.AdminDashboardService
AdminDashboardService
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoMoveDashboard(IAdminDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate) Moves the dashboard.voiddoReorderColumn(int nColumn) Reorders column's dashboardgetAdminDashboardComponents(int nColumn) All known dashboards as declared in SpringContextFinds all dashboard with column and order set.intReturns the column count, withPROPERTY_COLUMN_COUNT.getDashboardData(AdminUser user, int nColumn, javax.servlet.http.HttpServletRequest request) Gets Data from all components of the zonestatic AdminDashboardServiceReturn the unique instanceReturns all dashboards with no column/order setBuilds the map to with column id as key, andtrueas value if column is well ordered,falseotherwise.voidregisterDashboardComponent(DashboardComponentEntry entry, Plugin plugin) Register a Dashboard Component
-
Method Details
-
getInstance
Return the unique instance- Returns:
- The instance
-
getColumnCount
public int getColumnCount()Returns the column count, withPROPERTY_COLUMN_COUNT. Default isCONSTANTE_DEFAULT_COLUMN_COUNT- Returns:
- the column count
-
getAllAdminDashboardComponents
All known dashboards as declared in SpringContext- Returns:
- dashboards list
-
getAdminDashboardComponents
- Parameters:
nColumn- the column id- Returns:
- all dashboards for this column
-
registerDashboardComponent
Register a Dashboard Component- Parameters:
entry- The DashboardComponent entry defined in the plugin's XML fileplugin- The plugin
-
doMoveDashboard
public void doMoveDashboard(IAdminDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate) Moves the dashboard.- Parameters:
dashboard- to move, with new valuesnOldColumn- previous column idnOldOrder- previous orderbCreate-trueif this is a new dashboard,falseotherwise.
-
getNotSetDashboards
Returns all dashboards with no column/order set- Returns:
- all dashboards with no column/order set
-
getAllSetDashboards
Finds all dashboard with column and order set.- Returns:
- a map where key is the column id, and value is the column's dashboard list.
-
getDashboardData
public String getDashboardData(AdminUser user, int nColumn, javax.servlet.http.HttpServletRequest request) Gets Data from all components of the zone- Parameters:
user- The usernColumn- The dasboard columnrequest- HttpServletRequest- Returns:
- Data of all components of the zone
-
doReorderColumn
public void doReorderColumn(int nColumn) Reorders column's dashboard- Parameters:
nColumn- the column to reorder
-
getOrderedColumnsStatus
Builds the map to with column id as key, andtrueas value if column is well ordered,falseotherwise.- Returns:
- the map
-