Class User

    • Field Detail

      • model

        protected String model
      • 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
    • Method Detail

      • getId

        public String getId()
        Description copied from interface: UserIF
        INTERNAL: Gets the user identifier.
        Specified by:
        getId in interface UserIF
      • 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 interface UserIF
      • 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 interface UserIF
      • 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 interface UserIF
      • getLogMessages

        public List getLogMessages()
        Description copied from interface: UserIF
        INTERNAL: Gets the current log messages from the ring buffer.
        Specified by:
        getLogMessages in interface UserIF
      • 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 interface UserIF
      • clearLog

        public void clearLog()
        Description copied from interface: UserIF
        INTERNAL: Clears the user's log.
        Specified by:
        clearLog in interface UserIF
      • addWorkingBundle

        public void addWorkingBundle​(String bundle_id,
                                     Object object)
        Description copied from interface: UserIF
        INTERNAL: Stores a working bundle of objects under the specified id.
        Specified by:
        addWorkingBundle in interface UserIF
      • 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 identifier id.
        Specified by:
        getWorkingBundle in interface UserIF
      • removeWorkingBundle

        public void removeWorkingBundle​(String bundle_id)
        Description copied from interface: UserIF
        INTERNAL: Removes the specified working bundle.
        Specified by:
        removeWorkingBundle in interface UserIF
      • 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.
        Specified by:
        setModel in interface UserIF
      • getModel

        public String getModel()
        Description copied from interface: UserIF
        Get Model Setting for MVS.
        Specified by:
        getModel in interface UserIF
      • setView

        public void setView​(String view)
        Description copied from interface: UserIF
        Set View Setting.
        Specified by:
        setView in interface UserIF
      • getView

        public String getView()
        Description copied from interface: UserIF
        Get View (Template) Setting for MVS.
        Specified by:
        getView in interface UserIF
      • setSkin

        public void setSkin​(String skin)
        Description copied from interface: UserIF
        Set Skin Setting.
        Specified by:
        setSkin in interface UserIF
      • getSkin

        public String getSkin()
        Description copied from interface: UserIF
        Get Skin (Stylesheet) Setting for MVS.
        Specified by:
        getSkin in interface UserIF