Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.
1 24 39 40 package org.datashare; 41 42 import java.io.Serializable ; 43 import org.datashare.objects.RegistrationInfo; 44 45 49 public class UserInfo implements Serializable  50 { 51 55 static final long serialVersionUID = 9030493813756685675L; 56 57 private RegistrationInfo regInfo = null; 58 public boolean authenticated = false; public boolean admin = false; 60 public String uniqueName = ""; 61 62 public String firstName = ""; 63 public String lastName = ""; 64 public String primaryPhone = ""; 65 public String primaryEmail = ""; 66 public String imageURL = ""; 67 public String clientMachine = ""; 68 public String serverMachine = ""; 69 70 73 private UserInfo() 74 { 75 } 76 77 81 public UserInfo(RegistrationInfo regInfo) 82 { 83 this.regInfo = regInfo; 84 uniqueName = regInfo.clientUserName; SessionUtilities.getLoggingInterface().debugMsg(SessionUtilities.getLoggingInterface().DEBUG, 86 SessionUtilities.getLoggingInterface().CLIENT, 87 "UserInfo for " + uniqueName + " has admin set to " + admin + " (for now)" ); 88 } 89 90 public String  91 getUserName() 92 { 93 return regInfo.clientUserName; 94 } 95 96 public int 97 getClientMode() 98 { 99 return regInfo.clientMode; 100 } 101 102 public String  103 getClientClass() 104 { 105 return regInfo.clientClass; 106 } 107 108 public String  109 getEnterpriseName() 110 { 111 return regInfo.enterpriseName; 112 } 113 114 public String  115 getOtherInfo() 116 { 117 return regInfo.otherInfo; 118 } 119 } 120
| Popular Tags
|