public final class AddonQuery extends Object implements QueryProperties.AccessToken, QueryProperties.ApplicationCriteria, QueryProperties.Bounds, QueryProperties.Cost, QueryProperties.Hosting, 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) |
com.atlassian.fugue.Option<String> |
getAccessToken()
The access token, if any, that the client is providing for the query (in order to allow
access to a private listing).
|
com.atlassian.fugue.Option<Integer> |
getAppBuildNumber()
The application build number, if any, that the client is using to restrict the query results.
|
com.atlassian.fugue.Option<ApplicationKey> |
getApplication()
The key of the application, if any, that the client is using to restrict the query results.
|
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.
|
com.atlassian.fugue.Option<Cost> |
getCost()
The
Cost filter, if any, that the client is using to restrict the query results. |
com.atlassian.fugue.Option<HostingType> |
getHosting()
The hosting type that the client is using to restrict the query, if any.
|
com.atlassian.fugue.Option<AddonQuery.IncludeHiddenType> |
getIncludeHidden()
The subset of normally hidden add-ons, if any, that the client has specified to include
in the query results.
|
com.atlassian.fugue.Option<String> |
getLabel()
The marketing label string, if any, that the client has specified to restrict the query results.
|
com.atlassian.fugue.Option<String> |
getSearchText()
The search text, if any, that the client has specified for the query.
|
com.atlassian.fugue.Option<AddonQuery.TreatPartlyFreeAs> |
getTreatPartlyFreeAs()
The
AddonQuery.TreatPartlyFreeAs value, if any, that the client has specified to determine how
free-tier listings will be treated in the query. |
com.atlassian.fugue.Option<AddonQuery.View> |
getView()
The
AddonQuery.View value, if any, that the client has specified as a filter and/or sort order
for the query. |
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.
|
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 com.atlassian.fugue.Option<String> getAccessToken()
QueryProperties.AccessTokengetAccessToken in interface QueryProperties.AccessTokenQueryBuilderProperties.AccessToken.accessToken(Option)public com.atlassian.fugue.Option<ApplicationKey> getApplication()
QueryProperties.ApplicationCriteriagetApplication in interface QueryProperties.ApplicationCriteriaQueryBuilderProperties.ApplicationCriteria.application(Option)public com.atlassian.fugue.Option<Integer> getAppBuildNumber()
QueryProperties.ApplicationCriteriagetAppBuildNumber in interface QueryProperties.ApplicationCriteriaQueryBuilderProperties.ApplicationCriteria.appBuildNumber(Option)public Iterable<String> getCategoryNames()
public com.atlassian.fugue.Option<Cost> getCost()
QueryProperties.CostCost filter, if any, that the client is using to restrict the query results.getCost in interface QueryProperties.CostQueryBuilderProperties.Cost.cost(Option)public boolean isForThisUserOnly()
public com.atlassian.fugue.Option<AddonQuery.IncludeHiddenType> getIncludeHidden()
public boolean isIncludePrivate()
public com.atlassian.fugue.Option<HostingType> getHosting()
QueryProperties.HostinggetHosting in interface QueryProperties.HostingQueryBuilderProperties.Hosting.hosting(Option)public com.atlassian.fugue.Option<String> getLabel()
AddonQuery.Builder.label(Option)public com.atlassian.fugue.Option<AddonQuery.TreatPartlyFreeAs> getTreatPartlyFreeAs()
AddonQuery.TreatPartlyFreeAs value, if any, that the client has specified to determine how
free-tier listings will be treated in the query.public com.atlassian.fugue.Option<String> getSearchText()
public com.atlassian.fugue.Option<AddonQuery.View> getView()
AddonQuery.View value, if any, that the client has specified as a filter and/or sort order
for the query.AddonQuery.Builder.view(Option)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 © 2016 Atlassian. All rights reserved.