BEA Systems, Inc.

com.beasys.commerce.portal.flow
Class PortalDestinationDeterminer

java.lang.Object
  |
  +--com.beasys.commerce.foundation.flow.jsp.DefaultDestinationDeterminer
        |
        +--com.beasys.commerce.portal.flow.PortalDestinationDeterminer

public class PortalDestinationDeterminer
extends DefaultDestinationDeterminer
implements PortalAdminConstants

Provides an implementation of the DestinationDeterminer class for use with portal applications.


Field Summary
protected  long lastPortalCheck
          Holds the last time portal definition data was refreshed.
protected  PortalManager portalManager
          Holds reference to the PortalManager
protected  java.lang.String portalName
          The portal name associated with the portal instance.
protected  Portal thePortal
          Hold on to the reference to the portal.
 
Fields inherited from class com.beasys.commerce.foundation.flow.jsp.DefaultDestinationDeterminer
allowAutoLogin, cookieTimeout, defaultDest, documentRoot, groupName, homePage, inited, lastCheckTime, refreshWorkingDir, repositoryDir, sessionComparator, sessionParamName, sessionTimeout, trafficURI, workingDir, workingDirFiles
 
Fields inherited from interface com.beasys.commerce.portal.admin.PortalAdminConstants
PORTAL_MANAGER_A, PORTAL_NAME
 
Fields inherited from interface com.beasys.commerce.axiom.jsp.JspConstants
DATE_FORMAT, DEFAULT_DESTINATION, DEFAULT_SUCCESSOR, DESTINATION_URI, IMMUTABLE_SERVICEMANAGER_HOME_PAGE, JSP_CALENDAR_FEATURES, JSP_COMMERCE_CALENDAR_FEATURES, JSP_PORTALS_BASE_DIRECTORY, JSP_TOOLS_ADMIN_HOME, JSP_TOOLS_BASE_DIRECTORY, JSP_TOOLS_DOC_RTR, JSP_TOOLS_GUIDE_FEATURES, JSP_TOOLS_PROPERTYMGMT_ADMIN_HOME, JSP_TOOLS_USERMGMT_ADMIN_HOME, JSP_TOOLS_UTIL_DIRECTORY, P13N_CACHED_REQUEST, P13N_CACHED_SESSION, REPOSITORY_DIR, SERVICEMANAGER_COOKIE_TIMEOUT, SERVICEMANAGER_CURRENT_PAGE, SERVICEMANAGER_HOME_PAGE, SERVICEMANAGER_LOGGED_IN, SERVICEMANAGER_OVERRIDE_BOOK, SERVICEMANAGER_SESSION_TIMEOUT, SERVICEMANAGER_SUCCESSOR, SERVICEMANAGER_USER, SERVLET_CONFIG, TRAFFIC_URI, TRANSACTION_SERVICE, TRANSACTION_TIMEOUT, USER_TRANS_TIMEOUT, WORKING_DIR, WORKING_DIR_FILES
 
Constructor Summary
PortalDestinationDeterminer()
           
 
Method Summary
 java.lang.String checkSuspended(java.lang.String aDestination)
          Check to see if the portal is suspended.
 Portal getPortal()
          Get the Portal object.
 void getPortalDefinition()
          Get a handle to the portal ejb.
 PortalManager getPortalManager()
          Get portal manager.
 java.lang.String getPortalName()
          Get the name of the portal.
 void init(javax.servlet.ServletConfig aConfig, java.util.Map aPropertySet)
          Initializes the servlet.
 void resetSession(javax.servlet.http.HttpServletRequest aRequest)
          Reset the session to a known state.
 java.lang.String setTransactionalAttributes(javax.servlet.http.HttpServletRequest req, java.lang.String aDestination)
          Set transactional attributes on the request.
 
Methods inherited from class com.beasys.commerce.foundation.flow.jsp.DefaultDestinationDeterminer
appendParameters, baseReset, determineDestination, determineDestination, getAllowAutoLogin, getCookieTimeout, getDefaultDest, getDocumentRoot, getGroupName, getHomePage, getLastCheckTime, getRefreshWorkingDir, getRepositoryDir, getSessionComparator, getSessionParamName, getSessionTimeout, getTrafficURI, getWorkingDir, getWorkingDirFiles, getWorkingDirFiles, getWorkingDirFiles, initSession, isWar, isWar, isWebApp, redirect, stillAlive, userStillExist, validDestination, validDestination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portalName

protected java.lang.String portalName
The portal name associated with the portal instance.

thePortal

protected Portal thePortal
Hold on to the reference to the portal.

lastPortalCheck

protected long lastPortalCheck
Holds the last time portal definition data was refreshed.

portalManager

protected PortalManager portalManager
Holds reference to the PortalManager
Constructor Detail

PortalDestinationDeterminer

public PortalDestinationDeterminer()
Method Detail

getPortalName

public java.lang.String getPortalName()
Get the name of the portal.

getPortal

public Portal getPortal()
Get the Portal object.

init

public void init(javax.servlet.ServletConfig aConfig,
                 java.util.Map aPropertySet)
          throws FlowException
Initializes the servlet. Looks for the property "initial" to set the pageCount variable.
Overrides:
init in class DefaultDestinationDeterminer
Parameters:
aPropertySet - the start up parameters for the portal.
Throws:
FlowException -  

setTransactionalAttributes

public java.lang.String setTransactionalAttributes(javax.servlet.http.HttpServletRequest req,
                                                   java.lang.String aDestination)
                                            throws java.rmi.RemoteException
Set transactional attributes on the request. Possibly get session beans for use throughout the system.
Overrides:
setTransactionalAttributes in class DefaultDestinationDeterminer
Parameters:
req - the HttpServletRequest
aDestination - the destination URL
Returns:
String if it is suspended this will be the suspended url.
Throws:
RemoteException -  

resetSession

public void resetSession(javax.servlet.http.HttpServletRequest aRequest)
Reset the session to a known state.
Overrides:
resetSession in class DefaultDestinationDeterminer
Parameters:
aRequest - the HttpServletRequest to get the session from

getPortalManager

public PortalManager getPortalManager()
                               throws FlowException
Get portal manager.
Returns:
PortalManager
Throws:
FlowException -  

getPortalDefinition

public void getPortalDefinition()
                         throws FlowException
Get a handle to the portal ejb.

checkSuspended

public java.lang.String checkSuspended(java.lang.String aDestination)
                                throws java.rmi.RemoteException,
                                       PortalException,
                                       FlowException
Check to see if the portal is suspended.
Parameters:
aDestination -  
Returns:
String
Throws:
RemoteException -  

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved