|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.targeting.RepositoryLookup
public class RepositoryLookup
This servlet looks for a RepositoryItem by its id from within a Repository or by its url. If the item is found, output is rendered. If the item is not found or a parameter is not supplied, empty is rendered.
The input paramters for this servlet are:
The output parameters for this servlet are:
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
RepositoryLookup()
|
Method Summary | |
---|---|
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 |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public RepositoryLookup()
Method Detail |
---|
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" event
javax.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 event
javax.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 request
javax.servlet.ServletException
- an application specific error occurred
processing this request
java.io.IOException
- an error occurred reading data from the request
or writing data to the response.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |