public interface LinkInfo<T extends LinkInfo>
Modifier and Type | Method and Description |
---|---|
T |
forAsset(AssetId id)
Specify the
AssetId that this LinkInfo is used for |
T |
forDevice(String deviceSuffix)
specify the Device Group Suffix(a string that is common suffix of all the templates written for current device group).
|
T |
forSite(String siteName)
Specify the sitename that is going to be used
|
T |
forType(String type)
Specify the type that this LinkInfo is used for.
|
T |
forType(String type, String subtype)
Specify the type and subtype that this LinkInfo is used for.
|
AssetId |
getAssetId() |
String |
getDevice() |
Map<String,String> |
getParameters() |
String |
getSite() |
String |
getSubtype() |
String |
getTemplate() |
String |
getType() |
String |
getWebroot() |
T |
parameters(Map<String,String> parameters)
The map of parameters that will be used to generate the link
|
T |
useTemplate(String template)
The name of the Template to be called
|
T |
useWebroot(String webrootName)
Specify the name of WebRoot to be used for retrieving vanity URL.
|
T forAsset(AssetId id)
AssetId
that this LinkInfo is used forid
- the AssetIdT forType(String type)
forType(String, String)
type
- the asset typeT forType(String type, String subtype)
forType(String)
type
- the asset typesubtype
- the asset subtypeT useTemplate(String template)
template
- the name of the templateT parameters(Map<String,String> parameters)
parameters
- the map of parametersT forDevice(String deviceSuffix)
d ='Touch'
and parameter tname = 'HomeLayout'
, the tag will try to find a template with name tname_d
i.e. HomeLayout_Touch. If it exists, the tag will return the url of this template, otherwise will simply return the url of the template 'HomeLayout' i.e. actual tname
provided.deviceSuffix
- the Device Group SuffixT useWebroot(String webrootName)
webrootName
- the name of the webrootT forSite(String siteName)
siteName
- the site nameAssetId getAssetId()
String getType()
String getSubtype()
String getTemplate()
String getDevice()
String getSite()
String getWebroot()