Class DashboardService

java.lang.Object
org.eblocker.server.http.service.DashboardService

@Deprecated public class DashboardService extends Object
Deprecated.
  • Constructor Details

    • DashboardService

      @Inject public DashboardService(DataSource dataSource)
      Deprecated.
  • Method Details

    • init

      public void init()
      Deprecated.
    • normalizeCustomPosition

      public DashboardCard normalizeCustomPosition(List<DashboardCard> cards, DashboardCard card)
      Deprecated.
      Either all cards need to have a custom position set for specific number of columns or none. We cannot have a mix of custom and default position usage, so that we do not assign too positions. This method fixes this issue for new cards, where the user may have already re-ordered the old ones. This would result in the new card not being shown in the UI (could be fixed in UI as well, but we should initially set and save a custom position, if required).
      Returns:
      a dashboard card. The custom position is set or null, if no card has a custom position set
    • generateDashboardCards

      public List<DashboardCard> generateDashboardCards()
      Deprecated.
    • generateIconCard

      public DashboardCard generateIconCard()
      Deprecated.
    • generateDnsStatisticsCard

      public DashboardCard generateDnsStatisticsCard()
      Deprecated.
      2 or 3 Columns: upper left 1 column: on top of statistics total card
    • generateFilterCard

      public DashboardCard generateFilterCard()
      Deprecated.
    • generateWhitelistDnsCard

      public DashboardCard generateWhitelistDnsCard()
      Deprecated.
    • generateEblockerMobileCard

      public DashboardCard generateEblockerMobileCard()
      Deprecated.
    • generateBlockerStatisticsTotalCard

      public DashboardCard generateBlockerStatisticsTotalCard()
      Deprecated.
      2 or 3 Columns: upper right 1 column: below statistics card
    • generateSearchCard

      public DashboardCard generateSearchCard()
      Deprecated.