Class SearchContext
- java.lang.Object
-
- com.atlassian.confluence.api.model.search.SearchContext
-
@ExperimentalApi public class SearchContext extends Object
JSON serializable search context object to allow a user to specify the context they want a search to execute in.- Since:
- 5.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchContext.Builder
-
Field Summary
Fields Modifier and Type Field Description static SearchContext
EMPTY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SearchContext.Builder
builder()
Optional<ContentId>
contentId()
Optional<List<ContentStatus>>
contentStatuses()
static SearchContext
deserialize(String searchContextJson, org.codehaus.jackson.map.ObjectMapper objectMapper)
com.atlassian.fugue.Option<ContentId>
getContentId()
Deprecated.since 7.0.1.com.atlassian.fugue.Option<List<ContentStatus>>
getContentStatuses()
Deprecated.since 7.0.1.com.atlassian.fugue.Option<String>
getSpaceKey()
Deprecated.since 7.0.1.Optional<String>
spaceKey()
-
-
-
Field Detail
-
EMPTY
public static final SearchContext EMPTY
-
-
Method Detail
-
getContentId
@Deprecated public com.atlassian.fugue.Option<ContentId> getContentId()
Deprecated.since 7.0.1. UsecontentId()
-
getSpaceKey
@Deprecated public com.atlassian.fugue.Option<String> getSpaceKey()
Deprecated.since 7.0.1. UsespaceKey()
-
getContentStatuses
@Deprecated public com.atlassian.fugue.Option<List<ContentStatus>> getContentStatuses()
Deprecated.since 7.0.1. UsecontentStatuses()
-
contentStatuses
public Optional<List<ContentStatus>> contentStatuses()
- Since:
- 7.0.1
-
builder
public static SearchContext.Builder builder()
-
deserialize
public static SearchContext deserialize(String searchContextJson, org.codehaus.jackson.map.ObjectMapper objectMapper)
-
-