|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.webapp.contextsharing.WebappContextParams
public class WebappContextParams
This class encapsulates the setting and getting of shared data between web applications.
To use this class for setting parameters, use the constructor which takes a SessionContextInterface and a startURL. Then call the various set methods to set the needed data. When done setting the data, call the getURL method to get the full URL that should be used to start the application.
To use this class for getting parameters, use the constructor which takes a HttpServletRequest. then call the various get methods needed. When you are done with the parameter data (not the session context), call the term method to cleanup the shared parameters.
Constructor Summary | |
---|---|
WebappContextParams(SessionContextInterface sessionContext)
Constructs the class with the intent of populating the context parameters. |
|
WebappContextParams(SessionContextInterface sessionContext,
java.lang.String url)
Constructs the class with the intent of populating the context parameters and then calling the getURL method to get the full URL. |
|
WebappContextParams(SessionContextInterface sessionContext,
java.lang.String url,
boolean shouldReceiverDestroyWACP)
Constructs the class with the intent of populating the context parameters and then calling the getURL method to get the full URL. |
|
WebappContextParams(UserContextInterface user,
javax.servlet.http.HttpServletRequest request)
Constructs the class with the intent of reading the context parameters. |
|
WebappContextParams(UserContextInterface user,
javax.servlet.http.HttpServletRequest request,
boolean useRemoteServices)
Constructs the class with the intent of reading the context parameters. |
|
WebappContextParams(UserContextInterface user,
javax.servlet.http.HttpServletRequest request,
com.sas.webapp.components.services.ServicesManager servicesManager)
Constructs the class with the intent of reading the context parameters. |
Method Summary | |
---|---|
static void |
cleanSessionParams(SessionContextInterface sessionContext,
java.lang.String sessionRequestId)
Removes the context parameters from the session. |
java.lang.String |
getParamRequestAction()
Gets the PFS_REQUEST_ACTION parameter. |
RequestActionMenuData[] |
getParamRequestActionmenu()
Gets the PFS_REQUEST_ACTIONMENU parameter. |
java.lang.String |
getParamRequestAuthDomain()
Gets the PFS_REQUEST_AUTH_DOMAIN parameter. |
java.util.List |
getParamRequestBackdescriptionList()
Gets the PFS_REQUEST_BACKDESCRIPTION_LIST parameter. |
java.lang.String |
getParamRequestBacklabel()
Deprecated. Use getParamRequestBacklabelList instead. |
java.util.List |
getParamRequestBacklabelList()
Gets the PFS_REQUEST_BACKLABEL_LIST parameter. |
java.lang.String |
getParamRequestBackurl()
Deprecated. Use getParamRequestBackurlList instead. |
java.util.List |
getParamRequestBackurlList()
Gets the PFS_REQUEST_BACKURL_LIST parameter. |
java.lang.Object |
getParamRequestEntity()
Gets the PFS_REQUEST_ENTITY parameter. |
java.lang.String |
getParamRequestEntitykey()
Gets the PFS_REQUEST_ENTITYKEY parameter. |
java.lang.String |
getParamRequestLogoffurl()
Gets the PFS_REQUEST_LOGOFFURL parameter. |
java.lang.String |
getParamRequestPathUrl()
Gets the PFS_REQUEST_PATH_URL parameter. |
java.lang.String |
getParamRequestSource()
Gets the PFS_REQUEST_SOURCE parameter. |
java.lang.String |
getParamRequestTimeoutBackurl()
The location to return to if the webapp times out. |
java.lang.String |
getParamRequestType()
Gets the PFS_REQUEST_TYPE parameter. |
java.lang.String |
getPortletid()
Returns the PORTAL_PORTLETID parameter. |
static SessionContextInterface |
getRemoteSessionContext(UserContextInterface privlUser,
java.lang.String sessionKey)
Gets the remote SessionContext for the specified sessionKey using the privleged UserContext |
java.util.Map |
getRequestParams()
Returns the map of request parameters. |
SessionContextInterface |
getSessionContext()
Returns the session context for this class. |
static SessionContextInterface |
getSessionContext(java.lang.String sessionKey)
Gets the session context for the specified sessionKey. |
static SessionContextInterface |
getSessionContext(java.lang.String sessionKey,
boolean useRemoteServices)
Deprecated. |
static SessionContextInterface |
getSessionContext(UserContextInterface user,
java.lang.String sessionKey,
boolean useRemoteServices)
Gets the SessionContext for the specified sessionKey. |
static SessionContextInterface |
getSessionContext(UserContextInterface user,
java.lang.String sessionKey,
SessionServiceInterface sessionService)
Gets the SessionContext for the specified sessionKey and SessionService |
java.lang.String |
getSessionId()
Returns the session id for this class. |
java.lang.String |
getSessionKeyParam()
Returns the key parameter that can be used to find a remote SessionContext |
java.lang.String |
getSessionRequestId()
Returns the request parameters id. |
java.lang.String |
getStartURL()
Returns the starting url string before any other parameters are added. |
java.lang.String |
getURL()
Returns the full url based on the starting url and the parameters that were set. |
void |
setParamRequestAction(java.lang.String requestAction)
Sets the PFS_REQUEST_ACTION parameter. |
void |
setParamRequestActionmenu(RequestActionMenuData[] requestActionmenu)
Sets the PFS_REQUEST_ACTIONMENU parameter. |
void |
setParamRequestAuthDomain(java.lang.String authDomain)
Sets the PFS_REQUEST_AUTH_DOMAIN parameter. |
void |
setParamRequestBackdescriptionList(java.util.List requestBackdescList)
Sets the PFS_REQUEST_BACKDESCRIPTION_LIST parameter. |
void |
setParamRequestBacklabel(java.lang.String requestBacklabel)
Deprecated. Use setParamRequestBacklabelList instead. |
void |
setParamRequestBacklabelList(java.util.List requestBacklabelList)
Sets the PFS_REQUEST_BACKLABEL_LIST parameter. |
void |
setParamRequestBackurl(java.lang.String requestBackurl)
Deprecated. Use setParamRequestBackurlList instead. |
void |
setParamRequestBackurlList(java.util.List requestBackurlList)
Sets the PFS_REQUEST_BACKURL_LIST parameter. |
void |
setParamRequestEntity(java.lang.Object requestEntity)
Sets the PFS_REQUEST_ENTITY parameter. |
void |
setParamRequestEntitykey(java.lang.String requestEntitykey)
Sets the PFS_REQUEST_ENTITYKEY parameter. |
void |
setParamRequestLogoffurl(java.lang.String requestLogoffurl)
Sets the PFS_REQUEST_LOGOFFURL parameter. |
void |
setParamRequestPathUrl(java.lang.String requestPathUrl)
Sets the PFS_REQUEST_PATH_URL parameter. |
void |
setParamRequestSource(java.lang.String requestSource)
Sets the PFS_REQUEST_SOURCE parameter. |
void |
setParamRequestTimeoutBackurl(java.lang.String requestBackurl)
Sets the PFS_REQUEST_TIMEOUT_BACKURL parameter. |
void |
setParamRequestType(java.lang.String requestType)
Sets the PFS_REQUEST_TYPE parameter. |
void |
setPortletid(java.lang.String portletid)
Sets the PORTAL_PORTLETID parameter. |
void |
setStartURL(java.lang.String startURL)
|
void |
term()
Removes the context parameters from the session. |
Constructor Detail |
---|
public WebappContextParams(SessionContextInterface sessionContext, java.lang.String url, boolean shouldReceiverDestroyWACP) throws java.rmi.RemoteException
sessionContext
- The session context that is to be shared with the web
application.url
- The url for the web application (before the parameters are
added to it.
java.rmi.RemoteException
- If there is an error communicating.public WebappContextParams(SessionContextInterface sessionContext, java.lang.String url) throws java.rmi.RemoteException
sessionContext
- The session context that is to be shared with the web
application.url
- The url for the web application (before the parameters are
added to it.
java.rmi.RemoteException
- If there is an error communicating.public WebappContextParams(SessionContextInterface sessionContext) throws java.rmi.RemoteException
sessionContext
- The session context that is to be shared with the web
application.
java.rmi.RemoteException
- If there is an error communicating.public WebappContextParams(UserContextInterface user, javax.servlet.http.HttpServletRequest request) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- The identity of the caller of this methodrequest
- The request object from the servlet that is used to retrieve
the parameters from.
java.rmi.RemoteException
- If there is an error communicating.
InitializationException
- If there is an error getting a service.
ServiceException
- If there is an error in the service.public WebappContextParams(UserContextInterface user, javax.servlet.http.HttpServletRequest request, boolean useRemoteServices) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- Identity of the user making this callrequest
- The request object from the servlet that is used to retrieve
the parameters from.useRemoteServices
- true if remote services should be used to retreive the session
context, false otherwise.
java.rmi.RemoteException
- If there is an error communicating.
InitializationException
- If there is an error getting a service.
ServiceException
- If there is an error in the service.public WebappContextParams(UserContextInterface user, javax.servlet.http.HttpServletRequest request, com.sas.webapp.components.services.ServicesManager servicesManager) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- Identity of the user making this callrequest
- The request object from the servlet that is used to retrieve
the parameters from.useRemoteServices
- true if remote services should be used to retreive the session
context, false otherwise.
java.rmi.RemoteException
- If there is an error communicating.
InitializationException
- If there is an error getting a service.
ServiceException
- If there is an error in the service.Method Detail |
---|
public void term() throws java.rmi.RemoteException
java.rmi.RemoteException
- If there is an error communicating.public java.lang.String getSessionKeyParam() throws java.rmi.RemoteException
java.rmi.RemoteException
- If there is a communications error.public java.lang.String getURL() throws java.rmi.RemoteException
java.rmi.RemoteException
- If there is a communications error.public SessionContextInterface getSessionContext()
public java.lang.String getSessionId()
public java.lang.String getStartURL()
The
- starting url string.public java.util.Map getRequestParams()
public java.lang.String getSessionRequestId()
public java.lang.String getPortletid()
public java.lang.String getParamRequestType()
public java.lang.String getParamRequestSource()
public java.lang.String getParamRequestAction()
public java.lang.Object getParamRequestEntity()
public java.lang.String getParamRequestEntitykey()
public java.lang.String getParamRequestPathUrl()
public RequestActionMenuData[] getParamRequestActionmenu()
public java.lang.String getParamRequestBackurl()
public java.lang.String getParamRequestTimeoutBackurl()
public java.lang.String getParamRequestBacklabel()
public java.util.List getParamRequestBackurlList()
public java.util.List getParamRequestBacklabelList()
public java.util.List getParamRequestBackdescriptionList()
public java.lang.String getParamRequestLogoffurl()
public java.lang.String getParamRequestAuthDomain()
public void setPortletid(java.lang.String portletid) throws java.rmi.RemoteException
The
- value to add to the PORTAL_PORTLETID key.
java.rmi.RemoteException
public void setParamRequestType(java.lang.String requestType) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_TYPE key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestSource(java.lang.String requestSource) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_SOURCE key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestAction(java.lang.String requestAction) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_ACTION key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestEntity(java.lang.Object requestEntity) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_ENTITY key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestEntitykey(java.lang.String requestEntitykey) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_ENTITYKEY key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestPathUrl(java.lang.String requestPathUrl) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_PATH_URL key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestActionmenu(RequestActionMenuData[] requestActionmenu) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_ACTIONMENU key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestBackurl(java.lang.String requestBackurl) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_BACKURL key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestTimeoutBackurl(java.lang.String requestBackurl) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_TIMEOUT_BACKURL key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestBacklabel(java.lang.String requestBacklabel) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_BACKLABEL key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestBackurlList(java.util.List requestBackurlList) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_BACKURL_LIST key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestBacklabelList(java.util.List requestBacklabelList) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_BACKLABEL_LIST key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestBackdescriptionList(java.util.List requestBackdescList) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_BACKDESCTIPTION_LIST key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestLogoffurl(java.lang.String requestLogoffurl) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_LOGOFFURL key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setParamRequestAuthDomain(java.lang.String authDomain) throws java.rmi.RemoteException
The
- value to add to the PFS_REQUEST_AUTH_DOMAIN key.
java.rmi.RemoteException
- If there is an error creating the parameters map.public void setStartURL(java.lang.String startURL)
starting
- url string before any other parameters are added.public static SessionContextInterface getSessionContext(java.lang.String sessionKey) throws InitializationException, java.rmi.RemoteException, ServiceException
sessionKey
- The session key that specifies the session context.
InitializationException
java.rmi.RemoteException
ServiceException
public static SessionContextInterface getSessionContext(java.lang.String sessionKey, boolean useRemoteServices) throws InitializationException, java.rmi.RemoteException, ServiceException
sessionKey
- The session key that specifies the session context.useRemoteServices
- true if remote services should be used to retreive the session
context, false otherwise.
InitializationException
java.rmi.RemoteException
ServiceException
public static SessionContextInterface getRemoteSessionContext(UserContextInterface privlUser, java.lang.String sessionKey) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- The privleged usersessionKey
- The session key that specifies the session context.
InitializationException
java.rmi.RemoteException
ServiceException
public static SessionContextInterface getSessionContext(UserContextInterface user, java.lang.String sessionKey, boolean useRemoteServices) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- The user calling the methodsessionKey
- The session key that specifies the session context.useRemoteServices
- true if remote services should be used to retreive the session
context, false otherwise.
InitializationException
java.rmi.RemoteException
ServiceException
public static SessionContextInterface getSessionContext(UserContextInterface user, java.lang.String sessionKey, SessionServiceInterface sessionService) throws InitializationException, java.rmi.RemoteException, ServiceException
user
- The user calling the methodsessionKey
- The session key that specifies the session context.SessionServiceInterface
-
InitializationException
java.rmi.RemoteException
ServiceException
public static void cleanSessionParams(SessionContextInterface sessionContext, java.lang.String sessionRequestId) throws java.rmi.RemoteException
sessionContext
- The session context that holds the context parameters.sessionRequestId
- The id of the context parameters within the session context.
java.rmi.RemoteException
- If there is an error communicating.
|
Portal |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |