summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-BE-common/src/main/java/org/openecomp/portalapp/portal/domain/CentralRoleFunction.java
blob: 2d659e9cbb5af7b031e91a5fa613ff71b4367e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package org.openecomp.portalapp.portal.domain;

import org.openecomp.portalsdk.core.domain.support.DomainVo;

import com.fasterxml.jackson.annotation.JsonIgnore;

@SuppressWarnings("rawtypes")
public class CentralRoleFunction extends DomainVo implements java.io.Serializable, Comparable{
	
	   /**
	 * 
	 */
	private static final long serialVersionUID = -4018975640065252688L;
	   private String code;
	   private String name;
	   @JsonIgnore
	   private Long appId;
	   @JsonIgnore
	   private Long roleId;
	   private String editUrl;
	   
	   
	public CentralRoleFunction() {
	
	}
	
	
	public CentralRoleFunction(Long id, String code, String name, Long appId, String editUrl) {
		super();
		this.id = id;
		this.code = code;
		this.name = name;
		this.appId = appId;
		this.editUrl = editUrl;
	}

	public CentralRoleFunction(String code, String name) {
		super();
		this.code = code;
		this.name = name;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the appId
	 */
	public Long getAppId() {
		return appId;
	}
	/**
	 * @param appId the appId to set
	 */
	public void setAppId(Long appId) {
		this.appId = appId;
	}
	/**
	 * @return the editUrl
	 */
	public String getEditUrl() {
		return editUrl;
	}
	/**
	 * @param editUrl the editUrl to set
	 */
	public void setEditUrl(String editUrl) {
		this.editUrl = editUrl;
	}
    public int compareTo(Object obj){
        String c1 = getName();
        String c2 = ((CentralRoleFunction)obj).getName();

        return (c1 == null || c2 == null) ? 1 : c1.compareTo(c2);
      }
	
	
   
}