public final class AddonQuery extends Object implements QueryProperties.AccessToken, QueryProperties.ApplicationCriteria, QueryProperties.Bounds, QueryProperties.Cost, QueryProperties.MultiHosting, QueryProperties.IncludePrivate, QueryProperties.WithVersion
Addons to determine what
subset of add-on listings you are interested in and/or what information should be included
in the results.| Modifier and Type | Class and Description |
|---|---|
static class |
AddonQuery.Builder
Builder class for
AddonQuery. |
static class |
AddonQuery.IncludeHiddenType
Constants representing subsets of add-ons that are normally hidden but may still be queried.
|
static class |
AddonQuery.TreatPartlyFreeAs
Determines how paid-via-Atlassian add-ons with free tiers, such as those where the vendor has opted into the
Cloud free-for-five tier, are treated in queries.
|
static class |
AddonQuery.View
Constants representing preset add-on list views, which may affect both the set of
add-ons being queried and the sort order of the results.
|
| Modifier and Type | Method and Description |
|---|---|
static AddonQuery |
any()
Returns an
AddonQuery with no criteria, which will match any available add-on. |
static AddonQuery.Builder |
builder()
Returns a new
AddonQuery.Builder for constructing an AddonQuery. |
static AddonQuery.Builder |
builder(AddonQuery query)
|
boolean |
equals(Object other) |
QueryBounds |
getBounds()
The offset/limit parameters attached to this query.
|
Iterable<String> |
getCategoryNames()
The list of add-on category names, if any, that the client has specified to restrict
the query results.
|
List<HostingType> |
getHostings()
The hosting type that the client is using to restrict the query, if any.
|
int |
hashCode() |
boolean |
isForThisUserOnly()
True if the client is querying only add-ons that are associated with the current
authenticated user's vendor(s).
|
boolean |
isIncludePrivate()
True if the client is querying private add-ons as well as public add-ons.
|
boolean |
isWithVersion()
True if the client is requesting version-level detail in the result set.
|
Optional<String> |
safeGetAccessToken()
The access token, if any, that the client is providing for the query (in order to allow
access to a private listing).
|
Optional<Integer> |
safeGetAppBuildNumber()
The application build number, if any, that the client is using to restrict the query results.
|
Optional<ApplicationKey> |
safeGetApplication()
The key of the application, if any, that the client is using to restrict the query results.
|
Optional<Cost> |
safeGetCost()
The
Cost filter, if any, that the client is using to restrict the query results. |
Optional<HostingType> |
safeGetHosting() |
Optional<AddonQuery.IncludeHiddenType> |
safeGetIncludeHidden()
The subset of normally hidden add-ons, if any, that the client has specified to include
in the query results.
|
Optional<String> |
safeGetLabel()
The marketing label string, if any, that the client has specified to restrict the query results.
|
Optional<String> |
safeGetSearchText()
The search text, if any, that the client has specified for the query.
|
Optional<AddonQuery.TreatPartlyFreeAs> |
safeGetTreatPartlyFreeAs()
The
AddonQuery.TreatPartlyFreeAs value, if any, that the client has specified to determine how
free-tier listings will be treated in the query. |
Optional<AddonQuery.View> |
safeGetView()
The
AddonQuery.View value, if any, that the client has specified as a filter and/or sort order
for the query. |
String |
toString() |
public static AddonQuery.Builder builder()
AddonQuery.Builder for constructing an AddonQuery.public static AddonQuery any()
AddonQuery with no criteria, which will match any available add-on.public static AddonQuery.Builder builder(AddonQuery query)
public Optional<String> safeGetAccessToken()
QueryProperties.AccessTokensafeGetAccessToken in interface QueryProperties.AccessTokenQueryBuilderProperties.AccessToken.accessToken(Optional)public Optional<ApplicationKey> safeGetApplication()
QueryProperties.ApplicationCriteriasafeGetApplication in interface QueryProperties.ApplicationCriteriaQueryBuilderProperties.ApplicationCriteria.application(Optional)public Optional<Integer> safeGetAppBuildNumber()
QueryProperties.ApplicationCriteriasafeGetAppBuildNumber in interface QueryProperties.ApplicationCriteriaQueryBuilderProperties.ApplicationCriteria.appBuildNumber(Optional)public Iterable<String> getCategoryNames()
public Optional<Cost> safeGetCost()
QueryProperties.CostCost filter, if any, that the client is using to restrict the query results.safeGetCost in interface QueryProperties.CostQueryBuilderProperties.Cost.cost(Optional)public boolean isForThisUserOnly()
public Optional<AddonQuery.IncludeHiddenType> safeGetIncludeHidden()
public boolean isIncludePrivate()
isIncludePrivate in interface QueryProperties.IncludePrivateAddonQuery.Builder.includePrivate(boolean)public Optional<HostingType> safeGetHosting()
public List<HostingType> getHostings()
QueryProperties.MultiHostinggetHostings in interface QueryProperties.MultiHostingQueryBuilderProperties.MultiHosting.hosting(List)public Optional<String> safeGetLabel()
AddonQuery.Builder.label(Optional)public Optional<AddonQuery.TreatPartlyFreeAs> safeGetTreatPartlyFreeAs()
AddonQuery.TreatPartlyFreeAs value, if any, that the client has specified to determine how
free-tier listings will be treated in the query.public Optional<String> safeGetSearchText()
AddonQuery.Builder.searchText(Optional)public Optional<AddonQuery.View> safeGetView()
AddonQuery.View value, if any, that the client has specified as a filter and/or sort order
for the query.AddonQuery.Builder.view(Optional)public boolean isWithVersion()
QueryProperties.WithVersionisWithVersion in interface QueryProperties.WithVersionQueryBuilderProperties.WithVersion.withVersion(boolean)public QueryBounds getBounds()
QueryProperties.BoundsgetBounds in interface QueryProperties.BoundsQueryBuilderProperties.Bounds.bounds(QueryBounds)Copyright © 2019 Atlassian. All rights reserved.