public class SimpleUserProfile extends Object implements UserProfile, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleUserProfile.Servlet
Test servlet access to user-db.
|
UserProfile.Affil, UserProfile.Notifies| Modifier and Type | Field and Description |
|---|---|
private Collection<javax.mail.internet.InternetAddress> |
address
The list of e-mail addresses.
|
private List<UserProfile.Affil> |
affils
The list of allowed affiliations.
|
private int |
colorint
The integer of the color.
|
private UserProfile.Affil |
mainaffil
The default affiliation (first in list or explicedly set).
|
private Collection<UserProfile.Notifies> |
notify
The list of notification events.
|
private static long |
serialVersionUID |
private String |
user
The unique user name.
|
AFFILCOLOR, SYSTEM| Constructor and Description |
|---|
SimpleUserProfile(String username,
String afflist,
String email,
String not,
String col) |
| Modifier and Type | Method and Description |
|---|---|
Collection<UserProfile.Affil> |
getAllowedInstitutions()
Returns all allowed billing institutions for this user.
|
Color |
getColor()
Returns the user color.
|
Collection<? extends javax.mail.Address> |
getEmail()
Returns the e-mail collection.
|
static List<UserProfile> |
getFromServlet(URL where) |
UserProfile.Affil |
getInstitution()
Returns one of the recognized institutions.
|
PublicKey |
getKey()
Returns the public key of this user, if any.
|
Collection<UserProfile.Notifies> |
getNotify()
Returns the notification list.
|
PasswordAuthentication |
getPassword()
Returns a password authentication, that is a user name and a password.
|
String |
getUser()
Returns the user name.
|
int |
hashCode() |
boolean |
setInstitution(UserProfile.Affil billing)
Sets the billing organisation to something different from the default.
|
String |
toString() |
private static final long serialVersionUID
private final Collection<javax.mail.internet.InternetAddress> address
private final Collection<UserProfile.Notifies> notify
private final List<UserProfile.Affil> affils
private UserProfile.Affil mainaffil
private final String user
private final int colorint
public String getUser()
UserProfilegetUser in interface UserProfilepublic boolean setInstitution(UserProfile.Affil billing)
UserProfilesetInstitution in interface UserProfilepublic Collection<UserProfile.Affil> getAllowedInstitutions()
UserProfilegetAllowedInstitutions in interface UserProfilepublic Color getColor()
UserProfilegetColor in interface UserProfilepublic Collection<? extends javax.mail.Address> getEmail()
UserProfilegetEmail in interface UserProfilepublic UserProfile.Affil getInstitution()
UserProfileUserProfile.setInstitution(stella.util.UserProfile.Affil).getInstitution in interface UserProfilepublic Collection<UserProfile.Notifies> getNotify()
UserProfilegetNotify in interface UserProfilepublic PublicKey getKey() throws SecurityException
UserProfilegetKey in interface UserProfileSecurityException - if access to the key is not granted.public PasswordAuthentication getPassword() throws SecurityException
UserProfilegetPassword in interface UserProfileSecurityException - if access to the password is not granted.public static List<UserProfile> getFromServlet(URL where) throws IOException
IOException