public class ThemeServiceImpl.ThemeFinderImpl extends AbstractFinder<Theme> implements ThemeService.ThemeFinder
expansions| Constructor and Description |
|---|
ThemeFinderImpl(Expansion... expansions) |
| Modifier and Type | Method and Description |
|---|---|
PageResponse<Theme> |
fetchMany(PageRequest request) |
com.atlassian.fugue.Option<Theme> |
fetchOne() |
SingleFetcher<Theme> |
globalTheme()
Restrict the fetched
Theme to be the one assigned globally. |
SingleFetcher<Theme> |
withSpace(String spaceKey)
|
SingleFetcher<Theme> |
withThemeKey(ThemeKey themeKey)
Restrict the fetched
Theme to be the one with specific key. |
ManyFetcher<Theme> |
withThemeKey(ThemeKey themeKey,
ThemeKey... moreThemeKeys)
Restrict the fetched
Themes to be the ones with the keys specified. |
fetchOneOrNull, getExpansionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetchOneOrNullpublic ThemeFinderImpl(Expansion... expansions)
@Nonnull public SingleFetcher<Theme> withThemeKey(ThemeKey themeKey)
ThemeService.ThemeFinderTheme to be the one with specific key.withThemeKey in interface ThemeService.ThemeFinderthemeKey - - the key of a Theme to be found.@Nonnull public ManyFetcher<Theme> withThemeKey(ThemeKey themeKey, @Nullable ThemeKey... moreThemeKeys)
ThemeService.ThemeFinderThemes to be the ones with the keys specified.withThemeKey in interface ThemeService.ThemeFinderthemeKey - - the key of a Theme to be found.moreThemeKeys - - more theme keys@Nonnull public SingleFetcher<Theme> withSpace(String spaceKey)
ThemeService.ThemeFinderTheme to be the one assigned to a particular Space.
If there's no Theme explicitly assigned to a space then the SingleFetcher.fetchOne() method will throw
NotFoundException.
withSpace in interface ThemeService.ThemeFinderspaceKey - - the key of the Space to find the Theme for.@Nonnull public SingleFetcher<Theme> globalTheme()
ThemeService.ThemeFinderTheme to be the one assigned globally.
If there's no Theme explicitly assigned globally, then the SingleFetcher.fetchOne() method will throw
NotFoundException.
globalTheme in interface ThemeService.ThemeFinder@Nonnull public com.atlassian.fugue.Option<Theme> fetchOne()
fetchOne in interface SingleFetcher<Theme>@Nonnull public PageResponse<Theme> fetchMany(PageRequest request)
fetchMany in interface ManyFetcher<Theme>request - - a pageRequest to use to paginate the response, this will be limited if it exceeds system limitsCopyright © 2003–2017 Atlassian. All rights reserved.