public class DocumentLinksService
extends atg.nucleus.GenericService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALTERNATE |
static java.lang.String |
CANONICAL |
static java.lang.String |
CHAPTER |
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
HOME |
static java.lang.String |
NEXT |
static java.lang.String |
PREV |
static java.lang.String |
SECTION |
static java.lang.String |
UP |
Constructor and Description |
---|
DocumentLinksService() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Locale> |
getAlternateLink(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pRequestLocale)
Gets an available Locale that isn't the same as the
current Locale and associates it with the 'alternate'
canonical link reference.
|
java.util.Map |
getBreadcrumbsLinks(atg.repository.RepositoryItem pCurrentCategory,
atg.repository.RepositoryItem pCurrentProduct,
atg.commerce.catalog.CatalogNavHistory pCatalogNavHistory)
Get objects for home, up, chapter and section links from navigation history
|
java.util.Map |
getOtherLinks(atg.repository.RepositoryItem pCurrentCategory,
atg.repository.RepositoryItem pCurrentProduct,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.RequestLocale pRequestLocale,
atg.service.collections.validator.CollectionObjectValidator[] validators)
Gets objects for canonical, alternate, prev and next objects
|
java.util.List |
getProductsList(atg.repository.RepositoryItem pCategory)
Return join of childProducts property and relatedProducts property for pCategory
|
boolean |
isInternational() |
void |
setInternational(boolean pInternational) |
addLogListener, createAdminServlet, doStartService, 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, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
public static final java.lang.String HOME
public static final java.lang.String UP
public static final java.lang.String CHAPTER
public static final java.lang.String SECTION
public static final java.lang.String PREV
public static final java.lang.String NEXT
public static final java.lang.String ALTERNATE
public static final java.lang.String CANONICAL
public boolean isInternational()
public void setInternational(boolean pInternational)
pInternational
- Set the value for international. This should be true
in the International module layer to indicate its running.public java.util.List getProductsList(atg.repository.RepositoryItem pCategory)
pCategory
- the categorypublic java.util.Map<java.lang.String,java.util.Locale> getAlternateLink(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.RequestLocale pRequestLocale)
Gets an available Locale that isn't the same as the current Locale and associates it with the 'alternate' canonical link reference.
For example, if the current locale is 'en_US' but the current site also defines the Spanish language; Spanish will be used as the alternate canonical link and the following will be returned in a Map:
pRequest
- The HTTP request.pRequestLocale
- The Locale for the request.public java.util.Map getOtherLinks(atg.repository.RepositoryItem pCurrentCategory, atg.repository.RepositoryItem pCurrentProduct, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.RequestLocale pRequestLocale, atg.service.collections.validator.CollectionObjectValidator[] validators)
pCurrentCategory
- the current categorypCurrentProduct
- the current productpRequest
- the requestpRequestLocale
- validators
- validator to valid product and categories start\end datespublic java.util.Map getBreadcrumbsLinks(atg.repository.RepositoryItem pCurrentCategory, atg.repository.RepositoryItem pCurrentProduct, atg.commerce.catalog.CatalogNavHistory pCatalogNavHistory)
pCurrentCategory
- the current categorypCurrentProduct
- the current productpCatalogNavHistory
-