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 Summary
Modifier and TypeMethodDescriptionvoidaddNewFieldKey(String key) voidaddNewLinkKey(String key) voidaddNewPanelKey(String key) calculateContentId(String calculateFrom) boolean
-
Method Details
-
calculateContentId
-
mustLoadAll
boolean mustLoadAll() -
getCurrentFieldContentId
-
getCurrentLinkContentId
-
getCurrentPanelContentId
-
getCurrentIssueContentId
-
getCurrentHeaderContentId
-
addNewFieldKey
-
addNewLinkKey
-
addNewPanelKey
-
getRemovedContentIds
Map<String,Collection<String>> getRemovedContentIds() -
getLastReadTime
Long getLastReadTime()
-