public class User extends Object implements UserIF, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
bundleExpiryAge |
protected UserFilterContextStore |
filterContext |
protected HistoryMap |
history |
protected String |
id |
protected long |
initialBundleExpiryAge |
protected HistoryMap |
log |
protected int |
max_bundles |
protected String |
model |
protected String |
skin |
protected Map |
timeStamps |
protected String |
view |
protected Map |
workingBundles |
COMMON_USER, DEFAULT_MODEL, DEFAULT_SKIN, DEFAULT_VIEW| Constructor and Description |
|---|
User()
default constructor using a common user id.
|
User(NavigatorConfigurationIF navConf) |
User(String userId,
NavigatorConfigurationIF navConf) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLogMessage(String message)
INTERNAL: Adds a message to the user's log.
|
void |
addWorkingBundle(String bundle_id,
Object object)
INTERNAL: Stores a working bundle of objects under the specified
id. |
void |
clearLog()
INTERNAL: Clears the user's log.
|
UserFilterContextStore |
getFilterContext()
INTERNAL: Gets the Filter Context object which stores for each
topicmap a set of themes the user has selected.
|
HistoryMap |
getHistory()
INTERNAL: Gets the last used objects (instances of Object,
specialisation through the web application) which the user has
visited.
|
String |
getId()
INTERNAL: Gets the user identifier.
|
List |
getLogMessages()
INTERNAL: Gets the current log messages from the ring buffer.
|
String |
getModel()
Get Model Setting for MVS.
|
String |
getSkin()
Get Skin (Stylesheet) Setting for MVS.
|
String |
getView()
Get View (Template) Setting for MVS.
|
Object |
getWorkingBundle(String bundle_id)
INTERNAL: Gets an ordered lists of objects (parameter name as
key, list of objects as value) grouped together by the given
identifier
id. |
void |
removeWorkingBundle(String bundle_id)
INTERNAL: Removes the specified working bundle.
|
void |
resetBundleExpiryAge()
INTERNAL: Resets bundleExpiryAge to its initial value.
|
void |
setBundleExpiryAge(long bundleExpiryAge)
INTERNAL: Sets bundleExpiryAge to a given value.
|
void |
setHistory(HistoryMap history)
INTERNAL: Sets the last used objects that are in relation to the
user and his path through the web application.
|
void |
setModel(String model)
Set Model Setting.
|
void |
setMVS(String model,
String view,
String skin) |
void |
setSkin(String skin)
Set Skin Setting.
|
void |
setView(String view)
Set View Setting.
|
protected String id
protected String model
protected String view
protected String skin
protected transient UserFilterContextStore filterContext
protected transient HistoryMap history
protected transient HistoryMap log
protected transient Map workingBundles
protected transient Map timeStamps
protected long bundleExpiryAge
protected final long initialBundleExpiryAge
protected final int max_bundles
public User()
public User(NavigatorConfigurationIF navConf)
public User(String userId, NavigatorConfigurationIF navConf)
public String getId()
UserIFpublic UserFilterContextStore getFilterContext()
UserIFgetFilterContext in interface UserIFpublic HistoryMap getHistory()
UserIFgetHistory in interface UserIFpublic void setHistory(HistoryMap history)
UserIFsetHistory in interface UserIFpublic List getLogMessages()
UserIFgetLogMessages in interface UserIFpublic void addLogMessage(String message)
UserIFaddLogMessage in interface UserIFpublic void clearLog()
UserIFpublic void addWorkingBundle(String bundle_id, Object object)
UserIFid.addWorkingBundle in interface UserIFpublic Object getWorkingBundle(String bundle_id)
UserIFid.getWorkingBundle in interface UserIFpublic void removeWorkingBundle(String bundle_id)
UserIFremoveWorkingBundle in interface UserIFpublic void setBundleExpiryAge(long bundleExpiryAge)
bundleExpiryAge - age in seconds until bundles expire.public void resetBundleExpiryAge()
public void setModel(String model)
UserIFpublic String getModel()
UserIFpublic void setView(String view)
UserIFpublic String getView()
UserIFpublic void setSkin(String skin)
UserIFpublic String getSkin()
UserIF