com.atlassian.confluence.rest.client.impl
Class RemoteContentMacroServiceImpl.RemoteMacroFinderImpl

java.lang.Object
  extended by com.atlassian.confluence.rest.client.AbstractRemoteService<ContentMacroService.MacroInstanceFinder>
      extended by com.atlassian.confluence.rest.client.impl.RemoteContentMacroServiceImpl.RemoteMacroFinderImpl
All Implemented Interfaces:
RemoteContentMacroService.RemoteMacroFinder
Enclosing class:
RemoteContentMacroServiceImpl

public class RemoteContentMacroServiceImpl.RemoteMacroFinderImpl
extends AbstractRemoteService<ContentMacroService.MacroInstanceFinder>
implements RemoteContentMacroService.RemoteMacroFinder


Constructor Summary
protected RemoteContentMacroServiceImpl.RemoteMacroFinderImpl(AbstractRemoteService otherService, ContentId contentId)
           
 
Method Summary
 com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<MacroInstance>> fetchOne()
          Fetch the macroinstance matching the with params from the remote server
 com.atlassian.util.concurrent.Promise<MacroInstance> fetchOneOrNull()
          Fetch the macroinstance matching the with params from the remote server
 RemoteContentMacroService.RemoteMacroFinder withContentVersion(int versionNumber)
           
 RemoteContentMacroService.RemoteMacroFinder withHash(String hash)
           
 
Methods inherited from class com.atlassian.confluence.rest.client.AbstractRemoteService
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteContentMacroServiceImpl.RemoteMacroFinderImpl

protected RemoteContentMacroServiceImpl.RemoteMacroFinderImpl(AbstractRemoteService otherService,
                                                              ContentId contentId)
Method Detail

withHash

public RemoteContentMacroService.RemoteMacroFinder withHash(String hash)
Specified by:
withHash in interface RemoteContentMacroService.RemoteMacroFinder
Parameters:
hash - The hash identifying the body of the macro
Returns:
this

withContentVersion

public RemoteContentMacroService.RemoteMacroFinder withContentVersion(int versionNumber)
Specified by:
withContentVersion in interface RemoteContentMacroService.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()
Description copied from interface: RemoteContentMacroService.RemoteMacroFinder
Fetch the macroinstance matching the with params from the remote server

Specified by:
fetchOne in interface RemoteContentMacroService.RemoteMacroFinder

fetchOneOrNull

public com.atlassian.util.concurrent.Promise<MacroInstance> fetchOneOrNull()
Description copied from interface: RemoteContentMacroService.RemoteMacroFinder
Fetch the macroinstance matching the with params from the remote server

Specified by:
fetchOneOrNull in interface RemoteContentMacroService.RemoteMacroFinder


Copyright © 2003–2015 Atlassian. All rights reserved.