private static final class UserSql.SqlProfile extends Object implements UserProfile
UserProfile.Affil, UserProfile.Notifies| Modifier and Type | Field and Description |
|---|---|
private List<UserProfile.Affil> |
bills
The parsed affiliation.
|
private Color |
color
The drawing color.
|
private PublicKey |
dsa
The public key for authentication.
|
private UserProfile.Affil |
home
The parsed affiliation.
|
private Collection<javax.mail.internet.InternetAddress> |
mail
The e-mails of the user.
|
private String |
name
The user name.
|
private Collection<UserProfile.Notifies> |
notify
The notification events.
|
private PasswordAuthentication |
pass
The password, this is null.
|
AFFILCOLOR, SYSTEM| Modifier | Constructor and Description |
|---|---|
private |
SqlProfile(String user,
String affil,
String email,
String events,
String colname,
String key,
String passwd)
Parses all necessary fields out of the argument string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that) |
List<UserProfile.Affil> |
getAllowedInstitutions()
Returns all allowed billing institutions for this user.
|
Color |
getColor()
Returns the user color.
|
Collection<javax.mail.internet.InternetAddress> |
getEmail()
Returns the e-mail collection.
|
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.
|
boolean |
setInstitution(UserProfile.Affil billing)
Changes the billing institution if allowed.
|
String |
toString() |
private final String name
private UserProfile.Affil home
private final List<UserProfile.Affil> bills
private Collection<javax.mail.internet.InternetAddress> mail
private final Collection<UserProfile.Notifies> notify
private final Color color
private final PublicKey dsa
private PasswordAuthentication pass
public String getUser()
getUser in interface UserProfilepublic UserProfile.Affil getInstitution()
getInstitution in interface UserProfilepublic boolean setInstitution(UserProfile.Affil billing)
setInstitution in interface UserProfilepublic List<UserProfile.Affil> getAllowedInstitutions()
UserProfilegetAllowedInstitutions in interface UserProfilepublic Collection<javax.mail.internet.InternetAddress> getEmail()
getEmail in interface UserProfilepublic Collection<UserProfile.Notifies> getNotify()
getNotify in interface UserProfilepublic Color getColor()
getColor in interface UserProfilepublic PublicKey getKey()
getKey in interface UserProfileSecurityException - if access to the key is not granted.public PasswordAuthentication getPassword()
getPassword in interface UserProfileSecurityException - if access to the password is not granted.