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 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
-
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 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 specifiedid
.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 identifierid
.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.
-
-
-
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:UserIF
INTERNAL: Gets the user identifier.
-
getFilterContext
public UserFilterContextStore getFilterContext()
Description copied from interface:UserIF
INTERNAL: Gets the Filter Context object which stores for each topicmap a set of themes the user has selected.- Specified by:
getFilterContext
in interfaceUserIF
-
getHistory
public HistoryMap getHistory()
Description copied from interface:UserIF
INTERNAL: Gets the last used objects (instances of Object, specialisation through the web application) which the user has visited.- Specified by:
getHistory
in interfaceUserIF
-
setHistory
public void setHistory(HistoryMap history)
Description copied from interface:UserIF
INTERNAL: Sets the last used objects that are in relation to the user and his path through the web application.- Specified by:
setHistory
in interfaceUserIF
-
getLogMessages
public List getLogMessages()
Description copied from interface:UserIF
INTERNAL: Gets the current log messages from the ring buffer.- Specified by:
getLogMessages
in interfaceUserIF
-
addLogMessage
public void addLogMessage(String message)
Description copied from interface:UserIF
INTERNAL: 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:
addLogMessage
in interfaceUserIF
-
clearLog
public void clearLog()
Description copied from interface:UserIF
INTERNAL: Clears the user's log.
-
addWorkingBundle
public void addWorkingBundle(String bundle_id, Object object)
Description copied from interface:UserIF
INTERNAL: Stores a working bundle of objects under the specifiedid
.- Specified by:
addWorkingBundle
in interfaceUserIF
-
getWorkingBundle
public Object getWorkingBundle(String bundle_id)
Description copied from interface:UserIF
INTERNAL: Gets an ordered lists of objects (parameter name as key, list of objects as value) grouped together by the given identifierid
.- Specified by:
getWorkingBundle
in interfaceUserIF
-
removeWorkingBundle
public void removeWorkingBundle(String bundle_id)
Description copied from interface:UserIF
INTERNAL: Removes the specified working bundle.- Specified by:
removeWorkingBundle
in 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:UserIF
Set Model Setting.
-
getModel
public String getModel()
Description copied from interface:UserIF
Get Model Setting for MVS.
-
setView
public void setView(String view)
Description copied from interface:UserIF
Set View Setting.
-
getView
public String getView()
Description copied from interface:UserIF
Get View (Template) Setting for MVS.
-
setSkin
public void setSkin(String skin)
Description copied from interface:UserIF
Set Skin Setting.
-
getSkin
public String getSkin()
Description copied from interface:UserIF
Get Skin (Stylesheet) Setting for MVS.
-
-