Interface HistoryManager

  • All Known Implementing Classes:
    BundleContextHistoryManager

    public interface HistoryManager
    Common interface to handle the user's history.
    • Method Detail

      • applyHistory

        void applyHistory​(String fragment,
                          GraphContainer container)
        Restores the given history represented by fragementId. The GraphContainer represents the user's state, which does not require the userId.
        Parameters:
        fragment - The history fragment (history hash)
        container - The GraphContainer needed to actually apply the history.
      • getHistoryFragment

        String getHistoryFragment​(String userId)
      • getHistoryByFragment

        SavedHistory getHistoryByFragment​(String fragment)
        Returns the history object for the provided fragment.
      • getHistoryByUserId

        SavedHistory getHistoryByUserId​(String userId)
        Returns the history object for the provided userId.
      • deleteHistory

        void deleteHistory()
        Deletes the history for all users.