public class RepositoryLookup extends DynamoServlet
The input paramters for this servlet are:
The output parameters for this servlet are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
RepositoryLookup() |
Modifier and Type | Method and Description |
---|---|
protected void |
commitTransaction(javax.transaction.Transaction pTransaction)
Commits the supplied transaction
|
void |
doStartService()
Resolve the global Dynamo transaction manager and assign it to the
transactionManager property for use in the service method. |
protected javax.transaction.Transaction |
ensureTransaction()
This method ensures that a transaction exists before returning.
|
void |
fireViewItemEvent(DynamoHttpServletRequest pRequest,
java.lang.Object pTarget,
RepositoryItem pProfile,
boolean pFireContentTypeEvent,
boolean pFireContentEvent,
boolean pFireViewItemEvent,
java.lang.String pFireContentEventItemDescriptor)
Sends a View Content event to its listeners.
|
void |
fireViewItemEvent(DynamoHttpServletRequest pRequest,
java.lang.Object pTarget,
RepositoryItem pProfile,
boolean pFireContentTypeEvent,
boolean pFireContentEvent,
java.lang.String pFireContentEventItemDescriptor)
Sends a View Content event to its listeners.
|
atg.service.event.EventDistributor |
getDistributor()
The EventDistributor to send fired events to.
|
JNDIInitialContextPool |
getInitialContextPool() |
atg.userprofiling.dms.DPSMessageSource |
getMessageSource()
The class responsible for publishing messages.
|
java.lang.String |
getProfilePath()
The full name of the Profile component for every request.
|
javax.transaction.TransactionManager |
getTransactionManager()
Returns property TransactionManager.
|
boolean |
isEnsureTransaction()
Returns property EnsureTransaction
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Take the repository and id parameters and try to find
the repository item.
|
void |
setDistributor(atg.service.event.EventDistributor pValue)
The EventDistributor to send fired events to.
|
void |
setEnsureTransaction(boolean pEnsureTransaction)
Sets property EnsureTransaction
|
void |
setInitialContextPool(JNDIInitialContextPool pInitialContextPool) |
void |
setMessageSource(atg.userprofiling.dms.DPSMessageSource pMessageSource)
The class responsible for publishing messages.
|
void |
setProfilePath(java.lang.String pValue)
The full name of the Profile component for every request.
|
void |
setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
Sets property TransactionManager
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public void setDistributor(atg.service.event.EventDistributor pValue)
public atg.service.event.EventDistributor getDistributor()
public void setMessageSource(atg.userprofiling.dms.DPSMessageSource pMessageSource)
public atg.userprofiling.dms.DPSMessageSource getMessageSource()
public void setProfilePath(java.lang.String pValue)
public java.lang.String getProfilePath()
public void setTransactionManager(javax.transaction.TransactionManager pTransactionManager)
public javax.transaction.TransactionManager getTransactionManager()
public void setEnsureTransaction(boolean pEnsureTransaction)
public boolean isEnsureTransaction()
public void setInitialContextPool(JNDIInitialContextPool pInitialContextPool)
public JNDIInitialContextPool getInitialContextPool()
public void doStartService() throws ServiceException
transactionManager
property for use in the service method.doStartService
in class GenericService
ServiceException
- if the Service had a problem starting uppublic void fireViewItemEvent(DynamoHttpServletRequest pRequest, java.lang.Object pTarget, RepositoryItem pProfile, boolean pFireContentTypeEvent, boolean pFireContentEvent, java.lang.String pFireContentEventItemDescriptor) throws javax.servlet.ServletException
pRequest
- the servlet request which generated the eventpTarget
- expected to be a ContentRepositoryItempProfile
- the profilepFireContentTypeEvent
- whether to fire a "ContentType" eventpFireContentEvent
- whether to fire a "Content" eventjavax.servlet.ServletException
- if firing the event on the D4
distribution channel was unable to find the repository view.public void fireViewItemEvent(DynamoHttpServletRequest pRequest, java.lang.Object pTarget, RepositoryItem pProfile, boolean pFireContentTypeEvent, boolean pFireContentEvent, boolean pFireViewItemEvent, java.lang.String pFireContentEventItemDescriptor) throws javax.servlet.ServletException
pRequest
- the servlet request which generated the eventpTarget
- expected to be a ContentRepositoryItempProfile
- the profilepFireContentTypeEvent
- whether to fire a "ContentType" eventpFireContentEvent
- whether to fire a "Content" eventpFireViewItemEvent
- whether to fire a ViewItem eventjavax.servlet.ServletException
- if firing the event on the D4
distribution channel was unable to find the repository view.protected javax.transaction.Transaction ensureTransaction()
protected void commitTransaction(javax.transaction.Transaction pTransaction)
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- the request to be processedpResponse
- the response object for this requestjavax.servlet.ServletException
- an application specific error occurred
processing this requestjava.io.IOException
- an error occurred reading data from the request
or writing data to the response.