Class RestrictedBusinessLogicProcessingContext
java.lang.Object
de.uplanet.lucy.server.businesslogic.RestrictedBusinessLogicProcessingContext
- All Implemented Interfaces:
- IBusinessLogicProcessingContext,- IRequestProcessingContext,- IHttpProcessingContext,- IWebProcessingContext,- IDatabaseProcessingContext,- IProcessingContext,- ISessionProcessingContext,- ISharedStateProcessingContext,- de.uplanet.lucy.server.ISimpleProcessingContext,- de.uplanet.util.IDumpable
@Scriptable
public class RestrictedBusinessLogicProcessingContext
extends Object
implements IBusinessLogicProcessingContext, de.uplanet.util.IDumpable
This 
IBusinessLogicProcessingContext is used in cases where a
 real business logic processing context is not available, but an operation
 that requires a IBusinessLogicProcessingContext is likely to
 succeed with a restricted context.- 
Constructor SummaryConstructorsConstructorDescriptionRestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) 
- 
Method SummaryModifier and TypeMethodDescriptiondump()org.springframework.context.ApplicationContextGet the Spring application context.de.uplanet.jdbc.JdbcConnectionGet the system database connection.de.uplanet.lucy.server.contextvalueprovider.IContextValueProviderGet the context value provider.getError()Get the context error.Get the identifier of a suitable error handler.Get the context error response data.Get the GUID of the current impersonation user.de.uplanet.lucy.server.connector.IServerBridgeRequestGet the Web request.de.uplanet.lucy.server.connector.IServerBridgeResponseGet the Web response.de.uplanet.lucy.server.session.ISessionGet the current portal server session.de.uplanet.lucy.server.SharedStateA map that is used to store data that are to be shared in the context.Get the time zone of the user that is associated with the current session.de.uplanet.lucy.server.engine.http.IViewDataGet a class that contains the values posted by the client.Get the processing context that was passed to the constructor.booleanhasError()booleanGet the identifier of a suitable error handler.booleanbooleanhasView()Determine if this processing context contains a view object.de.uplanet.lucy.server.businesslogic.util.IDataRecordFor internal use only.de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroupFor internal use only.de.uplanet.lucy.server.businesslogic.util.IDataRecordFor internal use only.de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroupFor internal use only.voidinternalPushRecord(de.uplanet.lucy.server.businesslogic.util.IDataRecord p_record) For internal use only.voidinternalPushRtDataGroup(de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup p_rtdg) For internal use only.booleanCheck if the processing context is currently impersonated.For internal use only.de.uplanet.lucy.server.session.ISessionFor internal use only.voidpushImpersonateUserGuid(String p_strImpersonateUserGuid) For internal use only.voidpushSession(de.uplanet.lucy.server.session.ISession p_session) For internal use only.voidSet the context error.voidsetErrorHandlerId(String p_strErrorHandlerId) Set the identifier of a suitable error handler.voidsetErrorResponseData(ErrorResponseData p_errorResponseData) Set the context error response data.voidsetViewData(de.uplanet.lucy.server.engine.http.IViewData p_view) Set a class map that contains the values posted by the client for use in the BL.
- 
Constructor Details- 
RestrictedBusinessLogicProcessingContext- Parameters:
- p_ctx- A processing context that is not itself a- IBusinessLogicProcessingContext.
- Throws:
- IllegalArgumentException- If- p_ctxis- null, or a- IBusinessLogicProcessingContext.
 
- 
RestrictedBusinessLogicProcessingContextpublic RestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) - Parameters:
- p_ctx- A processing context that is not itself a- IBusinessLogicProcessingContext.
- p_request- A request to be used. This takes precedence over the request that might exist in the given processing context.
- Throws:
- IllegalArgumentException- If- p_ctxis- null, or a- IBusinessLogicProcessingContext.
 
 
- 
- 
Method Details- 
getWrappedContextGet the processing context that was passed to the constructor.- Returns:
- The processing context that was passed to the constructor.
 
- 
getApplicationContextpublic org.springframework.context.ApplicationContext getApplicationContext()Description copied from interface:IProcessingContextGet the Spring application context.- Specified by:
- getApplicationContextin interface- IProcessingContext
- Returns:
- The Spring application context.
 
- 
getContextValueProviderpublic de.uplanet.lucy.server.contextvalueprovider.IContextValueProvider getContextValueProvider()Description copied from interface:IProcessingContextGet the context value provider.- Specified by:
- getContextValueProviderin interface- IProcessingContext
- Returns:
- The context value provider.
 
- 
getConnectionpublic de.uplanet.jdbc.JdbcConnection getConnection()Description copied from interface:IDatabaseProcessingContextGet the system database connection.- Specified by:
- getConnectionin interface- IDatabaseProcessingContext
- Returns:
- The system database connection.
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- IDatabaseProcessingContext.
 
- 
getSessionpublic de.uplanet.lucy.server.session.ISession getSession()Description copied from interface:ISessionProcessingContextGet the current portal server session.- Specified by:
- getSessionin interface- ISessionProcessingContext
- Returns:
- The portal server session.
 
- 
pushSessionpublic void pushSession(de.uplanet.lucy.server.session.ISession p_session) Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
- pushSessionin interface- ISessionProcessingContext
 
- 
popSessionpublic de.uplanet.lucy.server.session.ISession popSession()Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
- popSessionin interface- ISessionProcessingContext
 
- 
isImpersonatedpublic boolean isImpersonated()Description copied from interface:ISessionProcessingContextCheck if the processing context is currently impersonated.- Specified by:
- isImpersonatedin interface- ISessionProcessingContext
- Returns:
- trueif the processing context is currently impersonated, or- falseotherwise.
 
