|
|||||||||
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.commerce.catalog.DisplaySkuProperties
public class DisplaySkuProperties
This droplet is capable of returning a string which is the concatentation of all
the displayable properties for a sku. By default the properties for a particular
Sku are defined on a product level, since this allows saving storage space. The droplet
obtains all the necessary information via parameters and then renders the output parameter
after setting the displayElement
parameter. This droplet can take the following
parameters.
The following output parameters can be set:
Alternatively, the list of properties to extract from a sku can be obtained by setting the propertyList parameter to a comma separated list. The list should be in the form of size,color etc. If this parameter is set, then there is no need to set the product property.
If an error is encountered while obtaining either a property from the sku object, or a necessary parameter is not supplied (sku object etc.) then the output parameter will be set to null and the output parameter will be renedered
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
static java.lang.String |
DISPLAY_ELEMENT
|
static java.lang.String |
SPACE_CHARACTER
|
static java.lang.String |
TOKENIZER_CHARACTER
|
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 | |
---|---|
DisplaySkuProperties()
|
Method Summary | |
---|---|
java.lang.String |
getDisplayableSkuAttributesProperty()
Return the name of the property in the product from which Sku properties for display are obtained. |
RepositoryItem |
getProduct(DynamoHttpServletRequest pRequest)
This method obtains the Product object from the DynamoHttpServletResponse object. |
RepositoryItem |
getSku(DynamoHttpServletRequest pRequest)
This method obtains the Sku object from the DynamoHttpServletRequest object. |
protected java.lang.String |
getSkuPropertyValues(RepositoryItem pSku,
java.util.List pProperties,
java.lang.String pDelimiter)
This method is actually responsible for obtaining the values and concatenating the string together that will be rendered on output. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is responsible for determining the concatenation of a group of strings from a particular Sku object. |
void |
setDisplayableSkuAttributesProperty(java.lang.String pDisplayableSkuAttributesProperty)
Set the property in the product that contains a list of properties to extract from the sku. |
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, 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
public static final java.lang.String DISPLAY_ELEMENT
public static final java.lang.String SPACE_CHARACTER
public static final java.lang.String TOKENIZER_CHARACTER
Constructor Detail |
---|
public DisplaySkuProperties()
Method Detail |
---|
public void setDisplayableSkuAttributesProperty(java.lang.String pDisplayableSkuAttributesProperty)
pDisplayableSkuAttributesProperty
- the property namepublic java.lang.String getDisplayableSkuAttributesProperty()
public RepositoryItem getSku(DynamoHttpServletRequest pRequest)
pRequest
- a value of type 'DynamoHttpServletRequest'
public RepositoryItem getProduct(DynamoHttpServletRequest pRequest)
pRequest
- a value of type 'DynamoHttpServletRequest'
protected java.lang.String getSkuPropertyValues(RepositoryItem pSku, java.util.List pProperties, java.lang.String pDelimiter)
pProduct
- the product object which contains the properties to obtain from the skupDelimiter
- token to separate the values from the sku
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
The order that the properties are displayed in equates to the order of the properties that are obtained from the displayableSkuAttributes property in the product.
service
in class DynamoServlet
pRequest
- a value of type 'DynamoHttpServletRequest'pResponse
- a value of type 'DynamoHttpServletResponse'
javax.servlet.ServletException
- if an error occurs
java.io.IOException
- if an error occurs
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |