Class User
java.lang.Object
net.ontopia.topicmaps.nav2.impl.framework.User
- All Implemented Interfaces:
Serializable,UserIF
INTERNAL: implementation of UserIF for holding data relevant to one
user session.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected UserFilterContextStoreprotected HistoryMapprotected Stringprotected final longprotected HistoryMapprotected final intprotected Stringprotected Stringprotected Mapprotected Stringprotected MapFields inherited from interface net.ontopia.topicmaps.nav2.core.UserIF
COMMON_USER, DEFAULT_MODEL, DEFAULT_SKIN, DEFAULT_VIEW -
Constructor Summary
ConstructorsConstructorDescriptionUser()default constructor using a common user id.User(String userId, NavigatorConfigurationIF navConf) User(NavigatorConfigurationIF navConf) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLogMessage(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.INTERNAL: Gets the Filter Context object which stores for each topicmap a set of themes the user has selected.INTERNAL: Gets the last used objects (instances of Object, specialisation through the web application) which the user has visited.getId()INTERNAL: Gets the user identifier.INTERNAL: Gets the current log messages from the ring buffer.getModel()Get Model Setting for MVS.getSkin()Get Skin (Stylesheet) Setting for MVS.getView()Get View (Template) Setting for MVS.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 identifierid.voidremoveWorkingBundle(String bundle_id) INTERNAL: Removes the specified working bundle.voidINTERNAL: 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.voidSet Model Setting.voidvoidSet Skin Setting.voidSet View Setting.
-
Field Details
-
id
-
model
-
view
-
skin
-
filterContext
-
history
-
log
-
workingBundles
-
timeStamps
-
bundleExpiryAge
protected long bundleExpiryAge -
initialBundleExpiryAge
protected final long initialBundleExpiryAge -
max_bundles
protected final int max_bundles
-
-
Constructor Details
-
User
public User()default constructor using a common user id.
-
-
Method Details
-
getId
Description copied from interface:UserIFINTERNAL: Gets the user identifier. -
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
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
-
getLogMessages
Description copied from interface:UserIFINTERNAL: Gets the current log messages from the ring buffer.- Specified by:
getLogMessagesin interfaceUserIF
-
addLogMessage
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
Description copied from interface:UserIFINTERNAL: Stores a working bundle of objects under the specifiedid.- Specified by:
addWorkingBundlein interfaceUserIF
-
getWorkingBundle
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
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
Description copied from interface:UserIFSet Model Setting. -
getModel
Description copied from interface:UserIFGet Model Setting for MVS. -
setView
Description copied from interface:UserIFSet View Setting. -
getView
Description copied from interface:UserIFGet View (Template) Setting for MVS. -
setSkin
Description copied from interface:UserIFSet Skin Setting. -
getSkin
Description copied from interface:UserIFGet Skin (Stylesheet) Setting for MVS. -
setMVS
-