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 Summary
ConstructorsConstructorDescriptionRestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) -
Method Summary
Modifier 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 aIBusinessLogicProcessingContext.- Throws:
IllegalArgumentException- Ifp_ctxisnull, or aIBusinessLogicProcessingContext.
-
RestrictedBusinessLogicProcessingContext
public RestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) - Parameters:
p_ctx- A processing context that is not itself aIBusinessLogicProcessingContext.p_request- A request to be used. This takes precedence over the request that might exist in the given processing context.- Throws:
IllegalArgumentException- Ifp_ctxisnull, or aIBusinessLogicProcessingContext.
-
-
Method Details
-
getWrappedContext
Get the processing context that was passed to the constructor.- Returns:
- The processing context that was passed to the constructor.
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Description copied from interface:IProcessingContextGet the Spring application context.- Specified by:
getApplicationContextin interfaceIProcessingContext- Returns:
- The Spring application context.
-
getContextValueProvider
public de.uplanet.lucy.server.contextvalueprovider.IContextValueProvider getContextValueProvider()Description copied from interface:IProcessingContextGet the context value provider.- Specified by:
getContextValueProviderin interfaceIProcessingContext- Returns:
- The context value provider.
-
getConnection
public de.uplanet.jdbc.JdbcConnection getConnection()Description copied from interface:IDatabaseProcessingContextGet the system database connection.- Specified by:
getConnectionin interfaceIDatabaseProcessingContext- Returns:
- The system database connection.
- Throws:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIDatabaseProcessingContext.
-
getSession
public de.uplanet.lucy.server.session.ISession getSession()Description copied from interface:ISessionProcessingContextGet the current portal server session.- Specified by:
getSessionin interfaceISessionProcessingContext- Returns:
- The portal server session.
-
pushSession
public void pushSession(de.uplanet.lucy.server.session.ISession p_session) Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
pushSessionin interfaceISessionProcessingContext
-
popSession
public de.uplanet.lucy.server.session.ISession popSession()Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
popSessionin interfaceISessionProcessingContext
-
isImpersonated
public boolean isImpersonated()Description copied from interface:ISessionProcessingContextCheck if the processing context is currently impersonated.- Specified by:
isImpersonatedin interfaceISessionProcessingContext- Returns:
trueif the processing context is currently impersonated, orfalseotherwise.
-
getImpersonateUserGuid
Description copied from interface:ISessionProcessingContextGet the GUID of the current impersonation user.- Specified by:
getImpersonateUserGuidin interfaceISessionProcessingContext- Returns:
- The GUID of the impersonation user, or
nullif the processing context is currently not impersonated.
-
pushImpersonateUserGuid
Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
pushImpersonateUserGuidin interfaceISessionProcessingContext
-
popImpersonateUserGuid
Description copied from interface:ISessionProcessingContextFor internal use only.- Specified by:
popImpersonateUserGuidin interfaceISessionProcessingContext
-
getRequest
public de.uplanet.lucy.server.connector.IServerBridgeRequest getRequest()Description copied from interface:IRequestProcessingContextGet the Web request.- Specified by:
getRequestin interfaceIRequestProcessingContext- Returns:
- The Web request object.
- Throws:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIRequestProcessingContext.
-
getResponse
public de.uplanet.lucy.server.connector.IServerBridgeResponse getResponse()Description copied from interface:IHttpProcessingContextGet the Web response.- Specified by:
getResponsein interfaceIHttpProcessingContext- Returns:
- The Web response object.
- Throws:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIHttpProcessingContext.
-
hasView
public boolean hasView()Description copied from interface:IHttpProcessingContextDetermine if this processing context contains a view object.- Specified by:
hasViewin interfaceIHttpProcessingContext- Returns:
trueif the processing context contains a view, orfalseotherwise.
-
getViewData
public 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 interfaceIHttpProcessingContext- 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 aIHttpProcessingContext.
-
setViewData
public 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 interfaceIHttpProcessingContext- Throws:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIHttpProcessingContext.
-
hasError
public boolean hasError()- Specified by:
hasErrorin interfaceIWebProcessingContext- Returns:
trueif the processing context contains an error, orfalseotherwise..
-
getError
Description copied from interface:IWebProcessingContextGet the context error.- Specified by:
getErrorin interfaceIWebProcessingContext- Returns:
- If
IWebProcessingContext.hasError()istruethis method returns an exception that's related to the cause of the error.
-
setError
Description copied from interface:IWebProcessingContextSet the context error.- Specified by:
setErrorin interfaceIWebProcessingContext- Parameters:
p_error- The context error.
-
hasErrorResponseData
public boolean hasErrorResponseData()- Specified by:
hasErrorResponseDatain interfaceIWebProcessingContext- Returns:
trueif the processing context contains error response data, orfalseotherwise.
-
getErrorResponseData
Description copied from interface:IWebProcessingContextGet the context error response data.- Specified by:
getErrorResponseDatain interfaceIWebProcessingContext- Returns:
- If
IWebProcessingContext.hasErrorResponseData()istruethis method returns an error response object.
-
setErrorResponseData
Description copied from interface:IWebProcessingContextSet the context error response data.- Specified by:
setErrorResponseDatain interfaceIWebProcessingContext- Parameters:
p_errorResponseData- The context error response data.
-
hasErrorHandlerId
public boolean hasErrorHandlerId()Description copied from interface:IWebProcessingContextGet the identifier of a suitable error handler.- Specified by:
hasErrorHandlerIdin interfaceIWebProcessingContext- Returns:
- The identifier of an error handler, or
null.
-
getErrorHandlerId
Description copied from interface:IWebProcessingContextGet the identifier of a suitable error handler.- Specified by:
getErrorHandlerIdin interfaceIWebProcessingContext- Returns:
- The identifier of an error handler, or
null.
-
setErrorHandlerId
Description copied from interface:IWebProcessingContextSet the identifier of a suitable error handler.- Specified by:
setErrorHandlerIdin interfaceIWebProcessingContext- Parameters:
p_strErrorHandlerId- The identifier of an error handler.
-
getUserTimeZone
Description copied from interface:ISessionProcessingContextGet the time zone of the user that is associated with the current session.- Specified by:
getUserTimeZonein interfaceISessionProcessingContext- 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 aISessionProcessingContext.- See Also:
-
internalPeekRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPeekRecord()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPeekRecordin interfaceIBusinessLogicProcessingContext
-
internalPushRecord
public void internalPushRecord(de.uplanet.lucy.server.businesslogic.util.IDataRecord p_record) Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPushRecordin interfaceIBusinessLogicProcessingContext
-
internalPopRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPopRecord()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPopRecordin interfaceIBusinessLogicProcessingContext
-
internalPeekRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPeekRtDataGroup()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPeekRtDataGroupin interfaceIBusinessLogicProcessingContext
-
internalPushRtDataGroup
public void internalPushRtDataGroup(de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup p_rtdg) Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPushRtDataGroupin interfaceIBusinessLogicProcessingContext
-
internalPopRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPopRtDataGroup()Description copied from interface:IBusinessLogicProcessingContextFor internal use only.- Specified by:
internalPopRtDataGroupin interfaceIBusinessLogicProcessingContext
-
dump
- Specified by:
dumpin interfacede.uplanet.util.IDumpable
-