Class RemoteContentMacroServiceImpl.RemoteMacroFinderImpl
- java.lang.Object
-
- com.atlassian.confluence.rest.client.AbstractRemoteService<ContentMacroService.MacroInstanceFinder>
-
- com.atlassian.confluence.rest.client.impl.RemoteContentMacroServiceImpl.RemoteMacroFinderImpl
-
- All Implemented Interfaces:
RemoteContentMacroService.RemoteMacroFinder,RemoteSingleFetcher<MacroInstance>
- Enclosing class:
- RemoteContentMacroServiceImpl
public class RemoteContentMacroServiceImpl.RemoteMacroFinderImpl extends AbstractRemoteService<ContentMacroService.MacroInstanceFinder> implements RemoteContentMacroService.RemoteMacroFinder
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
provider
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteMacroFinderImpl(AbstractRemoteService otherService, ContentId contentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompletionStage<Optional<MacroInstance>>fetchCompletionStage()com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<MacroInstance>>fetchOne()com.atlassian.util.concurrent.Promise<MacroInstance>fetchOneOrNull()CompletionStage<MacroInstance>fetchOrNullCompletionStage()RemoteContentMacroService.RemoteMacroFinderwithContentVersion(int versionNumber)RemoteContentMacroService.RemoteMacroFinderwithHash(String hash)Deprecated.since 5.8, usewithMacroId(String)RemoteContentMacroService.RemoteMacroFinderwithMacroId(String macroId)-
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteCompletionStage, deleteCompletionStage, deleteFuture, deleteFuture, getCompletionStage, getCompletionStageGenericCollection, getCompletionStageMap, getCompletionStageMapOfPageResponses, getCompletionStageOptional, getCompletionStagePageResponseList, getCompletionStageSearchPageResponseList, getExecutor, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postCompletionStage, postCompletionStage, postCompletionStage, postCompletionStageToPageResponse, postFuture, postFuture, postFuture, postFutureToPageResponse, postVoidCompletionStage, putCompletionStage, putFuture
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.rest.client.RemoteSingleFetcher
fetch, fetchOrNull
-
-
-
-
Constructor Detail
-
RemoteMacroFinderImpl
protected RemoteMacroFinderImpl(AbstractRemoteService otherService, ContentId contentId)
-
-
Method Detail
-
withHash
@Deprecated public RemoteContentMacroService.RemoteMacroFinder withHash(String hash)
Deprecated.since 5.8, usewithMacroId(String)- Specified by:
withHashin interfaceRemoteContentMacroService.RemoteMacroFinder- Parameters:
hash- The hash identifying the body of the macro- Returns:
- this
-
withMacroId
public RemoteContentMacroService.RemoteMacroFinder withMacroId(String macroId)
- Specified by:
withMacroIdin interfaceRemoteContentMacroService.RemoteMacroFinder- Parameters:
macroId- The macroId identifying the body of the macro- Returns:
- this
-
withContentVersion
public RemoteContentMacroService.RemoteMacroFinder withContentVersion(int versionNumber)
- Specified by:
withContentVersionin interfaceRemoteContentMacroService.RemoteMacroFinder- Parameters:
versionNumber- The version of the page to scan for the macro- Returns:
- this
-
fetchOne
public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<MacroInstance>> fetchOne()
- Specified by:
fetchOnein interfaceRemoteSingleFetcher<MacroInstance>
-
fetchOneOrNull
public com.atlassian.util.concurrent.Promise<MacroInstance> fetchOneOrNull()
- Specified by:
fetchOneOrNullin interfaceRemoteSingleFetcher<MacroInstance>
-
fetchCompletionStage
public CompletionStage<Optional<MacroInstance>> fetchCompletionStage()
- Specified by:
fetchCompletionStagein interfaceRemoteSingleFetcher<MacroInstance>
-
fetchOrNullCompletionStage
public CompletionStage<MacroInstance> fetchOrNullCompletionStage()
- Specified by:
fetchOrNullCompletionStagein interfaceRemoteSingleFetcher<MacroInstance>
-
-