de.uplanet.lucy.server.businesslogic
Class RestrictedBusinessLogicProcessingContext
java.lang.Object
de.uplanet.lucy.server.businesslogic.RestrictedBusinessLogicProcessingContext
- 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
@Scriptable
public class RestrictedBusinessLogicProcessingContext
- extends java.lang.Object
- implements de.uplanet.lucy.server.businesslogic.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.
- Version:
- $Revision: 92339 $
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestrictedBusinessLogicProcessingContext
public RestrictedBusinessLogicProcessingContext(de.uplanet.lucy.server.IProcessingContext p_ctx)
- Parameters:
p_ctx
- A processing context that is not itself a IBusinessLogicProcessingContext
.
- Throws:
java.lang.IllegalArgumentException
- If p_ctx
is null
, or a
IBusinessLogicProcessingContext
.
getWrappedContext
public de.uplanet.lucy.server.IProcessingContext getWrappedContext()
- Get the processing context that was passed to the constructor.
- Returns:
- The processing context that was passed to the constructor.
getConnection
public de.uplanet.jdbc.JdbcConnection getConnection()
- Specified by:
getConnection
in interface de.uplanet.lucy.server.IDatabaseProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IDatabaseProcessingContext
.
getSession
public Session getSession()
- Specified by:
getSession
in interface de.uplanet.lucy.server.ISessionProcessingContext
pushSession
public void pushSession(Session p_session)
- Specified by:
pushSession
in interface de.uplanet.lucy.server.ISessionProcessingContext
popSession
public Session popSession()
- Specified by:
popSession
in interface de.uplanet.lucy.server.ISessionProcessingContext
isImpersonated
public boolean isImpersonated()
- Specified by:
isImpersonated
in interface de.uplanet.lucy.server.ISessionProcessingContext
getImpersonateUserGuid
public java.lang.String getImpersonateUserGuid()
- Specified by:
getImpersonateUserGuid
in interface de.uplanet.lucy.server.ISessionProcessingContext
pushImpersonateUserGuid
public void pushImpersonateUserGuid(java.lang.String p_strImpersonateUserGuid)
- Specified by:
pushImpersonateUserGuid
in interface de.uplanet.lucy.server.ISessionProcessingContext
popImpersonateUserGuid
public java.lang.String popImpersonateUserGuid()
- Specified by:
popImpersonateUserGuid
in interface de.uplanet.lucy.server.ISessionProcessingContext
getRequest
public IServerBridgeRequest getRequest()
- Specified by:
getRequest
in interface de.uplanet.lucy.server.connector.IRequestProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IRequestProcessingContext
.
getSharedState
public SharedState getSharedState()
- Specified by:
getSharedState
in interface de.uplanet.lucy.server.ISharedStateProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a ISharedStateProcessingContext
.
getResponse
public IServerBridgeResponse getResponse()
- Specified by:
getResponse
in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IHttpProcessingContext
.
hasView
public boolean hasView()
- Specified by:
hasView
in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IHttpProcessingContext
.
getView
public java.util.Map<javax.xml.namespace.QName,IValueHolder<?>> getView()
- Specified by:
getView
in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IHttpProcessingContext
.
getViewData
public IViewData getViewData()
- Specified by:
getViewData
in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IHttpProcessingContext
.
setViewData
public void setViewData(IViewData p_view)
- Specified by:
setViewData
in interface de.uplanet.lucy.server.engine.http.IHttpProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IHttpProcessingContext
.
hasError
public boolean hasError()
- Specified by:
hasError
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IWebProcessingContext
.
getError
public java.lang.Throwable getError()
- Specified by:
getError
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IWebProcessingContext
.
setError
public void setError(java.lang.Throwable p_error)
- Specified by:
setError
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IWebProcessingContext
.
hasErrorHandlerId
public boolean hasErrorHandlerId()
- Specified by:
hasErrorHandlerId
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
getErrorHandlerId
public java.lang.String getErrorHandlerId()
- Specified by:
getErrorHandlerId
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IWebProcessingContext
.
setErrorHandlerId
public void setErrorHandlerId(java.lang.String p_strErrorHandlerId)
- Specified by:
setErrorHandlerId
in interface de.uplanet.lucy.server.engine.http.IWebProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a IWebProcessingContext
.
getUserTimeZone
public java.util.TimeZone getUserTimeZone()
- Specified by:
getUserTimeZone
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
- Throws:
IllegalProcessingContextException
- If the current processing context is not a ISessionProcessingContext
.
internalPeekRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPeekRecord()
- Specified by:
internalPeekRecord
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
internalPushRecord
public void internalPushRecord(de.uplanet.lucy.server.businesslogic.util.IDataRecord p_record)
- Specified by:
internalPushRecord
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
internalPopRecord
public de.uplanet.lucy.server.businesslogic.util.IDataRecord internalPopRecord()
- Specified by:
internalPopRecord
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
internalPeekRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPeekRtDataGroup()
- Specified by:
internalPeekRtDataGroup
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
internalPushRtDataGroup
public void internalPushRtDataGroup(de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup p_rtdg)
- Specified by:
internalPushRtDataGroup
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
internalPopRtDataGroup
public de.uplanet.lucy.server.businesslogic.rtdata.IRtDataGroup internalPopRtDataGroup()
- Specified by:
internalPopRtDataGroup
in interface de.uplanet.lucy.server.businesslogic.IBusinessLogicProcessingContext
dump
public java.lang.String dump()
- Specified by:
dump
in interface de.uplanet.util.IDumpable
Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.