1 16 package org.apache.cocoon.portal.profile.impl; 17 18 import java.io.Serializable ; 19 import java.util.Map ; 20 21 import org.apache.cocoon.portal.profile.PortalUser; 22 23 31 public abstract class UserInfo implements PortalUser, Serializable { 32 33 protected String userName; 34 35 protected String group; 36 37 protected String portalName; 38 39 protected String layoutKey; 40 41 protected Map configurations; 42 43 public UserInfo(String portalName, String layoutKey) { 44 this.portalName = portalName; 45 this.layoutKey = layoutKey; 46 } 47 48 51 public String getGroup() { 52 return group; 53 } 54 55 58 public void setGroup(String group) { 59 this.group = group; 60 } 61 62 65 public String getUserName() { 66 return userName; 67 } 68 69 72 public void setUserName(String userName) { 73 this.userName = userName; 74 } 75 76 79 public Map getConfigurations() { 80 return configurations; 81 } 82 83 86 public void setConfigurations(Map configurations) { 87 this.configurations = configurations; 88 } 89 90 93 public String getLayoutKey() { 94 return layoutKey; 95 } 96 97 100 public String getPortalName() { 101 return portalName; 102 } 103 104 107 public abstract boolean isUserInRole(String role); 108 } 109 | Popular Tags |