Class MacroCountStore
java.lang.Object
com.atlassian.confluence.macro.count.MacroCountStore
Persists the number of each type of macro present on the page, and calculates the number of newly added macros
by comparing current macro counts with those from the previous version of the page.
- Since:
- 5.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionupdateAndGetNewCounts
(MacroCounter counter, ContentEntityObject entity, int entityVersion) Calculates the number of newly added macros by comparing results from the supplied MacroCounter with the counts stored in theContentProperties
of the entity, and updates those counts after the difference has been calculated.
-
Constructor Details
-
MacroCountStore
public MacroCountStore()
-
-
Method Details
-
updateAndGetNewCounts
public List<MacroCount> updateAndGetNewCounts(MacroCounter counter, ContentEntityObject entity, int entityVersion) Calculates the number of newly added macros by comparing results from the supplied MacroCounter with the counts stored in theContentProperties
of the entity, and updates those counts after the difference has been calculated.- Returns:
- a list of MacroCount objects for each type of newly added macro, with counts indicating how many instances of that macro were added
-