Klasse RestrictedBusinessLogicProcessingContext
java.lang.Object
de.uplanet.lucy.server.businesslogic.RestrictedBusinessLogicProcessingContext
- Alle implementierten Schnittstellen:
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.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, IServerBridgeRequest p_request) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdump()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.Get the Web request.Get the Web response.Get the current portal server session.A 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.Get 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.For internal use only.voidpushImpersonateUserGuid(String p_strImpersonateUserGuid) For internal use only.voidpushSession(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(IViewData p_view) Set a class map that contains the values posted by the client for use in the BL.
-
Konstruktordetails
-
RestrictedBusinessLogicProcessingContext
- Parameter:
p_ctx- A processing context that is not itself aIBusinessLogicProcessingContext.- Löst aus:
IllegalArgumentException- Ifp_ctxisnull, or aIBusinessLogicProcessingContext.
-
RestrictedBusinessLogicProcessingContext
public RestrictedBusinessLogicProcessingContext(IProcessingContext p_ctx, IServerBridgeRequest p_request) - Parameter:
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.- Löst aus:
IllegalArgumentException- Ifp_ctxisnull, or aIBusinessLogicProcessingContext.
-
-
Methodendetails
-
getWrappedContext
Get the processing context that was passed to the constructor.- Gibt zurück:
- The processing context that was passed to the constructor.
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Beschreibung aus Schnittstelle kopiert:IProcessingContextGet the Spring application context.- Angegeben von:
getApplicationContextin SchnittstelleIProcessingContext- Gibt zurück:
- The Spring application context.
-
getContextValueProvider
public de.uplanet.lucy.server.contextvalueprovider.IContextValueProvider getContextValueProvider()Beschreibung aus Schnittstelle kopiert:IProcessingContextGet the context value provider.- Angegeben von:
getContextValueProviderin SchnittstelleIProcessingContext- Gibt zurück:
- The context value provider.
-
getConnection
public de.uplanet.jdbc.JdbcConnection getConnection()Beschreibung aus Schnittstelle kopiert:IDatabaseProcessingContextGet the system database connection.- Angegeben von:
getConnectionin SchnittstelleIDatabaseProcessingContext- Gibt zurück:
- The system database connection.
- Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIDatabaseProcessingContext.
-
getSession
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextGet the current portal server session.- Angegeben von:
getSessionin SchnittstelleISessionProcessingContext- Gibt zurück:
- The portal server session.
-
pushSession
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextFor internal use only.- Angegeben von:
pushSessionin SchnittstelleISessionProcessingContext
-
popSession
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextFor internal use only.- Angegeben von:
popSessionin SchnittstelleISessionProcessingContext
-
isImpersonated
public boolean isImpersonated()Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextCheck if the processing context is currently impersonated.- Angegeben von:
isImpersonatedin SchnittstelleISessionProcessingContext- Gibt zurück:
trueif the processing context is currently impersonated, orfalseotherwise.
-
getImpersonateUserGuid
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextGet the GUID of the current impersonation user.- Angegeben von:
getImpersonateUserGuidin SchnittstelleISessionProcessingContext- Gibt zurück:
- The GUID of the impersonation user, or
nullif the processing context is currently not impersonated.
-
pushImpersonateUserGuid
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextFor internal use only.- Angegeben von:
pushImpersonateUserGuidin SchnittstelleISessionProcessingContext
-
popImpersonateUserGuid
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextFor internal use only.- Angegeben von:
popImpersonateUserGuidin SchnittstelleISessionProcessingContext
-
getRequest
Beschreibung aus Schnittstelle kopiert:IRequestProcessingContextGet the Web request.- Angegeben von:
getRequestin SchnittstelleIRequestProcessingContext- Gibt zurück:
- The Web request object.
- Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIRequestProcessingContext.
-
getResponse
Beschreibung aus Schnittstelle kopiert:IHttpProcessingContextGet the Web response.- Angegeben von:
getResponsein SchnittstelleIHttpProcessingContext- Gibt zurück:
- The Web response object.
- Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIHttpProcessingContext.
-
hasView
public boolean hasView()Beschreibung aus Schnittstelle kopiert:IHttpProcessingContextDetermine if this processing context contains a view object.- Angegeben von:
hasViewin SchnittstelleIHttpProcessingContext- Gibt zurück:
trueif the processing context contains a view, orfalseotherwise.
-
getViewData
Beschreibung aus Schnittstelle kopiert: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.- Angegeben von:
getViewDatain SchnittstelleIHttpProcessingContext- Gibt zurück:
- The values that were posted by the client, or
nullif no view was restored on the server. - Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIHttpProcessingContext.
-
setViewData
Beschreibung aus Schnittstelle kopiert:IHttpProcessingContextSet a class map that contains the values posted by the client for use in the BL.- Angegeben von:
setViewDatain SchnittstelleIHttpProcessingContext- Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aIHttpProcessingContext.
-
hasError
public boolean hasError()- Angegeben von:
hasErrorin SchnittstelleIWebProcessingContext- Gibt zurück:
trueif the processing context contains an error, orfalseotherwise..
-
getError
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextGet the context error.- Angegeben von:
getErrorin SchnittstelleIWebProcessingContext- Gibt zurück:
- If
IWebProcessingContext.hasError()istruethis method returns an exception that's related to the cause of the error.
-
setError
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextSet the context error.- Angegeben von:
setErrorin SchnittstelleIWebProcessingContext- Parameter:
p_error- The context error.
-
hasErrorResponseData
public boolean hasErrorResponseData()- Angegeben von:
hasErrorResponseDatain SchnittstelleIWebProcessingContext- Gibt zurück:
trueif the processing context contains error response data, orfalseotherwise.
-
getErrorResponseData
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextGet the context error response data.- Angegeben von:
getErrorResponseDatain SchnittstelleIWebProcessingContext- Gibt zurück:
- If
IWebProcessingContext.hasErrorResponseData()istruethis method returns an error response object.
-
setErrorResponseData
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextSet the context error response data.- Angegeben von:
setErrorResponseDatain SchnittstelleIWebProcessingContext- Parameter:
p_errorResponseData- The context error response data.
-
hasErrorHandlerId
public boolean hasErrorHandlerId()Beschreibung aus Schnittstelle kopiert:IWebProcessingContextGet the identifier of a suitable error handler.- Angegeben von:
hasErrorHandlerIdin SchnittstelleIWebProcessingContext- Gibt zurück:
- The identifier of an error handler, or
null.
-
getErrorHandlerId
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextGet the identifier of a suitable error handler.- Angegeben von:
getErrorHandlerIdin SchnittstelleIWebProcessingContext- Gibt zurück:
- The identifier of an error handler, or
null.
-
setErrorHandlerId
Beschreibung aus Schnittstelle kopiert:IWebProcessingContextSet the identifier of a suitable error handler.- Angegeben von:
setErrorHandlerIdin SchnittstelleIWebProcessingContext- Parameter:
p_strErrorHandlerId- The identifier of an error handler.
-
getUserTimeZone
Beschreibung aus Schnittstelle kopiert:ISessionProcessingContextGet the time zone of the user that is associated with the current session.- Angegeben von:
getUserTimeZonein SchnittstelleISessionProcessingContext- Gibt zurück:
- The time zone of the user, or
nullif no session or no user is in this context. - Löst aus:
de.uplanet.lucy.server.IllegalProcessingContextException- If the current processing context is not aISessionProcessingContext.- Siehe auch:
-
internalPeekRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPeekRecord()Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPeekRecordin SchnittstelleIBusinessLogicProcessingContext
-
internalPushRecord
public void internalPushRecord(de.uplanet.lucy.server.businesslogic.util.IDataRecord p_record) Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPushRecordin SchnittstelleIBusinessLogicProcessingContext
-
internalPopRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPopRecord()Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPopRecordin SchnittstelleIBusinessLogicProcessingContext
-
internalPeekRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPeekRtDataGroup()Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPeekRtDataGroupin SchnittstelleIBusinessLogicProcessingContext
-
internalPushRtDataGroup
public void internalPushRtDataGroup(de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup p_rtdg) Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPushRtDataGroupin SchnittstelleIBusinessLogicProcessingContext
-
internalPopRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPopRtDataGroup()Beschreibung aus Schnittstelle kopiert:IBusinessLogicProcessingContextFor internal use only.- Angegeben von:
internalPopRtDataGroupin SchnittstelleIBusinessLogicProcessingContext
-
dump
- Angegeben von:
dumpin Schnittstellede.uplanet.util.IDumpable
-