- 
getImpersonateUserGuidDescription copied from interface:ISessionProcessingContextGet the GUID of the current impersonation user.- Specified by:
- getImpersonateUserGuidin interface- ISessionProcessingContext
- Returns:
- The GUID of the impersonation user, or nullif the processing context is currently not impersonated.
 
- 
pushImpersonateUserGuidDescription copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
- pushImpersonateUserGuidin interface- ISessionProcessingContext
 
- 
popImpersonateUserGuidDescription copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
- popImpersonateUserGuidin interface- ISessionProcessingContext
 
- 
getRequestpublic de.uplanet.lucy.server.connector.IServerBridgeRequest getRequest()Description copied from interface:IRequestProcessingContextGet the Web request.- Specified by:
- getRequestin interface- IRequestProcessingContext
- Returns:
- The Web request object.
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- IRequestProcessingContext.
 
- 
getResponsepublic de.uplanet.lucy.server.connector.IServerBridgeResponse getResponse()Description copied from interface:IHttpProcessingContextGet the Web response.- Specified by:
- getResponsein interface- IHttpProcessingContext
- Returns:
- The Web response object.
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- IHttpProcessingContext.
 
- 
hasViewpublic boolean hasView()Description copied from interface:IHttpProcessingContextDetermine if this processing context contains a view object.- Specified by:
- hasViewin interface- IHttpProcessingContext
- Returns:
- trueif the processing context contains a view, or- falseotherwise.
 
- 
getViewDatapublic de.uplanet.lucy.server.engine.http.IViewData getViewData()Description copied from interface:IHttpProcessingContextGet 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:
- getViewDatain interface- IHttpProcessingContext
- Returns:
- The values that were posted by the client, or nullif no view was restored on the server.
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- IHttpProcessingContext.
 
- 
setViewDatapublic void setViewData(de.uplanet.lucy.server.engine.http.IViewData p_view) Description copied from interface:IHttpProcessingContextSet a class map that contains the values posted by the client for use in the BL.- Specified by:
- setViewDatain interface- IHttpProcessingContext
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- IHttpProcessingContext.
 
- 
hasErrorpublic boolean hasError()- Specified by:
- hasErrorin interface- IWebProcessingContext
- Returns:
- trueif the processing context contains an error, or- falseotherwise..
 
- 
getErrorDescription copied from interface:IWebProcessingContextGet the context error.- Specified by:
- getErrorin interface- IWebProcessingContext
- Returns:
- If IWebProcessingContext.hasError()istruethis method returns an exception that's related to the cause of the error.
 
- 
setErrorDescription copied from interface:IWebProcessingContextSet the context error.- Specified by:
- setErrorin interface- IWebProcessingContext
- Parameters:
- p_error- The context error.
 
- 
hasErrorResponseDatapublic boolean hasErrorResponseData()- Specified by:
- hasErrorResponseDatain interface- IWebProcessingContext
- Returns:
- trueif the processing context contains error response data, or- falseotherwise.
 
- 
getErrorResponseDataDescription copied from interface:IWebProcessingContextGet the context error response data.- Specified by:
- getErrorResponseDatain interface- IWebProcessingContext
- Returns:
- If IWebProcessingContext.hasErrorResponseData()istruethis method returns an error response object.
 
- 
setErrorResponseDataDescription copied from interface:IWebProcessingContextSet the context error response data.- Specified by:
- setErrorResponseDatain interface- IWebProcessingContext
- Parameters:
- p_errorResponseData- The context error response data.
 
- 
hasErrorHandlerIdpublic boolean hasErrorHandlerId()Description copied from interface:IWebProcessingContextGet the identifier of a suitable error handler.- Specified by:
- hasErrorHandlerIdin interface- IWebProcessingContext
- Returns:
- The identifier of an error handler, or null.
 
- 
getErrorHandlerIdDescription copied from interface:IWebProcessingContextGet the identifier of a suitable error handler.- Specified by:
- getErrorHandlerIdin interface- IWebProcessingContext
- Returns:
- The identifier of an error handler, or null.
 
- 
setErrorHandlerIdDescription copied from interface:IWebProcessingContextSet the identifier of a suitable error handler.- Specified by:
- setErrorHandlerIdin interface- IWebProcessingContext
- Parameters:
- p_strErrorHandlerId- The identifier of an error handler.
 
- 
getUserTimeZoneDescription copied from interface:ISessionProcessingContextGet the time zone of the user that is associated with the current session.- Specified by:
- getUserTimeZonein interface- ISessionProcessingContext
- Returns:
- The time zone of the user, or nullif no session or no user is in this context.
- Throws:
- de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not a- ISessionProcessingContext.
- See Also:
 
- 
internalPeekRecordpublic de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPeekRecord()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPeekRecordin interface- IBusinessLogicProcessingContext
 
- 
internalPushRecordpublic void internalPushRecord(de.uplanet.lucy.server.businesslogic.util.IDataRecord p_record) Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPushRecordin interface- IBusinessLogicProcessingContext
 
- 
internalPopRecordpublic de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPopRecord()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPopRecordin interface- IBusinessLogicProcessingContext
 
- 
internalPeekRtDataGrouppublic de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPeekRtDataGroup()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPeekRtDataGroupin interface- IBusinessLogicProcessingContext
 
- 
internalPushRtDataGrouppublic void internalPushRtDataGroup(de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup p_rtdg) Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPushRtDataGroupin interface- IBusinessLogicProcessingContext
 
- 
internalPopRtDataGrouppublic de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPopRtDataGroup()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
- internalPopRtDataGroupin interface- IBusinessLogicProcessingContext
 
- 
dump- Specified by:
- dumpin interface- de.uplanet.util.IDumpable
 
 
-