Class MacroCountStore
- java.lang.Object
-
- com.atlassian.confluence.macro.count.MacroCountStore
-
public class MacroCountStore extends Object
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 Constructor Description MacroCountStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
-
-