|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.webapp.contextsharing.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(com.sas.services.session.SessionContextInterface sessionContext,
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(com.sas.services.user.UserContextInterface user,
HttpServletRequest request)
Constructs the class with the intent of reading the context parameters. |
|
WebappContextParams(com.sas.services.user.UserContextInterface user,
HttpServletRequest request,
boolean useRemoteServices)
Constructs the class with the intent of reading the context parameters. |
|
| Method Summary | |
static void |
cleanSessionParams(com.sas.services.session.SessionContextInterface sessionContext,
String sessionRequestId)
Removes the context parameters from the session. |
String |
getParamRequestAction()
Gets the PFS_REQUEST_ACTION parameter. |
RequestActionMenuData[] |
getParamRequestActionmenu()
Gets the PFS_REQUEST_ACTIONMENU parameter. |
String |
getParamRequestAuthDomain()
Gets the PFS_REQUEST_AUTH_DOMAIN parameter. |
String |
getParamRequestBacklabel()
Deprecated. Use getParamRequestBacklabelList instead. |
List |
getParamRequestBacklabelList()
Gets the PFS_REQUEST_BACKLABEL_LIST parameter. |
String |
getParamRequestBackurl()
Deprecated. Use getParamRequestBackurlList instead. |
List |
getParamRequestBackurlList()
Gets the PFS_REQUEST_BACKURL_LIST parameter. |
Object |
getParamRequestEntity()
Gets the PFS_REQUEST_ENTITY parameter. |
String |
getParamRequestEntitykey()
Gets the PFS_REQUEST_ENTITYKEY parameter. |
String |
getParamRequestLogoffurl()
Gets the PFS_REQUEST_LOGOFFURL parameter. |
String |
getParamRequestPathUrl()
Gets the PFS_REQUEST_PATH_URL parameter. |
String |
getParamRequestSource()
Gets the PFS_REQUEST_SOURCE parameter. |
String |
getParamRequestTimeoutBackurl()
The location to return to if the webapp times out. |
String |
getParamRequestType()
Gets the PFS_REQUEST_TYPE parameter. |
String |
getPortletid()
Returns the PORTAL_PORTLETID parameter. |
Map |
getRequestParams()
Returns the map of request parameters. |
com.sas.services.session.SessionContextInterface |
getSessionContext()
Returns the session context for this class. |
static com.sas.services.session.SessionContextInterface |
getSessionContext(String sessionKey)
Gets the session context for the specified sessionKey. |
static com.sas.services.session.SessionContextInterface |
getSessionContext(String sessionKey,
boolean useRemoteServices)
Deprecated. |
static com.sas.services.session.SessionContextInterface |
getSessionContext(com.sas.services.user.UserContextInterface user,
String sessionKey,
boolean useRemoteServices)
Gets the session context for the specified sessionKey. |
String |
getSessionId()
Returns the session id for this class. |
String |
getSessionRequestId()
Returns the request parameters id. |
String |
getStartURL()
Returns the starting url string before any other parameters are added. |
String |
getURL()
Returns the full url based on the starting url and the parameters that were set. |
void |
setParamRequestAction(String requestAction)
Sets the PFS_REQUEST_ACTION parameter. |
void |
setParamRequestActionmenu(RequestActionMenuData[] requestActionmenu)
Sets the PFS_REQUEST_ACTIONMENU parameter. |
void |
setParamRequestAuthDomain(String authDomain)
Sets the PFS_REQUEST_AUTH_DOMAIN parameter. |
void |
setParamRequestBacklabel(String requestBacklabel)
Deprecated. Use setParamRequestBacklabelList instead. |
void |
setParamRequestBacklabelList(List requestBacklabelList)
Sets the PFS_REQUEST_BACKLABEL_LIST parameter. |
void |
setParamRequestBackurl(String requestBackurl)
Deprecated. Use setParamRequestBackurlList instead. |
void |
setParamRequestBackurlList(List requestBackurlList)
Sets the PFS_REQUEST_BACKURL_LIST parameter. |
void |
setParamRequestEntity(Object requestEntity)
Sets the PFS_REQUEST_ENTITY parameter. |
void |
setParamRequestEntitykey(String requestEntitykey)
Sets the PFS_REQUEST_ENTITYKEY parameter. |
void |
setParamRequestLogoffurl(String requestLogoffurl)
Sets the PFS_REQUEST_LOGOFFURL parameter. |
void |
setParamRequestPathUrl(String requestPathUrl)
Sets the PFS_REQUEST_PATH_URL parameter. |
void |
setParamRequestSource(String requestSource)
Sets the PFS_REQUEST_SOURCE parameter. |
void |
setParamRequestTimeoutBackurl(String requestBackurl)
Sets the PFS_REQUEST_TIMEOUT_BACKURL parameter. |
void |
setParamRequestType(String requestType)
Sets the PFS_REQUEST_TYPE parameter. |
void |
setPortletid(String portletid)
Sets the PORTAL_PORTLETID parameter. |
void |
term()
Removes the context parameters from the session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebappContextParams(com.sas.services.session.SessionContextInterface sessionContext,
String url)
throws 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.RemoteException - If there is an error communicating.
public WebappContextParams(com.sas.services.user.UserContextInterface user,
HttpServletRequest request)
throws com.sas.services.InitializationException,
RemoteException,
com.sas.services.ServiceException
user - The identity of the caller of this methodrequest - The request object from the servlet that is used
to retrieve the parameters from.RemoteException - If there is an error communicating.com.sas.services.InitializationException - If there is an error getting a service.com.sas.services.ServiceException - If there is an error in the service.
public WebappContextParams(com.sas.services.user.UserContextInterface user,
HttpServletRequest request,
boolean useRemoteServices)
throws com.sas.services.InitializationException,
RemoteException,
com.sas.services.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.RemoteException - If there is an error communicating.com.sas.services.InitializationException - If there is an error getting a service.com.sas.services.ServiceException - If there is an error in the service.| Method Detail |
public void term()
throws RemoteException
RemoteException - If there is an error communicating.
public String getURL()
throws RemoteException
RemoteException - If there is a communications error.public com.sas.services.session.SessionContextInterface getSessionContext()
public String getSessionId()
public String getStartURL()
The - starting url string.public Map getRequestParams()
public String getSessionRequestId()
public String getPortletid()
public String getParamRequestType()
public String getParamRequestSource()
public String getParamRequestAction()
public Object getParamRequestEntity()
public String getParamRequestEntitykey()
public String getParamRequestPathUrl()
public RequestActionMenuData[] getParamRequestActionmenu()
public String getParamRequestBackurl()
public String getParamRequestTimeoutBackurl()
public String getParamRequestBacklabel()
public List getParamRequestBackurlList()
public List getParamRequestBacklabelList()
public String getParamRequestLogoffurl()
public String getParamRequestAuthDomain()
public void setPortletid(String portletid)
The - value to add to the PORTAL_PORTLETID key.
public void setParamRequestType(String requestType)
throws RemoteException
The - value to add to the PFS_REQUEST_TYPE key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestSource(String requestSource)
throws RemoteException
The - value to add to the PFS_REQUEST_SOURCE key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestAction(String requestAction)
throws RemoteException
The - value to add to the PFS_REQUEST_ACTION key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestEntity(Object requestEntity)
throws RemoteException
The - value to add to the PFS_REQUEST_ENTITY key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestEntitykey(String requestEntitykey)
throws RemoteException
The - value to add to the PFS_REQUEST_ENTITYKEY key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestPathUrl(String requestPathUrl)
throws RemoteException
The - value to add to the PFS_REQUEST_PATH_URL key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestActionmenu(RequestActionMenuData[] requestActionmenu)
throws RemoteException
The - value to add to the PFS_REQUEST_ACTIONMENU key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestBackurl(String requestBackurl)
throws RemoteException
The - value to add to the PFS_REQUEST_BACKURL key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestTimeoutBackurl(String requestBackurl)
throws RemoteException
The - value to add to the PFS_REQUEST_TIMEOUT_BACKURL key.RemoteException - If there is an error creating the parameters map.
public void setParamRequestBacklabel(String requestBacklabel)
throws RemoteException
The - value to add to the PFS_REQUEST_BACKLABEL key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestBackurlList(List requestBackurlList)
throws RemoteException
The - value to add to the PFS_REQUEST_BACKURL_LIST key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestBacklabelList(List requestBacklabelList)
throws RemoteException
The - value to add to the PFS_REQUEST_BACKLABEL_LIST key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestLogoffurl(String requestLogoffurl)
throws RemoteException
The - value to add to the PFS_REQUEST_LOGOFFURL key.RemoteException - If there is an error creating the parameters
map.
public void setParamRequestAuthDomain(String authDomain)
throws RemoteException
The - value to add to the PFS_REQUEST_AUTH_DOMAIN key.RemoteException - If there is an error creating the parameters
map.
public static com.sas.services.session.SessionContextInterface getSessionContext(String sessionKey)
throws com.sas.services.InitializationException,
RemoteException,
com.sas.services.ServiceException
sessionKey - The session key that specifies the session context.
public static com.sas.services.session.SessionContextInterface getSessionContext(String sessionKey,
boolean useRemoteServices)
throws com.sas.services.InitializationException,
RemoteException,
com.sas.services.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.
public static com.sas.services.session.SessionContextInterface getSessionContext(com.sas.services.user.UserContextInterface user,
String sessionKey,
boolean useRemoteServices)
throws com.sas.services.InitializationException,
RemoteException,
com.sas.services.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.
public static void cleanSessionParams(com.sas.services.session.SessionContextInterface sessionContext,
String sessionRequestId)
throws RemoteException
sessionContext - The session context that holds the context
parameters.sessionRequestId - The id of the context parameters within the
session context.RemoteException - If there is an error communicating.
|
| Portal |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||