Interface UserAdminHistoryManager

All Known Implementing Classes:
DefaultUserAdminHistoryManager

public interface UserAdminHistoryManager
A wrapper of the UserHistoryManager that allows you to deal directly with Admin pages
Since:
v4.1
  • Field Details

    • DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS

      static final int DEFAULT_ADMIN_HISTORY_DROPDOWN_ITEMS
      See Also:
  • Method Details

    • addAdminPageToHistory

      void addAdminPageToHistory(ApplicationUser user, String key, String data)
      Add an admin page to the user history list. A null users history should still be stored, even if only for duration of session
      Parameters:
      user - The user to add the history item to
      key - The link id of the admin page to add to history
      data - The url of the link (for breaking ties between sections)
    • getAdminPageHistoryWithoutPermissionChecks

      @Nonnull List<UserHistoryItem> getAdminPageHistoryWithoutPermissionChecks(ApplicationUser user)
      Retreive the user's admin page history queue. The list is returned ordered by DESC lastViewed date (i.e. newest is first). This method performs no permission checks. And is extremely fast. Admin pages don't have permissions per se, and depend on the WebItemModuleDescriptor rendering the page link to decide permissions
      Parameters:
      user - The user to get the history admin page items for.
      Returns:
      a list of history admin page items sort by desc lastViewed date.