public final class AdminDashboardService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
doMoveDashboard(IAdminDashboardComponent dashboard,
int nOldColumn,
int nOldOrder,
boolean bCreate)
Moves the dashboard.
|
void |
doReorderColumn(int nColumn)
Reorders column's dashboard
|
List<IAdminDashboardComponent> |
getAdminDashboardComponents(int nColumn) |
List<IAdminDashboardComponent> |
getAllAdminDashboardComponents()
All known dashboards as declared in SpringContext
|
Map<String,List<IAdminDashboardComponent>> |
getAllSetDashboards()
Finds all dashboard with column and order set.
|
int |
getColumnCount()
Returns the column count, with
PROPERTY_COLUMN_COUNT. |
String |
getDashboardData(AdminUser user,
int nColumn,
javax.servlet.http.HttpServletRequest request)
Gets Data from all components of the zone
|
static AdminDashboardService |
getInstance()
Return the unique instance
|
List<IAdminDashboardComponent> |
getNotSetDashboards()
Returns all dashboards with no column/order set
|
Map<String,Boolean> |
getOrderedColumnsStatus()
Builds the map to with column id as key, and
true as value if column is well ordered, false otherwise. |
void |
registerDashboardComponent(DashboardComponentEntry entry,
Plugin plugin)
Register a Dashboard Component
|
public static AdminDashboardService getInstance()
public int getColumnCount()
PROPERTY_COLUMN_COUNT. Default is
CONSTANTE_DEFAULT_COLUMN_COUNTpublic List<IAdminDashboardComponent> getAllAdminDashboardComponents()
public List<IAdminDashboardComponent> getAdminDashboardComponents(int nColumn)
nColumn - the column idpublic void registerDashboardComponent(DashboardComponentEntry entry, Plugin plugin)
entry - The DashboardComponent entry defined in the plugin's XML fileplugin - The pluginpublic void doMoveDashboard(IAdminDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate)
dashboard - to move, with new valuesnOldColumn - previous column idnOldOrder - previous orderbCreate - true if this is a new dashboard, false otherwise.public List<IAdminDashboardComponent> getNotSetDashboards()
public Map<String,List<IAdminDashboardComponent>> getAllSetDashboards()
public String getDashboardData(AdminUser user, int nColumn, javax.servlet.http.HttpServletRequest request)
user - The usernColumn - The dasboard columnrequest - HttpServletRequestpublic void doReorderColumn(int nColumn)
nColumn - the column to reorderCopyright © 2020 City of Paris. All rights reserved.