com.atlassian.confluence.api.service.content
Interface ContentMacroService.MacroInstanceFinder

All Superinterfaces:
SingleFetcher<MacroInstance>
Enclosing interface:
ContentMacroService

public static interface ContentMacroService.MacroInstanceFinder
extends SingleFetcher<MacroInstance>

A finder for locating instances of macros on content


Method Summary
 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)
          Apply a filter of the hash of the macro body, this is currently mandatory.
 
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetchOne, fetchOneOrNull
 

Method Detail

withHash

ContentMacroService.MacroInstanceFinder withHash(String hash)
Apply a filter of the hash of the macro body, this is currently mandatory.

Parameters:
hash - - The hash identifying the body of the macro
Returns:
this

withContentVersion

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.

Parameters:
version - The version of the page to scan for the macro
Returns:
this


Copyright © 2003–2015 Atlassian. All rights reserved.