|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.support.BaseFactoryBean org.springframework.extensions.surf.support.AbstractLinkBuilder
public abstract class AbstractLinkBuilder
Abstract base class for LinkBuilder implementations. This is provided as a convenience to developers who wish to build their own custom LinkBuilder variations. The Link Builder defines methods that are used generically to construct links to other pages, page types or objects within the system. In general, links are either to specific "known" pages or to page placeholders that must be resolved when the link is clicked. Example - a link to a page: String link = builder.page(context, "homepageInstance");
Constructor Summary | |
---|---|
AbstractLinkBuilder(WebFrameworkServiceRegistry serviceRegistry)
|
Method Summary | |
---|---|
String |
object(RequestContext context,
String objectId)
Constructs a link to a given object. |
String |
object(RequestContext context,
String objectId,
String formatId)
Constructs a link to a given object. |
abstract String |
object(RequestContext context,
String objectId,
String formatId,
Map<String,String> params)
Constructs a link to a given object. |
String |
page(RequestContext context,
String pageId)
Constructs a link to a given page instance. |
String |
page(RequestContext context,
String pageId,
String formatId)
Constructs a link to a given page for a given format. |
String |
page(RequestContext context,
String pageId,
String formatId,
String objectId)
Constructs a link to a given page for a given format. |
abstract String |
page(RequestContext context,
String pageId,
String formatId,
String objectId,
Map<String,String> params)
Constructs a link to a given page for a given format. |
String |
pageType(RequestContext context,
String pageTypeId)
Constructs a link to a given page type. |
String |
pageType(RequestContext context,
String pageTypeId,
String formatId)
Constructs a link to a given page type for a given format. |
String |
pageType(RequestContext context,
String pageTypeId,
String formatId,
String objectId)
Constructs a link to a given page type for a given format. |
abstract String |
pageType(RequestContext context,
String pageTypeId,
String formatId,
String objectId,
Map<String,String> params)
Constructs a link to a given page type for a given format. |
Methods inherited from class org.springframework.extensions.surf.support.BaseFactoryBean |
---|
getResourceService, getServiceRegistry, getWebFrameworkConfiguration, getWebFrameworkManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractLinkBuilder(WebFrameworkServiceRegistry serviceRegistry)
Method Detail |
---|
public String page(RequestContext context, String pageId)
page
in interface LinkBuilder
context
- The Request Context instancepageId
- The id of the page instancepublic String page(RequestContext context, String pageId, String formatId)
page
in interface LinkBuilder
context
- The Request Context instancepageId
- The id of the page instanceformatId
- The id of the format to renderpublic String page(RequestContext context, String pageId, String formatId, String objectId)
page
in interface LinkBuilder
context
- The Request Context instancepageId
- The id of the page instanceformatId
- The id of the format to renderobjectId
- The id of the objectpublic abstract String page(RequestContext context, String pageId, String formatId, String objectId, Map<String,String> params)
page
in interface LinkBuilder
context
- The Request Context instancepageId
- The id of the page instanceformatId
- The id of the format to renderobjectId
- The id of the objectparams
- A map of name/value pairs to be appended to the URLpublic String pageType(RequestContext context, String pageTypeId)
pageType
in interface LinkBuilder
context
- The Request Context instancepageTypeId
- The type of the pagepublic String pageType(RequestContext context, String pageTypeId, String formatId)
pageType
in interface LinkBuilder
context
- The Request Context instancepageTypeId
- The type of the pageformatId
- The id of the format to renderpublic String pageType(RequestContext context, String pageTypeId, String formatId, String objectId)
pageType
in interface LinkBuilder
context
- The Request Context instancepageTypeId
- The type of the pageformatId
- The id of the format to renderobjectId
- The id of the objectpublic abstract String pageType(RequestContext context, String pageTypeId, String formatId, String objectId, Map<String,String> params)
pageType
in interface LinkBuilder
context
- The Request Context instancepageTypeId
- The type of the pageformatId
- The id of the format to renderobjectId
- The id of the objectparams
- A map of name/value pairs to be appended to the URLpublic String object(RequestContext context, String objectId)
object
in interface LinkBuilder
context
- The Request Context instanceobjectId
- The id of the objectpublic String object(RequestContext context, String objectId, String formatId)
object
in interface LinkBuilder
context
- The Request Context instanceobjectId
- The id of the objectformatId
- The id of the format to renderpublic abstract String object(RequestContext context, String objectId, String formatId, Map<String,String> params)
object
in interface LinkBuilder
context
- The Request Context instanceobjectId
- The id of the objectformatId
- The id of the format to renderparams
- A map of name/value pairs to be appended to the URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |