View Javadoc

1   package com.atlassian.marketplace.client.api;
2   
3   import com.atlassian.marketplace.client.MpacException;
4   import com.atlassian.marketplace.client.model.AddonCategorySummary;
5   
6   /**
7    * Starting point for all resources that return add-on category information.
8    * @since 2.0.0
9    */
10  public interface AddonCategories
11  {
12      /**
13       * Returns the list of all categories that are relevant to the specified application.
14       * @param appKey an {@link ApplicationKey}
15       * @return the list of categories
16       * @throws MpacException  if the server was unavailable or returned an error
17       */
18      Iterable<AddonCategorySummary> findForApplication(ApplicationKey appKey) throws MpacException;
19  }