1 16 package com.blandware.atleap.model.core; 17 18 import java.io.Serializable ; 19 import java.util.ArrayList ; 20 import java.util.List ; 21 22 54 public class Role extends BaseObject implements Serializable { 55 57 60 private String name; 61 64 private String title; 65 68 private String description; 69 72 private Boolean fixed; 73 76 protected Long version; 77 78 81 private List groups = new ArrayList (); 82 83 86 private List pages = new ArrayList (); 87 88 91 private List menuItems = new ArrayList (); 92 93 96 private List resources = new ArrayList (); 97 98 101 public Role() { 102 } 103 104 110 public Role(String name, String title) { 111 this.name = name; 112 this.title = title; 113 } 114 115 117 129 public String getName() { 130 return this.name; 131 } 132 133 143 public String getTitle() { 144 return this.title; 145 } 146 147 154 public String getDescription() { 155 return this.description; 156 } 157 158 164 public Boolean getFixed() { 165 return fixed; 166 } 167 168 173 public void setName(String name) { 174 this.name = name; 175 } 176 177 182 public void setTitle(String title) { 183 this.title = title; 184 } 185 186 191 public void setDescription(String description) { 192 this.description = description; 193 } 194 195 200 public void setFixed(Boolean fixed) { 201 this.fixed = fixed; 202 } 203 204 211 public Long getVersion() { 212 return version; 213 } 214 215 220 public void setVersion(Long version) { 221 this.version = version; 222 } 223 224 234 public List getGroups() { 235 return groups; 236 } 237 238 243 public void setGroups(List groups) { 244 this.groups = groups; 245 } 246 247 256 public List getPages() { 257 return pages; 258 } 259 260 265 public void setPages(List pages) { 266 this.pages = pages; 267 } 268 269 278 public List getMenuItems() { 279 return menuItems; 280 } 281 282 287 public void setMenuItems(List menuItems) { 288 this.menuItems = menuItems; 289 } 290 291 300 public List getResources() { 301 return resources; 302 } 303 304 309 public void setResources(List resources) { 310 this.resources = resources; 311 } 312 313 314 public boolean equals(Object o) { 315 if ( this == o ) { 316 return true; 317 } 318 319 if ( !(o instanceof Role) ) { 320 return false; 321 } 322 final Role role = (Role) o; 323 324 if ( title != null ? !title.equals(role.title) : role.title != null ) { 325 return false; 326 } 327 328 return true; 329 } 330 331 public int hashCode() { 332 if ( title == null ) { 333 return 0; 334 } else { 335 return title.hashCode(); 336 } 337 } 338 339 } 340 | Popular Tags |