public class RemoteThemeServiceImpl.RemoteThemeFinderImpl extends AbstractRemoteService<ThemeService.ThemeFinder> implements RemoteThemeService.RemoteThemeFinder, RemoteSingleFetcher<Theme>
provider| Constructor and Description |
|---|
RemoteThemeFinderImpl(Expansion... expansions) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.util.concurrent.Promise<PageResponse<Theme>> |
fetchMany(PageRequest request)
Attempts to fetch a Page of
Theme objects which match the filters specified. |
com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Theme>> |
fetchOne()
Attempts to fetch a single
Theme objects which matches the filters specified. |
com.atlassian.util.concurrent.Promise<Theme> |
fetchOneOrNull() |
RemoteSingleFetcher<Theme> |
globalTheme()
Restrict the fetched
Theme to be the one assigned globally. |
RemoteSingleFetcher<Theme> |
withSpace(String spaceKey)
|
RemoteSingleFetcher<Theme> |
withThemeKey(ThemeKey themeKey)
Restrict the fetched
Theme to be the one with specific key. |
RemoteManyFetcher<Theme> |
withThemeKey(ThemeKey themeKey,
ThemeKey... moreThemeKeys)
Restrict the fetched
Themes to be the ones with the keys specified. |
addExpansions, addPageRequest, addPageRequestParams, deleteFuture, deleteFuture, getFuture, getFutureGenericCollection, getFutureMap, getFutureMapOfPageResponses, getFutureOption, getFuturePageResponseList, getFuturePageResponseList, newExperimentalRestWebResource, newRestWebResource, postFuture, postFuture, postFuture, postFutureToPageResponse, putFuture, putFutureToPageResponsepublic RemoteThemeFinderImpl(Expansion... expansions)
@Nonnull public RemoteSingleFetcher<Theme> withThemeKey(ThemeKey themeKey)
RemoteThemeService.RemoteThemeFinderTheme to be the one with specific key.withThemeKey in interface RemoteThemeService.RemoteThemeFinderthemeKey - - the key of a Theme to be found.@Nonnull public RemoteManyFetcher<Theme> withThemeKey(ThemeKey themeKey, ThemeKey... moreThemeKeys)
RemoteThemeService.RemoteThemeFinderThemes to be the ones with the keys specified.withThemeKey in interface RemoteThemeService.RemoteThemeFinderthemeKey - - the key of a Theme to be found.moreThemeKeys - - more theme keys@Nonnull public RemoteSingleFetcher<Theme> withSpace(String spaceKey)
RemoteThemeService.RemoteThemeFinderTheme to be the one assigned to a particular Space.
If there's no Theme explicitly assigned to a space then the RemoteThemeService.RemoteThemeFinder.fetchOne() method will throw
NotFoundException.
withSpace in interface RemoteThemeService.RemoteThemeFinderspaceKey - - the key of the Space to find the Theme for.@Nonnull public RemoteSingleFetcher<Theme> globalTheme()
RemoteThemeService.RemoteThemeFinderTheme to be the one assigned globally.
If there's no Theme explicitly assigned globally, then the RemoteThemeService.RemoteThemeFinder.fetchOne() method will throw
NotFoundException.
globalTheme in interface RemoteThemeService.RemoteThemeFinder@Nonnull public com.atlassian.util.concurrent.Promise<com.atlassian.fugue.Option<Theme>> fetchOne() throws ServiceException
RemoteThemeService.RemoteThemeFinderTheme objects which matches the filters specified.fetchOne in interface RemoteThemeService.RemoteThemeFinderfetchOne in interface RemoteSingleFetcher<Theme>Theme which matches the filter(s) specified or throws otherwiseServiceExceptionpublic com.atlassian.util.concurrent.Promise<Theme> fetchOneOrNull()
fetchOneOrNull in interface RemoteSingleFetcher<Theme>@Nonnull public com.atlassian.util.concurrent.Promise<PageResponse<Theme>> fetchMany(PageRequest request) throws ServiceException
RemoteThemeService.RemoteThemeFinderTheme objects which match the filters specified.
Won't accept null PageRequestsfetchMany in interface RemoteManyFetcher<Theme>fetchMany in interface RemoteThemeService.RemoteThemeFinderrequest - request specifying offset and limit for the desired pagePageResponse (might be empty) of Theme objects corresponding to the filters specified or throws otherwiseServiceExceptionCopyright © 2003–2017 Atlassian. All rights reserved.