|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.dispatcher.AbstractItemResolver
Field Summary | |
protected static String |
TEMPLATE_CONTEXT_PREFIX
|
Fields inherited from interface com.arsdigita.cms.dispatcher.ItemResolver |
versionId |
Constructor Summary | |
AbstractItemResolver()
|
Method Summary | |
abstract String |
generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context)
Generates a URL for a content item. |
abstract String |
generateItemURL(com.arsdigita.bebop.PageState state,
BigDecimal itemId,
String name,
ContentSection section,
String context,
String templateContext)
Generates a URL for a content item. |
abstract String |
generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context)
Generates a URL for a content item. |
abstract String |
generateItemURL(com.arsdigita.bebop.PageState state,
ContentItem item,
ContentSection section,
String context,
String templateContext)
Generates a URL for a content item. |
abstract String |
getCurrentContext(com.arsdigita.bebop.PageState state)
Fetches the current context based on the page state. |
abstract ContentItem |
getItem(ContentSection section,
String url,
String context)
Return a content item based on section, url, and use context. |
abstract CMSPage |
getMasterPage(ContentItem item,
javax.servlet.http.HttpServletRequest request)
Return a master page based on page state (and content section). |
String |
getTemplateFromURL(String inUrl)
Finds the template context from the URL and returns it, if it is there. |
String |
stripTemplateFromURL(String inUrl)
Removes the template context from the inUrl . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String TEMPLATE_CONTEXT_PREFIX
Constructor Detail |
public AbstractItemResolver()
Method Detail |
public abstract ContentItem getItem(ContentSection section, String url, String context)
ItemResolver
getItem
in interface ItemResolver
section
- The current content sectionurl
- The section-relative URLcontext
- The use context
public abstract String getCurrentContext(com.arsdigita.bebop.PageState state)
ItemResolver
getCurrentContext
in interface ItemResolver
state
- the current page state
public abstract String generateItemURL(com.arsdigita.bebop.PageState state, BigDecimal itemId, String name, ContentSection section, String context)
ItemResolver
generateItemURL
in interface ItemResolver
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"
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public abstract String generateItemURL(com.arsdigita.bebop.PageState state, BigDecimal itemId, String name, ContentSection section, String context, String templateContext)
ItemResolver
generateItemURL
in interface ItemResolver
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"
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public abstract String generateItemURL(com.arsdigita.bebop.PageState state, ContentItem item, ContentSection section, String context)
ItemResolver
generateItemURL
in interface ItemResolver
item
- The itemstate
- The page statesection
- the content section to which the item belongscontext
- the context of the URL, such as "live" or "admin"
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public abstract String generateItemURL(com.arsdigita.bebop.PageState state, ContentItem item, ContentSection section, String context, String templateContext)
ItemResolver
generateItemURL
in interface ItemResolver
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"
ItemResolver.getCurrentContext(com.arsdigita.bebop.PageState)
public abstract CMSPage getMasterPage(ContentItem item, javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
ItemResolver
getMasterPage
in interface ItemResolver
item
- The content itemrequest
- The HTTP request
javax.servlet.ServletException
public String getTemplateFromURL(String inUrl)
getTemplateFromURL
in interface ItemResolver
inUrl
- the URL from which to get the template context
public String stripTemplateFromURL(String inUrl)
inUrl
.
stripTemplateFromURL
in interface ItemResolver
inUrl
- URL, possibly including the template context.
inUrl
with the template context removed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |