1 package org.openecomp.portalapp.portal.transport;
3 import java.io.Serializable;
5 public class ExternalAccessPerms implements Serializable, Comparable{
10 private static final long serialVersionUID = -200964838466882602L;
12 public String instance;
14 public String description;
17 public ExternalAccessPerms() {
23 public ExternalAccessPerms(String type, String instance, String action, String description) {
26 this.instance = instance;
28 this.description = description;
31 public ExternalAccessPerms(String type, String instance, String action) {
34 this.instance = instance;
42 public String getType() {
46 * @param type the type to set
48 public void setType(String type) {
52 * @return the instance
54 public String getInstance() {
58 * @param instance the instance to set
60 public void setInstance(String instance) {
61 this.instance = instance;
66 public String getAction() {
70 * @param action the action to set
72 public void setAction(String action) {
76 public String getDescription() {
80 public void setDescription(String description) {
81 this.description = description;
86 public int compareTo(Object obj){
87 ExternalAccessPerms other = (ExternalAccessPerms)obj;
89 String c1 = getInstance();
90 String c2 = other.getInstance();
92 return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);