1 package com.atlassian.marketplace.client.model;
2
3 import com.atlassian.marketplace.client.api.EnumWithKey;
4
5 /**
6 * Indicates whether an {@link Addon} is publicly visible, private, or pending approval.
7 * @since 2.0.0
8 */
9 public enum AddonStatus implements EnumWithKey
10 {
11 /**
12 * The add-on is visible to everyone.
13 */
14 PUBLIC("public"),
15 /**
16 * The add-on is visible only to users associated with its vendor; it can also be installed
17 * by anyone who has received an access token from the vendor.
18 */
19 PRIVATE("private"),
20 /**
21 * The add-on is pending approval, and will become public once it has been approved.
22 */
23 SUBMITTED("submitted"),
24 /**
25 * The add-on was submitted for approval, but was rejected. It can be resubmitted for approval
26 * by setting its status back to {@link #SUBMITTED} (see
27 * {@link com.atlassian.marketplace.client.api.Addons#updateAddon(Addon, Addon)}).
28 */
29 REJECTED("rejected");
30
31 private final String key;
32
33 private AddonStatus(String key)
34 {
35 this.key = key;
36 }
37
38 @Override
39 public String getKey()
40 {
41 return key;
42 }
43 }