UserRoleDimensionValueDto.java 9.66 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 7 8 9 10
/**
 * @see PwC.Tax.Tech.Atms.Application.Dto\TaxAdminDto\UserRoleDimensionValueDto.cs
 */
public class UserRoleDimensionValueDto {

    // 主键
11
    @JsonProperty("ID")
12
    private String id;
eddie.woo's avatar
eddie.woo committed
13

14
    // 纬度值Id
15
    @JsonProperty("dimensionValueID")
16
    private String dimensionValueId;
eddie.woo's avatar
eddie.woo committed
17 18 19

    // 纬度值
    private String dimensionValueName;
20
    @JsonProperty("dimensionID")
21
    private String dimensionId;
eddie.woo's avatar
eddie.woo committed
22 23 24 25

    // 维度名称
    private String dimensionName;

26
    @JsonProperty("userID")
27
    private String userId;
eddie.woo's avatar
eddie.woo committed
28 29 30

    // 用户名
    private String userName;
31
    @JsonProperty("roleID")
32
    private String roleId;
eddie.woo's avatar
eddie.woo committed
33 34 35 36 37 38 39

    private String roleName;

    private Boolean isAccessible;
    private Boolean isHeritable;

    private Boolean hasOriginalRole;
40
    @JsonProperty("organizationID")
41
    private String organizationId;
eddie.woo's avatar
eddie.woo committed
42 43 44 45 46

    private String organizationName;

    // admin VAT ...
    private String serviceTypeName;
47
    @JsonProperty("serviceTypeID")
48
    private String serviceTypeId;
eddie.woo's avatar
eddie.woo committed
49 50 51 52 53
    // 特殊角色,公共角色
    private String roleCatetoryName;

    private Boolean isAdd;

54 55
    public String getId() {
        return id;
eddie.woo's avatar
eddie.woo committed
56 57
    }

58
    public void setId(String id) {
frank.xa.zhang's avatar
frank.xa.zhang committed
59
        this.id = id;
eddie.woo's avatar
eddie.woo committed
60 61
    }

62 63
    public String getDimensionValueId() {
        return dimensionValueId;
eddie.woo's avatar
eddie.woo committed
64 65
    }

66 67
    public void setDimensionValueId(String dimensionValueId) {
        this.dimensionValueId = dimensionValueId;
eddie.woo's avatar
eddie.woo committed
68 69 70 71 72 73 74 75 76 77
    }

    public String getDimensionValueName() {
        return dimensionValueName;
    }

    public void setDimensionValueName(String dimensionValueName) {
        this.dimensionValueName = dimensionValueName;
    }

78 79
    public String getDimensionId() {
        return dimensionId;
eddie.woo's avatar
eddie.woo committed
80 81
    }

82 83
    public void setDimensionId(String dimensionId) {
        this.dimensionId = dimensionId;
eddie.woo's avatar
eddie.woo committed
84 85 86 87 88 89 90 91 92 93
    }

    public String getDimensionName() {
        return dimensionName;
    }

    public void setDimensionName(String dimensionName) {
        this.dimensionName = dimensionName;
    }

94 95
    public String getUserId() {
        return userId;
eddie.woo's avatar
eddie.woo committed
96 97
    }

98 99
    public void setUserId(String userId) {
        this.userId = userId;
eddie.woo's avatar
eddie.woo committed
100 101 102 103 104 105 106 107 108 109
    }

    public String getUserName() {
        return userName;
    }

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

110 111
    public String getRoleId() {
        return roleId;
eddie.woo's avatar
eddie.woo committed
112 113
    }

114 115
    public void setRoleId(String roleId) {
        this.roleId = roleId;
eddie.woo's avatar
eddie.woo committed
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
    }

    public String getRoleName() {
        return roleName;
    }

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

    public Boolean getIsAccessible() {
        return isAccessible;
    }

    public void setIsAccessible(Boolean isAccessible) {
        this.isAccessible = isAccessible;
    }

    public Boolean getIsHeritable() {
        return isHeritable;
    }

    public void setIsHeritable(Boolean isHeritable) {
        this.isHeritable = isHeritable;
    }

    public Boolean getHasOriginalRole() {
        return hasOriginalRole;
    }

    public void setHasOriginalRole(Boolean hasOriginalRole) {
        this.hasOriginalRole = hasOriginalRole;
    }

150 151
    public String getOrganizationId() {
        return organizationId;
eddie.woo's avatar
eddie.woo committed
152 153
    }

154 155
    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
eddie.woo's avatar
eddie.woo committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

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

174 175
    public String getServiceTypeId() {
        return serviceTypeId;
eddie.woo's avatar
eddie.woo committed
176 177
    }

178 179
    public void setServiceTypeId(String serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
eddie.woo's avatar
eddie.woo committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
    }

    public String getRoleCatetoryName() {
        return roleCatetoryName;
    }

    public void setRoleCatetoryName(String roleCatetoryName) {
        this.roleCatetoryName = roleCatetoryName;
    }

    public Boolean getIsAdd() {
        return isAdd;
    }

