|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
Description:
The user represents a real world user with the following elements:
| Method Summary | |
|---|---|
Preferences |
getPreferences()
Get the users prefereces object |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Locale locale)
Get a user property value for the given property identifyer. |
java.lang.String |
getPropertyOrIdentityEnvAttribute(java.lang.String propertyName,
java.util.Locale locale)
returns the property value, which is looked up first in the db stored user properties and if not available there, if it can be found in the volatile identity attributes which get set once per session during the login process. |
void |
setIdentityEnvironmentAttributes(java.util.Map<java.lang.String,java.lang.String> identEnvAttribs)
internal use only. |
void |
setPreferences(Preferences prefs)
Set the users prefereces |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Set the value for the given user property identifyer |
| Methods inherited from interface org.olat.core.id.CreateInfo |
|---|
getCreationDate |
| Methods inherited from interface org.olat.core.id.Persistable |
|---|
equalsByPersistableKey, getKey |
| Method Detail |
|---|
Preferences getPreferences()
void setPreferences(Preferences prefs)
prefs - The users new preferences
void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
propertyName - The user property identifyerpropertyValue - The new value or NULL if no value is used
java.lang.String getProperty(java.lang.String propertyName,
java.util.Locale locale)
propertyName - The user property identifyerlocale - The locale used for proper display or NULL if the default
locale should be used. In many cases it is ok to use NULL in any
case, e.g. the users firstname will not be internationalized in
anyway. Make sure you use a locale whenever you query for a date
property.
void setIdentityEnvironmentAttributes(java.util.Map<java.lang.String,java.lang.String> identEnvAttribs)
identEnvAttribs -
java.lang.String getPropertyOrIdentityEnvAttribute(java.lang.String propertyName,
java.util.Locale locale)
Usage so far is during Shibboleth Login (ShibbolethDispatcher), where the shibboleth attributes are extracted and set in the identity environment.
next - locale -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||