01: package org.emforge.xfer;
02:
03: /**
04: * Database-Based Role Implementation
05: */
06: public class RoleTO {
07:
08: public static final Integer ROLE_TYPE_SITE = 0;
09: public static final Integer ROLE_TYPE_PROJECT = 1;
10: protected static final String ROLE_NAME_PREFIX = "Any ";
11: protected static final String ROLE_NAME_POSTFIX = "";
12: protected static final String ROLE_VARNAME_SEPARATOR = "_";
13:
14: private Long id;
15: private String name;
16: private String displayName;
17:
18: private Integer roleType = ROLE_TYPE_SITE;
19:
20: public Long getId() {
21: return id;
22: }
23:
24: public void setId(Long id) {
25: this .id = id;
26: }
27:
28: public String getName() {
29: return name;
30: }
31:
32: public void setName(String name) {
33: this .name = name;
34: }
35:
36: public String getDisplayName() {
37: return displayName;
38: }
39:
40: public void setDisplayName(String displayName) {
41: this .displayName = displayName;
42: }
43:
44: public Integer getRoleType() {
45: return roleType;
46: }
47:
48: public void setRoleType(Integer roleType) {
49: this.roleType = roleType;
50: }
51: }
|