public class WebServiceContextFactory extends ServiceContextFactory
ServiceContext
used within the product
and in other web applications.ADMIN_USERNAME
Constructor and Description |
---|
WebServiceContextFactory() |
Modifier and Type | Method and Description |
---|---|
static ServiceContext |
getServiceContext(javax.servlet.http.HttpServletRequest q_)
|
static ServiceContext |
getServiceContext(javax.servlet.http.HttpServletRequest q_,
com.appiancorp.services.ASLIdentity id_)
Gets the
ServiceContext for the request and
ASLIdentity . |
static ServiceContext |
getServiceContext(javax.servlet.http.HttpServletRequest q_,
java.lang.String username_,
java.lang.String grantorUsername)
Get the
ServiceContext for the request and username. |
static ServiceContext |
getServiceContext(javax.servlet.http.HttpSession session_)
Gets the
ASLIdentity from the session and gets a service
context for it. |
static ServiceContext |
getServiceContext(javax.servlet.http.HttpSession session_,
com.appiancorp.services.ASLIdentity id,
java.lang.String grantorUsername)
Gets the
ServiceContext for the session and
ASLIdentity . |
areI18nSettingsPopulated, createEscalatedServiceContext, createEscalatedServiceContext, getAdministratorServiceContext, getAdministratorServiceContextForMigration, getAdministratorUser, getServiceContext, getServiceContext, getUser, populateServiceContextI18nSettings, populateServiceContextI18nSettings
public static ServiceContext getServiceContext(javax.servlet.http.HttpServletRequest q_)
ServiceContext
associated with the user data in the
HttpServletRequest
's HttpSession
. If there is no
ServiceContext
associated with the user data, it creates
a new WebServiceContext
for the web session. If there is
no user data in the HttpSession
, it returns null
.q_
- the requestpublic static ServiceContext getServiceContext(javax.servlet.http.HttpServletRequest q_, java.lang.String username_, java.lang.String grantorUsername)
ServiceContext
for the request and username. If
the request has a context associated with it and the context's username
is the same as the username passed in, returns the context. If the
context's username is different or no context exists, return a new
WebServiceContext
.q_
- the requestusername_
- the web user's usernamegrantorUsername
- the name of the user granting privilege escalationpublic static ServiceContext getServiceContext(javax.servlet.http.HttpServletRequest q_, com.appiancorp.services.ASLIdentity id_)
ServiceContext
for the request and
ASLIdentity
. If the request has a context associated with it
and the context's username is the same as the username associated with the
ASLIdentity
argument, returns
the context. If the context's username is different or no context exists,
return a new WebServiceContext
.q_
- the requestid_
- the ASLIdentity
public static ServiceContext getServiceContext(javax.servlet.http.HttpSession session_)
ASLIdentity
from the session and gets a service
context for it. If there is no ASLIdentity
in the session,
returns null
.session_
- the sessionpublic static ServiceContext getServiceContext(javax.servlet.http.HttpSession session_, com.appiancorp.services.ASLIdentity id, java.lang.String grantorUsername)
ServiceContext
for the session and
ASLIdentity
. If the session has a context associated with it
and the context's username is the same as the username associated with the
ASLIdentity
argument, returns
the context. If the context's username is different or no context exists,
return a new WebServiceContext
.session_
- the sessionid
- the ASLIdentity
grantorUsername
- Copyright © 2003-2024 Appian Corporation. All Rights Reserved.