Interface ContentIdCollector

All Known Implementing Classes:
DefaultContentIdCollector

public interface ContentIdCollector
Holder class for hashes of issue fields/opsbar groups and links/issue panels. Each issue field/opsbar link/issue panel is decorated by "contentId" hash value which is computed using all mutable/changeable properties of the item. Eg. for opsbar link it's: group id, link label, link href, link title, link css classes, link icon classes. Hashes stored here are used to implement "diff" behaviour when returning issue response on ajax call (eg. after updating issue). Returning diff limits the amount of data sent over the wire but requires some additional logic on the consumer side to merge previous state with obtained "diff". On the frontend side "diff" generated by the backend is merged with current data model residing in the browser's memory.
  • Method Details

    • calculateContentId

      String calculateContentId(String calculateFrom)
    • mustLoadAll

      boolean mustLoadAll()
    • getCurrentFieldContentId

      String getCurrentFieldContentId(String key)
    • getCurrentLinkContentId

      String getCurrentLinkContentId(String key)
    • getCurrentPanelContentId

      String getCurrentPanelContentId(String key)
    • getCurrentIssueContentId

      String getCurrentIssueContentId(String key)
    • getCurrentHeaderContentId

      String getCurrentHeaderContentId(String key)
    • addNewFieldKey

      void addNewFieldKey(String key)
    • addNewLinkKey

      void addNewLinkKey(String key)
    • addNewPanelKey

      void addNewPanelKey(String key)
    • getRemovedContentIds

      Map<String,Collection<String>> getRemovedContentIds()
    • getLastReadTime

      Long getLastReadTime()