Package org.jppf.admin.web
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
org.jppf.admin.web.security.JPPFServletContainerAuthenticatedWebSession
org.jppf.admin.web.JPPFWebSession
- 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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the settings property for the node filter's active state.Fields inherited from class org.apache.wicket.Session
clientInfo, SESSION_ATTRIBUTE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJPPFWebSession(org.apache.wicket.request.Request request) Initialize a new session. -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String user, String pwd) static JPPFWebSessionget()Get the associated JPPF session object.org.jppf.client.monitoring.topology.TopologyDrivergetTableTreeData(org.jppf.ui.treetable.TreeViewType type) booleanisShowIP()voidvoidsetCurrentDriver(org.jppf.client.monitoring.topology.TopologyDriver currentDriver) Set the current driver.voidsetShowIP(boolean showIP) protected booleansuperAuthenticate(String user, String pwd) Methods inherited from class org.jppf.admin.web.security.JPPFServletContainerAuthenticatedWebSession
getRequest, getRoles, getUserName, signOutMethods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
invalidate, isSignedIn, signIn, signInMethods inherited from class org.apache.wicket.protocol.http.WebSession
generateNewSessionId, getClientInfo, newBrowserInfoPageMethods inherited from class org.apache.wicket.Session
bind, changeSessionId, clear, debug, detach, dirty, dirty, endRequest, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isRtlLanguage, isRtlLocale, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn
-
Field Details
-
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:
onInvalidatein classorg.apache.wicket.Session
-
getTableTreeData
- Parameters:
type- the type of view for which to obtain data.- Returns:
- the data elements for the specified type of view.
-
getTopologyData
- Returns:
- the data elements for the grid topology.
-
getJobsData
- Returns:
- the data elements for the jobs view.
-
getHealthData
- Returns:
- the data elements for the JVM health view.
-
get
Get the associated JPPF session object.- Returns:
- a
JPPFWebSessioninstance.
-
authenticate
- Overrides:
authenticatein classJPPFServletContainerAuthenticatedWebSession
-
superAuthenticate
-
getUserSettings
- Returns:
- the user settings, or
nullif 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
- Returns:
- the name of the authenticated user, or
nullif the user is not authenticated.
-
getUserRoles
- Returns:
- the roles of the current signed-in user, if any.
-
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-trueto show IP addresses,falseto show host names.
-