public static interface ContentMacroService.MacroInstanceFinder extends SingleFetcher<MacroInstance>
Modifier and Type | Method and Description |
---|---|
ContentMacroService.MacroInstanceFinder |
withContentVersion(int version)
Apply a filter for the content to search, if this is not specified
the latest version of the content will be used.
|
ContentMacroService.MacroInstanceFinder |
withHash(String hash)
Deprecated.
since 5.8, use
withMacroId(String) |
ContentMacroService.MacroInstanceFinder |
withMacroId(String macroId)
Apply a filter of the macroId, this is currently mandatory.
|
fetch, fetchOne, fetchOneOrNull, fetchOrNull
ContentMacroService.MacroInstanceFinder withMacroId(String macroId)
If the macroId is not specified in the storage format of the content, then this finder will match against the macro body hash. This is to preserve backwards compatibility.
macroId
- - The macroId identifying the macro@Deprecated ContentMacroService.MacroInstanceFinder withHash(String hash)
withMacroId(String)
This method calls the withMacroId(String)
passing the hash as
the macroId. This will preserve backwards compatibility of the API as
well as functionality.
hash
- - The hash identifying the macro bodyContentMacroService.MacroInstanceFinder withContentVersion(int version)
version
- The version of the page to scan for the macroCopyright © 2003–2021 Atlassian. All rights reserved.