Class AdminDashboardService

java.lang.Object
fr.paris.lutece.portal.service.dashboard.admin.AdminDashboardService

@ApplicationScoped public class AdminDashboardService extends Object
AdminDashboardService
  • Method Details

    • getInstance

      @Deprecated(since="8.0", forRemoval=true) public static AdminDashboardService getInstance()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use @Inject to obtain the AdminDashboardService instance. This method will be removed in future versions.
      Returns the unique instance of the AdminDashboardService service.

      This method is deprecated and is provided for backward compatibility only. For new code, use dependency injection with @Inject to obtain the AdminDashboardService instance instead.

      Returns:
      The unique instance of AdminDashboardService.
    • getColumnCount

      public int getColumnCount()
      Returns the column count, with PROPERTY_COLUMN_COUNT. Default is CONSTANTE_DEFAULT_COLUMN_COUNT
      Returns:
      the column count
    • getAllAdminDashboardComponents

      public List<IAdminDashboardComponent> getAllAdminDashboardComponents()
      All known dashboards as declared in SpringContext
      Returns:
      dashboards list
    • getAdminDashboardComponents

      public List<IAdminDashboardComponent> getAdminDashboardComponents(int nColumn)
      Parameters:
      nColumn - the column id
      Returns:
      all dashboards for this column
    • registerDashboardComponent

      public void registerDashboardComponent(DashboardComponentEntry entry, Plugin plugin)
      Register a Dashboard Component
      Parameters:
      entry - The DashboardComponent entry defined in the plugin's XML file
      plugin - The plugin
    • doMoveDashboard

      public void doMoveDashboard(IAdminDashboardComponent dashboard, int nOldColumn, int nOldOrder, boolean bCreate)
      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.
    • getNotSetDashboards

      public List<IAdminDashboardComponent> getNotSetDashboards()
      Returns all dashboards with no column/order set
      Returns:
      all dashboards with no column/order set
    • getAllSetDashboards

      public Map<String,List<IAdminDashboardComponent>> 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, jakarta.servlet.http.HttpServletRequest request)
      Gets Data from all components of the zone
      Parameters:
      user - The user
      nColumn - The dasboard column
      request - 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

      public Map<String,Boolean> getOrderedColumnsStatus()
      Builds the map to with column id as key, and true as value if column is well ordered, false otherwise.
      Returns:
      the map