public final class ScriptLinkBuilder extends ScriptBase
context, properties| Constructor and Description |
|---|
ScriptLinkBuilder(RequestContext context)
Constructs a new ScriptLinkBuilder object.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.extensions.webscripts.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,
Map<String,String> params)
Constructs a link to a given page for the default format.
|
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.
|
String |
resource(String uri)
Constructs a link to a resources at a given relative uri.
|
getConfig, getObject, getObjectService, getProperties, getRequestContext, toStringpublic ScriptLinkBuilder(RequestContext context)
context - The request context instance for the current requestprotected org.springframework.extensions.webscripts.ScriptableMap buildProperties()
buildProperties in class ScriptBasepublic 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 page(RequestContext context, String pageId, Map<String,String> params)
pageId - The id of the page instanceparams - A map of name/value pairs to be appended to the URLpublic String pageType(String pageTypeId)
pageTypeId - 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 URLCopyright © 2005–2016 Alfresco Software. All rights reserved.