| 1 | |
package com.ctrip.framework.apollo.portal.entity.form; |
| 2 | |
|
| 3 | |
|
| 4 | |
import com.ctrip.framework.apollo.core.enums.Env; |
| 5 | |
import com.ctrip.framework.apollo.core.utils.StringUtils; |
| 6 | |
|
| 7 | 0 | public class NamespaceReleaseModel implements Verifiable { |
| 8 | |
|
| 9 | |
private String appId; |
| 10 | |
private String env; |
| 11 | |
private String clusterName; |
| 12 | |
private String namespaceName; |
| 13 | |
private String releaseBy; |
| 14 | |
private String releaseComment; |
| 15 | |
|
| 16 | |
@Override |
| 17 | |
public boolean isInvalid() { |
| 18 | 0 | return StringUtils.isContainEmpty(appId, env, clusterName, namespaceName, releaseBy); |
| 19 | |
} |
| 20 | |
|
| 21 | |
public String getAppId() { |
| 22 | 0 | return appId; |
| 23 | |
} |
| 24 | |
|
| 25 | |
public void setAppId(String appId) { |
| 26 | 0 | this.appId = appId; |
| 27 | 0 | } |
| 28 | |
|
| 29 | |
public Env getEnv() { |
| 30 | 0 | return Env.valueOf(env); |
| 31 | |
} |
| 32 | |
|
| 33 | |
public void setEnv(String env) { |
| 34 | 0 | this.env = env; |
| 35 | 0 | } |
| 36 | |
|
| 37 | |
public String getClusterName() { |
| 38 | 0 | return clusterName; |
| 39 | |
} |
| 40 | |
|
| 41 | |
public void setClusterName(String clusterName) { |
| 42 | 0 | this.clusterName = clusterName; |
| 43 | 0 | } |
| 44 | |
|
| 45 | |
public String getNamespaceName() { |
| 46 | 0 | return namespaceName; |
| 47 | |
} |
| 48 | |
|
| 49 | |
public void setNamespaceName(String namespaceName) { |
| 50 | 0 | this.namespaceName = namespaceName; |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
public String getReleaseBy() { |
| 54 | 0 | return releaseBy; |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setReleaseBy(String releaseBy) { |
| 58 | 0 | this.releaseBy = releaseBy; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
public String getReleaseComment() { |
| 62 | 0 | return releaseComment; |
| 63 | |
} |
| 64 | |
|
| 65 | |
public void setReleaseComment(String releaseComment) { |
| 66 | 0 | this.releaseComment = releaseComment; |
| 67 | 0 | } |
| 68 | |
|
| 69 | |
} |