public class UserProperty extends PropertyContainer implements UserProfile, Initializable
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 static Color |
DEFCOLOR
The default color.
|
private static String |
DEFINSTITUTION
The default user institution.
|
private static String |
DEFNOTIFY
The default user-notification.
|
static String |
KEY_COLOR
The preferred color for various display purposes.
|
static String |
KEY_EMAIL
The e-mail addresses of the user, as a comma-separated list.
|
static String |
KEY_INSTITUTION
The institution observing time is accounted to.
|
static String |
KEY_NOTIFY
The notification preferences for the user, as a comma-list.
|
static String |
KEY_USER
The user this properties are bound to.
|
private UserProfile.Affil |
mainaffil
The default affiliation (first in list or explicedly set).
|
private Collection<UserProfile.Notifies> |
notify
The list of notification events.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORAFFILCOLOR, SYSTEMCONFIG, KEY_CLASS| Constructor and Description |
|---|
UserProperty(Map<String,String> prop)
Creates a new user-preferences helper.
|
| Modifier and Type | Method and Description |
|---|---|
List<UserProfile.Affil> |
getAllowedInstitutions()
Returns all allowed billing institutions for this user.
|
Color |
getColor()
Retunrs the user color.
|
Collection<? extends javax.mail.Address> |
getEmail()
Returns the e-mail list.
|
UserProfile.Affil |
getInstitution()
Returns the institution.
|
PublicKey |
getKey()
Return null.
|
Collection<UserProfile.Notifies> |
getNotify()
Returns the notification list.
|
PasswordAuthentication |
getPassword()
Return null.
|
String |
getUser()
Returns the user name.
|
void |
init()
Checks if the user name and the e-mail address is set.
|
boolean |
setInstitution(UserProfile.Affil allowed)
Tries to set a new affiliation, which is only allowed if the new
affiliation is part of the
KEY_INSTITUTION list. |
String |
toString()
Returns a string description.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringPropertiespublic static final String KEY_USER
public static final String KEY_INSTITUTION
public static final String KEY_EMAIL
public static final String KEY_NOTIFY
public static final String KEY_COLOR
private static final String DEFINSTITUTION
private static final String DEFNOTIFY
private static final Color DEFCOLOR
private Collection<javax.mail.internet.InternetAddress> address
private Collection<UserProfile.Notifies> notify
private List<UserProfile.Affil> affils
private UserProfile.Affil mainaffil
public void init()
init in interface Initializablepublic String getUser()
getUser in interface UserProfilepublic UserProfile.Affil getInstitution()
getInstitution in interface UserProfilepublic List<UserProfile.Affil> getAllowedInstitutions()
UserProfilegetAllowedInstitutions in interface UserProfilepublic boolean setInstitution(UserProfile.Affil allowed)
KEY_INSTITUTION list.setInstitution in interface UserProfilepublic Collection<? extends javax.mail.Address> getEmail()
getEmail in interface UserProfilepublic Collection<UserProfile.Notifies> getNotify()
getNotify in interface UserProfilepublic Color getColor()
getColor in interface UserProfilepublic String toString()
toString in class PropertyContainerpublic PublicKey getKey()
getKey in interface UserProfilepublic PasswordAuthentication getPassword()
getPassword in interface UserProfile