Class NmSessionBean

java.lang.Object
com.ptc.netmarkets.util.beans.NmSessionBean
All Implemented Interfaces:
Externalizable, Serializable

public class NmSessionBean extends Object implements Externalizable
The NmSessionBean is meant to contain data that will remain the same for the entire session. Such as the user's current time zone or whether or not trail is enabled. There are also certain scenarios where information is stored in the session bean temporarily to live across just a couple requests. For example, when dynamic refresh of a table/comonent occurs the dynamic refresh info may be stored temporarily in the session bean by the request that initiates the dynamic refresh. A subsequest request would access that info to build the proper response for the refresh.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • getStorage

      public ConcurrentHashMap<Object,Object> getStorage()
      Gets the value of the attribute: storage; Session wide storage for use by application developers.

      Supported API: true
      Returns:
      ConcurrentHashMap
    • isCAD

      @Deprecated public boolean isCAD()
      Deprecated.
      see isCad
      Gets the value of the attribute: CAD; determines if client should see cad only actions

      Supported API: true
      Returns:
      boolean
    • addExpandedNode

      public void addExpandedNode(NmCommandBean cb, String context, String anode)
      adds an expanded node to the context of the tree

      Supported API: true
    • removeExpandedNode

      public void removeExpandedNode(NmCommandBean cb, String context, String anode)
      removes an expanded node from the context of the tree

      Supported API: true
    • getExpandedNodes

      public Set<String> getExpandedNodes(NmCommandBean cb, String context)
      gets expanded node list of the tree context
      Parameters:
      context - - context of the tree

      Supported API: true
    • removeAllNodes

      public void removeAllNodes(NmCommandBean cb, String context)
      removes all nodes of the tree context
      Parameters:
      context - - context of the tree

      Supported API: true