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()
UserIF
public UserFilterContextStore getFilterContext()
UserIF
getFilterContext
in interface UserIF
public HistoryMap getHistory()
UserIF
getHistory
in interface UserIF
public void setHistory(HistoryMap history)
UserIF
setHistory
in interface UserIF
public List getLogMessages()
UserIF
getLogMessages
in interface UserIF
public void addLogMessage(String message)
UserIF
addLogMessage
in interface UserIF
public void clearLog()
UserIF
public void addWorkingBundle(String bundle_id, Object object)
UserIF
id
.addWorkingBundle
in interface UserIF
public Object getWorkingBundle(String bundle_id)
UserIF
id
.getWorkingBundle
in interface UserIF
public void removeWorkingBundle(String bundle_id)
UserIF
removeWorkingBundle
in interface UserIF
public void setBundleExpiryAge(long bundleExpiryAge)
bundleExpiryAge
- age in seconds until bundles expire.public void resetBundleExpiryAge()
public void setModel(String model)
UserIF
public String getModel()
UserIF
public void setView(String view)
UserIF
public String getView()
UserIF
public void setSkin(String skin)
UserIF
public String getSkin()
UserIF