    public void setIsAdd(Boolean isAdd) {
        this.isAdd = isAdd;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
202 203
        result = prime * result + ((id == null) ? 0 : id.hashCode());
        result = prime * result + ((dimensionId == null) ? 0 : dimensionId.hashCode());
eddie.woo's avatar
eddie.woo committed
204
        result = prime * result + ((dimensionName == null) ? 0 : dimensionName.hashCode());
205
        result = prime * result + ((dimensionValueId == null) ? 0 : dimensionValueId.hashCode());
eddie.woo's avatar
eddie.woo committed
206 207 208 209 210
        result = prime * result + ((dimensionValueName == null) ? 0 : dimensionValueName.hashCode());
        result = prime * result + ((hasOriginalRole == null) ? 0 : hasOriginalRole.hashCode());
        result = prime * result + ((isAccessible == null) ? 0 : isAccessible.hashCode());
        result = prime * result + ((isAdd == null) ? 0 : isAdd.hashCode());
        result = prime * result + ((isHeritable == null) ? 0 : isHeritable.hashCode());
211
        result = prime * result + ((organizationId == null) ? 0 : organizationId.hashCode());
eddie.woo's avatar
eddie.woo committed
212 213
        result = prime * result + ((organizationName == null) ? 0 : organizationName.hashCode());
        result = prime * result + ((roleCatetoryName == null) ? 0 : roleCatetoryName.hashCode());
214
        result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
eddie.woo's avatar
eddie.woo committed
215
        result = prime * result + ((roleName == null) ? 0 : roleName.hashCode());
216
        result = prime * result + ((serviceTypeId == null) ? 0 : serviceTypeId.hashCode());
eddie.woo's avatar
eddie.woo committed
217
        result = prime * result + ((serviceTypeName == null) ? 0 : serviceTypeName.hashCode());
218
        result = prime * result + ((userId == null) ? 0 : userId.hashCode());
eddie.woo's avatar
eddie.woo committed
219 220 221 222 223 224 225 226 227 228 229 230 231
        result = prime * result + ((userName == null) ? 0 : userName.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        UserRoleDimensionValueDto other = (UserRoleDimensionValueDto) obj;
232 233
        if (id == null) {
            if (other.id != null)
eddie.woo's avatar
eddie.woo committed
234
                return false;
235
        } else if (!id.equals(other.id))
eddie.woo's avatar
eddie.woo committed
236
            return false;
237 238
        if (dimensionId == null) {
            if (other.dimensionId != null)
eddie.woo's avatar
eddie.woo committed
239
                return false;
240
        } else if (!dimensionId.equals(other.dimensionId))
eddie.woo's avatar
eddie.woo committed
241 242 243 244 245 246
            return false;
        if (dimensionName == null) {
            if (other.dimensionName != null)
                return false;
        } else if (!dimensionName.equals(other.dimensionName))
            return false;
247 248
        if (dimensionValueId == null) {
            if (other.dimensionValueId != null)
eddie.woo's avatar
eddie.woo committed
249
                return false;
250
        } else if (!dimensionValueId.equals(other.dimensionValueId))
eddie.woo's avatar
eddie.woo committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276
            return false;
        if (dimensionValueName == null) {
            if (other.dimensionValueName != null)
                return false;
        } else if (!dimensionValueName.equals(other.dimensionValueName))
            return false;
        if (hasOriginalRole == null) {
            if (other.hasOriginalRole != null)
                return false;
        } else if (!hasOriginalRole.equals(other.hasOriginalRole))
            return false;
        if (isAccessible == null) {
            if (other.isAccessible != null)
                return false;
        } else if (!isAccessible.equals(other.isAccessible))
            return false;
        if (isAdd == null) {
            if (other.isAdd != null)
                return false;
        } else if (!isAdd.equals(other.isAdd))
            return false;
        if (isHeritable == null) {
            if (other.isHeritable != null)
                return false;
        } else if (!isHeritable.equals(other.isHeritable))
            return false;
277 278
        if (organizationId == null) {
            if (other.organizationId != null)
eddie.woo's avatar
eddie.woo committed
279
                return false;
280
        } else if (!organizationId.equals(other.organizationId))
eddie.woo's avatar
eddie.woo committed
281 282 283 284 285 286 287 288 289 290 291
            return false;
        if (organizationName == null) {
            if (other.organizationName != null)
                return false;
        } else if (!organizationName.equals(other.organizationName))
            return false;
        if (roleCatetoryName == null) {
            if (other.roleCatetoryName != null)
                return false;
        } else if (!roleCatetoryName.equals(other.roleCatetoryName))
            return false;
292 293
        if (roleId == null) {
            if (other.roleId != null)
eddie.woo's avatar
eddie.woo committed
294
                return false;
295
        } else if (!roleId.equals(other.roleId))
eddie.woo's avatar
eddie.woo committed
296 297 298 299 300 301
            return false;
        if (roleName == null) {
            if (other.roleName != null)
                return false;
        } else if (!roleName.equals(other.roleName))
            return false;
302 303
        if (serviceTypeId == null) {
            if (other.serviceTypeId != null)
eddie.woo's avatar
eddie.woo committed
304
                return false;
305
        } else if (!serviceTypeId.equals(other.serviceTypeId))
eddie.woo's avatar
eddie.woo committed
306 307 308 309 310 311
            return false;
        if (serviceTypeName == null) {
            if (other.serviceTypeName != null)
                return false;
        } else if (!serviceTypeName.equals(other.serviceTypeName))
            return false;
312 313
        if (userId == null) {
            if (other.userId != null)
eddie.woo's avatar
eddie.woo committed
314
                return false;
315
        } else if (!userId.equals(other.userId))
eddie.woo's avatar
eddie.woo committed
316 317 318 319 320 321 322 323 324 325
            return false;
        if (userName == null) {
            if (other.userName != null)
                return false;
        } else if (!userName.equals(other.userName))
            return false;
        return true;
    }

}