public class ContentMacroNamesFromDatabase extends Object implements ContentMacroNamesReader
| Constructor and Description |
|---|
ContentMacroNamesFromDatabase(PluginHibernateSessionFactory pluginSessionFactory) |
| Modifier and Type | Method and Description |
|---|---|
List<ContentMacroNames> |
getContentMacroNames(Iterable<Content> contents,
List<ContentMacroNames> knownMacroNamesAndComments,
boolean includeComments)
Get a list of macro names for a set of contents, and any attached comments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentMacroNamespublic ContentMacroNamesFromDatabase(PluginHibernateSessionFactory pluginSessionFactory)
public List<ContentMacroNames> getContentMacroNames(Iterable<Content> contents, List<ContentMacroNames> knownMacroNamesAndComments, boolean includeComments)
ContentMacroNamesReadergetContentMacroNames in interface ContentMacroNamesReadercontents - The content objectsknownMacroNamesAndComments - Macro names and comments that are known to be a part of the contents If any
comments are missing from the data source, knownMacroNamesAndComments should be used as the source of truth to
fill in the gaps.includeComments - True to include macro names from commentsCopyright © 2003–2017 Atlassian. All rights reserved.