UserRoleDto.java 7.76 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2
package pwc.taxtech.atms.dto.user;

3 4
import com.fasterxml.jackson.annotation.JsonProperty;

eddie.woo's avatar
eddie.woo committed
5 6
import java.util.List;

7 8 9
/**
 * @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\UserRoleDto.cs
 */
eddie.woo's avatar
eddie.woo committed
10
public class UserRoleDto {
11
    @JsonProperty("ID")
12
    private String id;
13
    @JsonProperty("userID")
14
    private String userId;
eddie.woo's avatar
eddie.woo committed
15
    private String userName;
16
    @JsonProperty("roleID")
17
    private String roleId;
eddie.woo's avatar
eddie.woo committed
18
    private String roleName;
19
    @JsonProperty("projectID")
20
    private String projectId;
eddie.woo's avatar
eddie.woo committed
21
    private String projectName;
22
    @JsonProperty("serviceTypeID")
23
    private String serviceTypeId;
eddie.woo's avatar
eddie.woo committed
24 25 26
    private String serviceTypeName;
    private List<UserRoleDto> subItems;
    private Boolean isActive;
27
    @JsonProperty("roleCategoryID")
28
    private String roleCategoryId;
eddie.woo's avatar
eddie.woo committed
29
    private String roleCategoryName;
30
    @JsonProperty("orgID")
31
    private String orgId;
eddie.woo's avatar
eddie.woo committed
32 33
    private String orgName;

34 35
    public String getId() {
        return id;
eddie.woo's avatar
eddie.woo committed
36 37
    }

38
    public void setId(String id) {
frank.xa.zhang's avatar
frank.xa.zhang committed
39
        this.id = id;
eddie.woo's avatar
eddie.woo committed
40 41
    }

42 43
    public String getUserId() {
        return userId;
eddie.woo's avatar
eddie.woo committed
44 45
    }

46 47
    public void setUserId(String userId) {
        this.userId = userId;
eddie.woo's avatar
eddie.woo committed
48 49 50 51 52 53 54 55 56 57
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

58 59
    public String getRoleId() {
        return roleId;
eddie.woo's avatar
eddie.woo committed
60 61
    }

62 63
    public void setRoleId(String roleId) {
        this.roleId = roleId;
eddie.woo's avatar
eddie.woo committed
64 65 66 67 68 69 70 71 72 73
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

74 75
    public String getProjectId() {
        return projectId;
eddie.woo's avatar
eddie.woo committed
76 77
    }

78 79
    public void setProjectId(String projectId) {
        this.projectId = projectId;
eddie.woo's avatar
eddie.woo committed
80 81 82 83 84 85 86 87 88 89
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

90 91
    public String getServiceTypeId() {
        return serviceTypeId;
eddie.woo's avatar
eddie.woo committed
92 93
    }

94 95
    public void setServiceTypeId(String serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
eddie.woo's avatar
eddie.woo committed
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    public List<UserRoleDto> getSubItems() {
        return subItems;
    }

    public void setSubItems(List<UserRoleDto> subItems) {
        this.subItems = subItems;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }

122 123
    public String getRoleCategoryId() {
        return roleCategoryId;
eddie.woo's avatar
eddie.woo committed
124 125
    }

126 127
    public void setRoleCategoryId(String roleCategoryId) {
        this.roleCategoryId = roleCategoryId;
eddie.woo's avatar
eddie.woo committed
128 129 130 131 132 133 134 135 136 137
    }

    public String getRoleCategoryName() {
        return roleCategoryName;
    }

    public void setRoleCategoryName(String roleCategoryName) {
        this.roleCategoryName = roleCategoryName;
    }

138 139
    public String getOrgId() {
        return orgId;
eddie.woo's avatar
eddie.woo committed
140 141
    }

142 143
    public void setOrgId(String orgId) {
        this.orgId = orgId;
eddie.woo's avatar
eddie.woo committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
161
        result = prime * result + ((id == null) ? 0 : id.hashCode());
eddie.woo's avatar
eddie.woo committed
162
        result = prime * result + ((isActive == null) ? 0 : isActive.hashCode());
163
        result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
eddie.woo's avatar
eddie.woo committed
164
        result = prime * result + ((orgName == null) ? 0 : orgName.hashCode());
165
        result = prime * result + ((projectId == null) ? 0 : projectId.hashCode());
eddie.woo's avatar
eddie.woo committed
166
        result = prime * result + ((projectName == null) ? 0 : projectName.hashCode());
167
        result = prime * result + ((roleCategoryId == null) ? 0 : roleCategoryId.hashCode());
eddie.woo's avatar
eddie.woo committed
168
        result = prime * result + ((roleCategoryName == null) ? 0 : roleCategoryName.hashCode());
169
        result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
eddie.woo's avatar
eddie.woo committed
170
        result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
171
        result = prime * result + ((serviceTypeId == null) ? 0 : serviceTypeId.hashCode());
eddie.woo's avatar
eddie.woo committed
172 173
        result = prime * result + ((serviceTypeName == null) ? 0 : serviceTypeName.hashCode());
        result = prime * result + ((subItems == null) ? 0 : subItems.hashCode());
174
        result = prime * result + ((userId == null) ? 0 : userId.hashCode());
eddie.woo's avatar
eddie.woo committed
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190
        result = prime * result + ((userName == null) ? 0 : userName.hashCode());
        return result;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#equals(java.lang.Object)
     */
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        UserRoleDto other = (UserRoleDto) obj;
191 192
        if (id == null) {
            if (other.id != null)
eddie.woo's avatar
eddie.woo committed
193
                return false;
194
        } else if (!id.equals(other.id))
eddie.woo's avatar
eddie.woo committed
195 196 197 198 199 200
            return false;
        if (isActive == null) {
            if (other.isActive != null)
                return false;
        } else if (!isActive.equals(other.isActive))
            return false;
201 202
        if (orgId == null) {
            if (other.orgId != null)
eddie.woo's avatar
eddie.woo committed
203
                return false;
204
        } else if (!orgId.equals(other.orgId))
eddie.woo's avatar
eddie.woo committed
205 206 207 208 209 210
            return false;
        if (orgName == null) {
            if (other.orgName != null)
                return false;
        } else if (!orgName.equals(other.orgName))
            return false;
211 212
        if (projectId == null) {
            if (other.projectId != null)
eddie.woo's avatar
eddie.woo committed
213
                return false;
214
        } else if (!projectId.equals(other.projectId))
eddie.woo's avatar
eddie.woo committed
215 216 217 218 219 220
            return false;
        if (projectName == null) {
            if (other.projectName != null)
                return false;
        } else if (!projectName.equals(other.projectName))
            return false;
221 222
        if (roleCategoryId == null) {
            if (other.roleCategoryId != null)
eddie.woo's avatar
eddie.woo committed
223
                return false;
224
        } else if (!roleCategoryId.equals(other.roleCategoryId))
eddie.woo's avatar
eddie.woo committed
225 226 227 228 229 230
            return false;
        if (roleCategoryName == null) {
            if (other.roleCategoryName != null)
                return false;
        } else if (!roleCategoryName.equals(other.roleCategoryName))
            return false;
231 232
        if (roleId == null) {
            if (other.roleId != null)
eddie.woo's avatar
eddie.woo committed
233
                return false;
234
        } else if (!roleId.equals(other.roleId))
eddie.woo's avatar
eddie.woo committed
235 236 237 238 239 240
            return false;
        if (roleName == null) {
            if (other.roleName != null)
                return false;
        } else if (!roleName.equals(other.roleName))
            return false;
241 242
        if (serviceTypeId == null) {
            if (other.serviceTypeId != null)
eddie.woo's avatar
eddie.woo committed
243
                return false;
244
        } else if (!serviceTypeId.equals(other.serviceTypeId))
eddie.woo's avatar
eddie.woo committed
245 246 247 248 249 250 251 252 253 254 255
            return false;
        if (serviceTypeName == null) {
            if (other.serviceTypeName != null)
                return false;
        } else if (!serviceTypeName.equals(other.serviceTypeName))
            return false;
        if (subItems == null) {
            if (other.subItems != null)
                return false;
        } else if (!subItems.equals(other.subItems))
            return false;
256 257
        if (userId == null) {
            if (other.userId != null)
eddie.woo's avatar
eddie.woo committed
258
                return false;
259
        } else if (!userId.equals(other.userId))
eddie.woo's avatar
eddie.woo committed
260 261 262 263 264 265 266 267
            return false;
        if (userName == null) {
            if (other.userName != null)
                return false;
        } else if (!userName.equals(other.userName))
            return false;
        return true;
    }
268 269


eddie.woo's avatar
eddie.woo committed
270
}