|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
CategoryItemResolver extends the ItemResolver interface to provide alternate methods for generating item URLs which take a Category as input, allowing for a URL generation scheme which produces different URLs for an item in different categories
| Field Summary |
| Fields inherited from interface com.arsdigita.cms.dispatcher.ItemResolver |
versionId |
| Method Summary | |
String |
generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context,
com.arsdigita.categorization.Category category)
Generates a URL for a content item. |
String |
generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context,
String templateContext,
com.arsdigita.categorization.Category category)
Generates a URL for a content item. |
String |
generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context,
com.arsdigita.categorization.Category category)
Generates a URL for a content item. |
String |
generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context,
String templateContext,
com.arsdigita.categorization.Category category)
Generates a URL for a content item. |
com.arsdigita.categorization.Category |
getCategory(javax.servlet.http.HttpServletRequest request)
Gets the category for the current request (if set by getItem(section, url, context) |
com.arsdigita.categorization.Category[] |
getCategoryPath(javax.servlet.http.HttpServletRequest request)
Gets the category path for the current request (if set by getItem(section, url, context) |
boolean |
isIndexRequest(javax.servlet.http.HttpServletRequest request)
Whether the current request is an index item request (i.e. |
| Methods inherited from interface com.arsdigita.cms.dispatcher.ItemResolver |
generateItemURL, generateItemURL, generateItemURL, generateItemURL, getCurrentContext, getItem, getMasterPage, getTemplateFromURL, stripTemplateFromURL |
| Method Detail |
public com.arsdigita.categorization.Category getCategory(javax.servlet.http.HttpServletRequest request)
request - The current request
public com.arsdigita.categorization.Category[] getCategoryPath(javax.servlet.http.HttpServletRequest request)
request - The current request
public boolean isIndexRequest(javax.servlet.http.HttpServletRequest request)
request - The current request
public String generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context,
com.arsdigita.categorization.Category category)
itemId - The item IDname - The name of the content pagestate - The page statesection - the content section to which the item belongscontext - the context of the URL, such as "live" or "admin"category - the Category to use as the context for
generating the URL
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public String generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context,
String templateContext,
com.arsdigita.categorization.Category category)
itemId - The item IDname - The name of the content pagestate - The page statesection - the content section to which the item belongscontext - the context of the URL, such as "live" or "admin"templateContext - the context for the URL, such as "public"category - the Category to use as the context for
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public String generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context,
com.arsdigita.categorization.Category category)
item - The itemstate - The page statesection - the content section to which the item belongscontext - the context of the URL, such as "live" or "admin"category - the Category to use as the context for
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public String generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context,
String templateContext,
com.arsdigita.categorization.Category category)
item - The itemstate - The page statesection - the content section to which the item belongscontext - the context of the URL, such as "live" or "admin"templateContext - the context for the URL, such as "public"category - the Category to use as the context for
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||