1 16 package org.apache.cocoon.portal.security; 17 18 import java.util.ArrayList ; 19 20 import org.osoco.cowarp.StandardUser; 21 22 25 public class PortalUser extends StandardUser { 26 27 private int uid; 28 private String lastname; 29 private String firstname; 30 private String password; 31 32 public PortalUser(String uid) { 33 super(uid); 34 this.roles = new ArrayList (); 35 } 36 37 public String getFirstname() { 38 return firstname; 39 } 40 41 public void setFirstname(String firstname) { 42 this.firstname = firstname; 43 } 44 45 public String getLastname() { 46 return lastname; 47 } 48 49 public void setLastname(String lastname) { 50 this.lastname = lastname; 51 } 52 53 public String getPassword() { 54 return password; 55 } 56 57 public void setPassword(String password) { 58 this.password = password; 59 } 60 61 public String getRole() { 62 return (String ) roles.get(0); 63 } 64 65 public void setRole(String role) { 66 this.roles.clear(); 67 this.roles.add(role); 68 } 69 70 public int getUid() { 71 return uid; 72 } 73 74 public void setUid(int uid) { 75 this.uid = uid; 76 } 77 78 public String getUsername() { 79 return id; 80 } 81 82 public void setUsername(String username) { 83 this.id = username; 84 } 85 86 } 87 | Popular Tags |