Class User
- java.lang.Object
-
- net.ontopia.topicmaps.nav2.impl.framework.User
-
- All Implemented Interfaces:
Serializable,UserIF
public class User extends Object implements UserIF, Serializable
INTERNAL: implementation of UserIF for holding data relevant to one user session.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longbundleExpiryAgeprotected UserFilterContextStorefilterContextprotected HistoryMaphistoryprotected Stringidprotected longinitialBundleExpiryAgeprotected HistoryMaplogprotected intmax_bundlesprotected Stringmodelprotected Stringskinprotected MaptimeStampsprotected Stringviewprotected MapworkingBundles-
Fields inherited from interface net.ontopia.topicmaps.nav2.core.UserIF
COMMON_USER, DEFAULT_MODEL, DEFAULT_SKIN, DEFAULT_VIEW
-
-
Constructor Summary
Constructors Constructor Description User()default constructor using a common user id.User(String userId, NavigatorConfigurationIF navConf)User(NavigatorConfigurationIF navConf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogMessage(String message)INTERNAL: Adds a message to the user's log.voidaddWorkingBundle(String bundle_id, Object object)INTERNAL: Stores a working bundle of objects under the specifiedid.voidclearLog()INTERNAL: Clears the user's log.UserFilterContextStoregetFilterContext()INTERNAL: Gets the Filter Context object which stores for each topicmap a set of themes the user has selected.HistoryMapgetHistory()INTERNAL: Gets the last used objects (instances of Object, specialisation through the web application) which the user has visited.StringgetId()INTERNAL: Gets the user identifier.ListgetLogMessages()INTERNAL: Gets the current log messages from the ring buffer.StringgetModel()Get Model Setting for MVS.StringgetSkin()Get Skin (Stylesheet) Setting for MVS.StringgetView()Get View (Template) Setting for MVS.ObjectgetWorkingBundle(String bundle_id)INTERNAL: Gets an ordered lists of objects (parameter name as key, list of objects as value) grouped together by the given identifierid.voidremoveWorkingBundle(String bundle_id)INTERNAL: Removes the specified working bundle.voidresetBundleExpiryAge()INTERNAL: Resets bundleExpiryAge to its initial value.voidsetBundleExpiryAge(long bundleExpiryAge)INTERNAL: Sets bundleExpiryAge to a given value.voidsetHistory(HistoryMap history)INTERNAL: Sets the last used objects that are in relation to the user and his path through the web application.voidsetModel(String model)Set Model Setting.voidsetMVS(String model, String view, String skin)voidsetSkin(String skin)Set Skin Setting.voidsetView(String view)Set View Setting.
-
-
-
Field Detail
-
id
protected String id
-
model
protected String model
-
view
protected String view
-
skin
protected String skin
-
filterContext
protected transient UserFilterContextStore filterContext
-
history
protected transient HistoryMap history
-
log
protected transient HistoryMap log
-
workingBundles
protected transient Map workingBundles
-
timeStamps
protected transient Map timeStamps
-
bundleExpiryAge
protected long bundleExpiryAge
-
initialBundleExpiryAge
protected final long initialBundleExpiryAge
-
max_bundles
protected final int max_bundles
-
-
Constructor Detail
-
User
public User()
default constructor using a common user id.
-
User
public User(NavigatorConfigurationIF navConf)
-
User
public User(String userId, NavigatorConfigurationIF navConf)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:UserIFINTERNAL: Gets the user identifier.
-
getFilterContext
public UserFilterContextStore getFilterContext()
Description copied from interface:UserIFINTERNAL: Gets the Filter Context object which stores for each topicmap a set of themes the user has selected.- Specified by:
getFilterContextin interfaceUserIF
-
getHistory
public HistoryMap getHistory()
Description copied from interface:UserIFINTERNAL: Gets the last used objects (instances of Object, specialisation through the web application) which the user has visited.- Specified by:
getHistoryin interfaceUserIF
-
setHistory
public void setHistory(HistoryMap history)
Description copied from interface:UserIFINTERNAL: Sets the last used objects that are in relation to the user and his path through the web application.- Specified by:
setHistoryin interfaceUserIF
-
getLogMessages
public List getLogMessages()
Description copied from interface:UserIFINTERNAL: Gets the current log messages from the ring buffer.- Specified by:
getLogMessagesin interfaceUserIF
-
addLogMessage
public void addLogMessage(String message)
Description copied from interface:UserIFINTERNAL: Adds a message to the user's log. The order of these messages is preserved, but if too many messages are added, the latest ones are lost.- Specified by:
addLogMessagein interfaceUserIF
-
clearLog
public void clearLog()
Description copied from interface:UserIFINTERNAL: Clears the user's log.
-
addWorkingBundle
public void addWorkingBundle(String bundle_id, Object object)
Description copied from interface:UserIFINTERNAL: Stores a working bundle of objects under the specifiedid.- Specified by:
addWorkingBundlein interfaceUserIF
-
getWorkingBundle
public Object getWorkingBundle(String bundle_id)
Description copied from interface:UserIFINTERNAL: Gets an ordered lists of objects (parameter name as key, list of objects as value) grouped together by the given identifierid.- Specified by:
getWorkingBundlein interfaceUserIF
-
removeWorkingBundle
public void removeWorkingBundle(String bundle_id)
Description copied from interface:UserIFINTERNAL: Removes the specified working bundle.- Specified by:
removeWorkingBundlein interfaceUserIF
-
setBundleExpiryAge
public void setBundleExpiryAge(long bundleExpiryAge)
INTERNAL: Sets bundleExpiryAge to a given value.- Parameters:
bundleExpiryAge- age in seconds until bundles expire.
-
resetBundleExpiryAge
public void resetBundleExpiryAge()
INTERNAL: Resets bundleExpiryAge to its initial value.
-
setModel
public void setModel(String model)
Description copied from interface:UserIFSet Model Setting.
-
getModel
public String getModel()
Description copied from interface:UserIFGet Model Setting for MVS.
-
setView
public void setView(String view)
Description copied from interface:UserIFSet View Setting.
-
getView
public String getView()
Description copied from interface:UserIFGet View (Template) Setting for MVS.
-
setSkin
public void setSkin(String skin)
Description copied from interface:UserIFSet Skin Setting.
-
getSkin
public String getSkin()
Description copied from interface:UserIFGet Skin (Stylesheet) Setting for MVS.
-
-