Class PortletSession

java.lang.Object
com.appiancorp.suiteapi.web.portal.PortletSession
All Implemented Interfaces:
Serializable

public class PortletSession extends Object implements Serializable
Encapsulates HTTP session attributes that are specific to a given portlet. Each portlet has its own dedicated space in which to store session attributes.
See Also:
  • Method Details

    • setAttribute

      public void setAttribute(String name, Object value)
      Set the value of a given attribute.
      Parameters:
      name - The name under which to store the value.
      value - The value to store under the name.
    • getAttribute

      public Object getAttribute(String name)
      Get the value of a given attribute.
      Parameters:
      name - The name of the attribute to get.
      Returns:
      The value of the attribute.
    • removeAttribute

      public Object removeAttribute(String name)
      Remove a given attribute.
      Parameters:
      name - The name of the attribute to remove.
      Returns:
      The value of the attribute removed.
    • getAttributes

      public Map getAttributes()
      Get all the attributes as a map.
      Returns:
      The map.
    • getNew

      public boolean getNew()
      Determine whether the current portlet is newly created.
      Returns:
      true if it is, false if not.