de.uplanet.lucy.server.businesslogic
Class BusinessLogicProcessingContext

java.lang.Object
  extended by de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
      extended by de.uplanet.lucy.server.businesslogic.BusinessLogicProcessingContext
All Implemented Interfaces:
de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext, de.uplanet.lucy.server.connector.IRequestProcessingContext, de.uplanet.lucy.server.engine.http.IHttpProcessingContext, de.uplanet.lucy.server.engine.http.IWebProcessingContext, de.uplanet.lucy.server.IDatabaseProcessingContext, de.uplanet.lucy.server.IProcessingContext, de.uplanet.lucy.server.ISessionProcessingContext, de.uplanet.lucy.server.ISharedStateProcessingContext, de.uplanet.util.IDumpable

public final class BusinessLogicProcessingContext
extends de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext

Note: This processing context is not thread-safe.

Version:
$Revision: 82684 $

Constructor Summary
BusinessLogicProcessingContext(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_delegate)
           
 
Method Summary
 de.uplanet.jdbc.JdbcConnection getConnection()
          Get the system database connection.
 java.lang.Throwable getError()
          Get the context error.
 java.lang.String getErrorHandlerId()
          Get the identifier of a suitable error handler.
 IServerBridgeRequest getRequest()
           
 IServerBridgeResponse getResponse()
           
 Session getSession()
          Get the current portal server session.
 SharedState getSharedState()
          A map that is used to store data that are to be shared in the context.
 java.util.Map<javax.xml.namespace.QName,IValueHolder<?>> getView()
          Get a map that contains the values posted by the client.
 de.uplanet.lucy.server.engine.http.IViewData getViewData()
          Get a class that contains the values posted by the client.
 boolean hasError()
           
 boolean hasErrorHandlerId()
          Get the identifier of a suitable error handler.
 boolean hasView()
          Determine if this processing context contains a view object.
 void setError(java.lang.Throwable p_error)
          Set the context error.
 void setErrorHandlerId(java.lang.String p_strErrorHandlerId)
          Set the identifier of a suitable error handler.
 void setViewData(de.uplanet.lucy.server.engine.http.IViewData p_viewData)
          Set a class map that contains the values posted by the client for use in the BL.
 
Methods inherited from class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
dump, getUserTimeZone, internalPeekRecord, internalPeekRtDataGroup, internalPopRecord, internalPopRtDataGroup, internalPushRecord, internalPushRtDataGroup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessLogicProcessingContext

public BusinessLogicProcessingContext(de.uplanet.lucy.server.engine.http.IWebProcessingContext p_delegate)
Method Detail

getConnection

public de.uplanet.jdbc.JdbcConnection getConnection()
Description copied from interface: de.uplanet.lucy.server.IDatabaseProcessingContext
Get the system database connection.

Specified by:
getConnection in interface de.uplanet.lucy.server.IDatabaseProcessingContext
Overrides:
getConnection in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
Always null.
See Also:
IDatabaseProcessingContext.getConnection()

getSession

public Session getSession()
Description copied from interface: de.uplanet.lucy.server.ISessionProcessingContext
Get the current portal server session.

Specified by:
getSession in interface de.uplanet.lucy.server.ISessionProcessingContext
Overrides:
getSession in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
Always null.
See Also:
ISessionProcessingContext.getSession()

getSharedState

public SharedState getSharedState()
Description copied from interface: de.uplanet.lucy.server.ISharedStateProcessingContext
A map that is used to store data that are to be shared in the context.

Note: Do not misuse the shared state.

Specified by:
getSharedState in interface de.uplanet.lucy.server.ISharedStateProcessingContext
Overrides:
getSharedState in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
A reference to the map that contains the shared data.

getRequest

public IServerBridgeRequest getRequest()
Specified by:
getRequest in interface de.uplanet.lucy.server.connector.IRequestProcessingContext
Overrides:
getRequest in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
Always null.
See Also:
IRequestProcessingContext.getRequest()

getResponse

public IServerBridgeResponse getResponse()
Specified by:
getResponse in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Overrides:
getResponse in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
Always null.
See Also:
IHttpProcessingContext.getResponse()

hasView

public boolean hasView()
Description copied from interface: de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Determine if this processing context contains a view object.

Specified by:
hasView in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Overrides:
hasView in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
true if the processing context contains a view, or false otherwise.

getView

public java.util.Map<javax.xml.namespace.QName,IValueHolder<?>> getView()
Description copied from interface: de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Get a map that contains the values posted by the client.

Specified by:
getView in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Overrides:
getView in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
The values that were posted by the client, or null if no view was restored on the server.

getError

public java.lang.Throwable getError()
Description copied from interface: de.uplanet.lucy.server.engine.http.IWebProcessingContext
Get the context error.

Specified by:
getError in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
getError in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
If IWebProcessingContext.hasError() is true this method returns an exception that's related to the cause of the error.

hasError

public boolean hasError()
Specified by:
hasError in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
hasError in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
true if the processing context contains an error.

setError

public void setError(java.lang.Throwable p_error)
Description copied from interface: de.uplanet.lucy.server.engine.http.IWebProcessingContext
Set the context error.

Specified by:
setError in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
setError in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Parameters:
p_error - The context error.

hasErrorHandlerId

public boolean hasErrorHandlerId()
Description copied from interface: de.uplanet.lucy.server.engine.http.IWebProcessingContext
Get the identifier of a suitable error handler.

Specified by:
hasErrorHandlerId in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
hasErrorHandlerId in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
The identifier of an error handler, or null.

getErrorHandlerId

public java.lang.String getErrorHandlerId()
Description copied from interface: de.uplanet.lucy.server.engine.http.IWebProcessingContext
Get the identifier of a suitable error handler.

Specified by:
getErrorHandlerId in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
getErrorHandlerId in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
The identifier of an error handler, or null.

setErrorHandlerId

public void setErrorHandlerId(java.lang.String p_strErrorHandlerId)
Description copied from interface: de.uplanet.lucy.server.engine.http.IWebProcessingContext
Set the identifier of a suitable error handler.

Specified by:
setErrorHandlerId in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
Overrides:
setErrorHandlerId in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Parameters:
p_strErrorHandlerId - The identifier of an error handler.

getViewData

public de.uplanet.lucy.server.engine.http.IViewData getViewData()
Description copied from interface: de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Get a class that contains the values posted by the client. Used in the BL to get values by the field guid, control name, control guid.

Specified by:
getViewData in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Overrides:
getViewData in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext
Returns:
The values that were posted by the client, or null if no view was restored on the server.

setViewData

public void setViewData(de.uplanet.lucy.server.engine.http.IViewData p_viewData)
Description copied from interface: de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Set a class map that contains the values posted by the client for use in the BL.

Specified by:
setViewData in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
Overrides:
setViewData in class de.uplanet.lucy.server.businesslogic.AbstractBusinessLogicProcessingContext


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.