|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.ScriptBase org.springframework.extensions.webscripts.ScriptLinkBuilder
public final class ScriptLinkBuilder
Field Summary |
---|
Fields inherited from class org.springframework.extensions.webscripts.ScriptBase |
---|
context, properties |
Constructor Summary | |
---|---|
ScriptLinkBuilder(RequestContext context)
Constructs a new ScriptLinkBuilder object. |
Method Summary | |
---|---|
protected ScriptableMap |
buildProperties()
|
String |
object(String objectId)
Constructs a link to a given object. |
String |
object(String objectId,
String formatId)
Constructs a link to a given object. |
String |
object(String objectId,
String formatId,
Map<String,String> params)
Constructs a link to a given object. |
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 |
page(String pageId)
Constructs a link to a given page instance. |
String |
page(String pageId,
String formatId)
Constructs a link to a given page for a given format. |
String |
page(String pageId,
String formatId,
String objectId)
Constructs a link to a given page for a given format. |
String |
pageType(String pageTypeId)
Constructs a link to a given page type. |
String |
pageType(String pageTypeId,
String formatId)
Constructs a link to a given page type for a given format. |
String |
pageType(String pageTypeId,
String formatId,
String objectId)
Constructs a link to a given page type for a given format. |
String |
pageType(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.webscripts.ScriptBase |
---|
getConfig, getModel, getObject, getProperties, getRequestContext, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScriptLinkBuilder(RequestContext context)
context
- The request context instance for the current requestMethod Detail |
---|
protected ScriptableMap buildProperties()
buildProperties
in class ScriptBase
public String page(String pageId)
pageId
- The id of the page instancepublic String page(String pageId, String formatId)
pageId
- The id of the page instanceformatId
- The id of the format to renderpublic String page(String pageId, String formatId, String objectId)
pageId
- The id of the page instanceformatId
- The id of the format to renderobjectId
- The id of the objectpublic String page(RequestContext context, String pageId, String formatId, String objectId, Map<String,String> params)
pageId
- 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(String pageTypeId)
context
- The Request Context instancepageTypeId
- The type of the pagepublic String pageType(String pageTypeId, String formatId)
pageTypeId
- The type of the pageformatId
- The id of the format to renderpublic String pageType(String pageTypeId, String formatId, String objectId)
pageTypeId
- The type of the pageformatId
- The id of the format to renderobjectId
- The id of the objectpublic String pageType(String pageTypeId, String formatId, String objectId, Map<String,String> params)
pageTypeId
- 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(String objectId)
objectId
- The id of the objectpublic String object(String objectId, String formatId)
objectId
- The id of the objectformatId
- The id of the format to renderpublic String object(String objectId, String formatId, Map<String,String> params)
objectId
- 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 |