| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.endeca.assembler.cartridge.renderer.ContentItemToRendererPathImpl
public class ContentItemToRendererPathImpl
An implementation of the 
 atg.endeca.assembler.cartridge.renderer.ContentItemToRendererPath interface.
 Determines the JSP renderer for a particular ContentItem. The renderer is
 determined using the ContentItems item type. The formatString property
 indicates the format of the path of the JSP renderer. Placeholders in the
 format string are replaced with the current ContentItems type and using the
 array of replacementValueProducers.
| Field Summary | |
|---|---|
| static java.lang.String | CLASS_VERSIONClass version string | 
| 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 | |
|---|---|
| ContentItemToRendererPathImpl() | |
| Method Summary | |
|---|---|
| protected  void | addMappedProperties(ContentItem pItem,
                    java.util.Map pReplacements)Copy the property values specified by getContentItemToReplacementPropertyNames() to the replacements map. | 
|  java.lang.String | getCartridgeTypePropertyName() | 
|  java.util.Map<java.lang.String,java.lang.String> | getContentItemToReplacementPropertyNames()Returns property contentItemToReplacementPropertyNames. | 
|  ContentItem | getExampleContentItem()Return a sample ContentItem, whose type is "exampleType" and the properties defined by the exampleContentProperties property. | 
|  java.util.Map<java.lang.String,java.lang.String> | getExampleContentProperties()Returns property exampleContentProperties. | 
|  java.lang.String | getExamplePathForCurrentRequest()Return an example path based on the current request and any example properties. | 
|  java.lang.String | getFormatString() | 
|  java.lang.String | getRendererPathForContentItem(ContentItem pItem,
                              javax.servlet.http.HttpServletRequest pRequest)Replaces the placeholders in the formatString property to determine the JSP renderer for a particular ContentItem. | 
| protected  java.util.Map<java.lang.String,java.lang.String> | getReplacements(java.lang.String pType,
                ContentItem pItem,
                javax.servlet.http.HttpServletRequest pRequest)Returns a Map of all the replacements for a particular content item type | 
|  ReplacementValueProducer[] | getReplacementValueProducers()Returns property replacementValueProducers. | 
|  void | setCartridgeTypePropertyName(java.lang.String pCartridgeTypePropertyName) | 
|  void | setContentItemToReplacementPropertyNames(java.util.Map<java.lang.String,java.lang.String> pContentItemToReplacementPropertyNames)Sets property contentItemToReplacementPropertyNames. | 
|  void | setExampleContentProperties(java.util.Map<java.lang.String,java.lang.String> pExampleContentProperties)Sets property exampleContentProperties. | 
|  void | setFormatString(java.lang.String pFormatString) | 
|  void | setReplacementValueProducers(ReplacementValueProducer[] pReplacementValueProducers)Sets property replacementValueProducers. | 
| 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 ContentItemToRendererPathImpl()
| Method Detail | 
|---|
public java.lang.String getFormatString()
public void setFormatString(java.lang.String pFormatString)
pFormatString - Set a new formatString.public void setReplacementValueProducers(ReplacementValueProducer[] pReplacementValueProducers)
public ReplacementValueProducer[] getReplacementValueProducers()
public java.lang.String getCartridgeTypePropertyName()
public void setCartridgeTypePropertyName(java.lang.String pCartridgeTypePropertyName)
pCartridgeTypePropertyName - Set a new cartridgeTypePropertyNamepublic void setExampleContentProperties(java.util.Map<java.lang.String,java.lang.String> pExampleContentProperties)
public java.util.Map<java.lang.String,java.lang.String> getExampleContentProperties()
public void setContentItemToReplacementPropertyNames(java.util.Map<java.lang.String,java.lang.String> pContentItemToReplacementPropertyNames)
public java.util.Map<java.lang.String,java.lang.String> getContentItemToReplacementPropertyNames()
public java.lang.String getRendererPathForContentItem(ContentItem pItem,
                                                      javax.servlet.http.HttpServletRequest pRequest)
getRendererPathForContentItem in interface ContentItemToRendererPathpItem - the content item to use.pRequest - the current request. May be null.
protected java.util.Map<java.lang.String,java.lang.String> getReplacements(java.lang.String pType,
                                                                           ContentItem pItem,
                                                                           javax.servlet.http.HttpServletRequest pRequest)
pType - 
protected void addMappedProperties(ContentItem pItem,
                                   java.util.Map pReplacements)
pItem - the item from which to get properties values.pReplacements - the map to put properties values into.public java.lang.String getExamplePathForCurrentRequest()
public ContentItem getExampleContentItem()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||