|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.nav2.impl.framework.User
public class User
INTERNAL: implementation of UserIF for holding data relevant to one user session.
Field Summary | |
---|---|
protected long |
bundleExpiryAge
|
protected UserFilterContextStore |
filterContext
|
protected HistoryMap |
history
|
protected java.lang.String |
id
|
protected long |
initialBundleExpiryAge
|
protected RingBuffer |
log
|
protected int |
max_bundles
|
protected java.lang.String |
model
|
protected java.lang.String |
skin
|
protected java.util.Map |
timeStamps
|
protected java.lang.String |
view
|
protected java.util.Map |
workingBundles
|
Fields inherited from interface net.ontopia.topicmaps.nav2.core.UserIF |
---|
COMMON_USER, DEFAULT_MODEL, DEFAULT_SKIN, DEFAULT_VIEW |
Constructor Summary | |
---|---|
User()
default constructor using a common user id. |
|
User(NavigatorConfigurationIF navConf)
|
|
User(java.lang.String userId,
NavigatorConfigurationIF navConf)
|
Method Summary | |
---|---|
void |
addLogMessage(java.lang.String message)
INTERNAL: Adds a message to the user's log. |
void |
addWorkingBundle(java.lang.String bundle_id,
java.lang.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. |
java.lang.String |
getId()
INTERNAL: Gets the user identifier. |
org.slf4j.Logger |
getLogger()
INTERNAL: Gets the Slf4J Logger object to which the
User object should transmit the log messages. |
java.util.List |
getLogMessages()
INTERNAL: Gets the current log messages from the ring buffer. |
java.lang.String |
getModel()
Get Model Setting for MVS. |
java.lang.String |
getSkin()
Get Skin (Stylesheet) Setting for MVS. |
java.lang.String |
getView()
Get View (Template) Setting for MVS. |
java.lang.Object |
getWorkingBundle(java.lang.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(java.lang.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(java.lang.String model)
Set Model Setting. |
void |
setMVS(java.lang.String model,
java.lang.String view,
java.lang.String skin)
|
void |
setSkin(java.lang.String skin)
Set Skin Setting. |
void |
setView(java.lang.String view)
Set View Setting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String id
protected java.lang.String model
protected java.lang.String view
protected java.lang.String skin
protected transient UserFilterContextStore filterContext
protected transient HistoryMap history
protected transient RingBuffer log
protected transient java.util.Map workingBundles
protected transient java.util.Map timeStamps
protected long bundleExpiryAge
protected final long initialBundleExpiryAge
protected final int max_bundles
Constructor Detail |
---|
public User()
public User(NavigatorConfigurationIF navConf)
public User(java.lang.String userId, NavigatorConfigurationIF navConf)
Method Detail |
---|
public java.lang.String getId()
UserIF
getId
in interface 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 org.slf4j.Logger getLogger()
UserIF
Logger
object to which the
User object should transmit the log messages. This method is
now deprecated, and we recommend using addLogMessage()
instead.
getLogger
in interface UserIF
public java.util.List getLogMessages()
UserIF
getLogMessages
in interface UserIF
public void addLogMessage(java.lang.String message)
UserIF
addLogMessage
in interface UserIF
public void clearLog()
UserIF
clearLog
in interface UserIF
public void addWorkingBundle(java.lang.String bundle_id, java.lang.Object object)
UserIF
id
.
addWorkingBundle
in interface UserIF
public java.lang.Object getWorkingBundle(java.lang.String bundle_id)
UserIF
id
.
getWorkingBundle
in interface UserIF
public void removeWorkingBundle(java.lang.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(java.lang.String model)
UserIF
setModel
in interface UserIF
public java.lang.String getModel()
UserIF
getModel
in interface UserIF
public void setView(java.lang.String view)
UserIF
setView
in interface UserIF
public java.lang.String getView()
UserIF
getView
in interface UserIF
public void setSkin(java.lang.String skin)
UserIF
setSkin
in interface UserIF
public java.lang.String getSkin()
UserIF
getSkin
in interface UserIF
public void setMVS(java.lang.String model, java.lang.String view, java.lang.String skin)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |