Class JPPFWebSession

java.lang.Object
org.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
org.apache.wicket.authroles.authentication.AuthenticatedWebSession
All Implemented Interfaces:
Serializable, org.apache.wicket.event.IEventSink, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Session>, org.apache.wicket.util.io.IClusterable

public class JPPFWebSession extends JPPFServletContainerAuthenticatedWebSession
The WebSession class. It handles container-based authentication and holds the data used to render the views in the web console.
Author:
Laurent Cohen
See Also:
  • Field Details

    • NODE_FILTER_ACTIVE_PROP

      public static final String NODE_FILTER_ACTIVE_PROP
      Name of the settings property for the node filter's active state.
      See Also:
  • Constructor Details

    • JPPFWebSession

      public JPPFWebSession(org.apache.wicket.request.Request request)
      Initialize a new session.
      Parameters:
      request - the request.
  • Method Details

    • onInvalidate

      public void onInvalidate()
      Overrides:
      onInvalidate in class org.apache.wicket.Session
    • getTableTreeData

      public TableTreeData getTableTreeData(org.jppf.ui.treetable.TreeViewType type)
      Parameters:
      type - the type of view for which to obtain data.
      Returns:
      the data elements for the specified type of view.
    • getTopologyData

      public TopologyTreeData getTopologyData()
      Returns:
      the data elements for the grid topology.
    • getJobsData

      public JobsTreeData getJobsData()
      Returns:
      the data elements for the jobs view.
    • getHealthData

      public HealthTreeData getHealthData()
      Returns:
      the data elements for the JVM health view.
    • get

      public static JPPFWebSession get()
      Get the associated JPPF session object.
      Returns:
      a JPPFWebSession instance.
    • authenticate

      public boolean authenticate(String user, String pwd)
      Overrides:
      authenticate in class JPPFServletContainerAuthenticatedWebSession
    • superAuthenticate

      protected boolean superAuthenticate(String user, String pwd)
    • getUserSettings

      public UserSettings getUserSettings()
      Returns:
      the user settings, or null if the user is not authenticated.
    • getCurrentDriver

      public org.jppf.client.monitoring.topology.TopologyDriver getCurrentDriver()
      Returns:
      the currently selected driver.
    • setCurrentDriver

      public void setCurrentDriver(org.jppf.client.monitoring.topology.TopologyDriver currentDriver)
      Set the current driver.
      Parameters:
      currentDriver - the driver to set.
    • getSignedInUser

      public String getSignedInUser()
      Returns:
      the name of the authenticated user, or null if the user is not authenticated.
    • getUserRoles

      protected List<String> getUserRoles()
      Returns:
      the roles of the current signed-in user, if any.
    • getNodeFilter

      public TopologyFilter getNodeFilter()
      Returns:
      the user's node filter
    • isShowIP

      public boolean isShowIP()
      Returns:
      whether to show IP addresses vs. host names.
    • setShowIP

      public void setShowIP(boolean showIP)
      Parameters:
      showIP - true to show IP addresses, false to show host names.