Modifier and Type | Method and Description |
---|---|
java.lang.String |
call(java.lang.String name,
Arg... args)
Invoke the template using the current asset as current asset, optionally
passing a set of parameters
|
java.lang.String |
editString(java.lang.String attribute)
Render the attribute as an editable string in insite mode.
|
java.lang.String |
editString(java.lang.String attribute,
int n)
Render the nth attribute as an editable string in insite mode.
|
java.lang.String |
editString(java.lang.String attribute,
int n,
java.lang.String params,
Arg... args)
Edit the n-th element of the given attribute, using the given parameters.
|
java.lang.String |
editString(java.lang.String attribute,
java.lang.String params,
Arg... args)
Edit (or return if not insite) the first named attribute as a string, or
null if not found and pass additional parameters
|
java.lang.String |
editText(java.lang.String attribute,
int n,
java.lang.String params)
Edit (or return if not insite) the nth named attribute as a string, or
null if not found and pass additional parameters using the CK editor
|
java.lang.String |
editText(java.lang.String attribute,
java.lang.String params)
Edit (or return if not insite) the first named attribute as a string, or
null if not found using the CK editor
|
boolean |
exists(java.lang.String attribute)
Does the attribute exist?
|
boolean |
exists(java.lang.String attribute,
int pos)
Does the nth attribute exist?
|
Asset |
getAsset(java.lang.String attribute,
int i,
java.lang.String type,
AssetDeps logdep)
Return the related asset pointed by the nth attribute of the given type.
|
Asset |
getAsset(java.lang.String attribute,
java.lang.String type)
Return the related asset pointed by the attribute of the given type.
|
Asset |
getAsset(java.lang.String attribute,
java.lang.String type,
AssetDeps logdep)
Return the related asset pointed by the attribute of the given type.
|
Asset |
getAsset(java.lang.String attribute,
java.lang.String type,
int i)
Return the related asset pointed by the nth attribute of the given type.
|
java.lang.Long |
getAssocId(java.lang.String assoc)
Id of the first associated asset
|
java.lang.Long |
getAssocId(java.lang.String assoc,
int pos)
Id of the nth associated asset
|
java.lang.Iterable<java.lang.Integer> |
getAssocRange(java.lang.String assoc)
Range of an asset association
|
java.lang.String |
getAssocType(java.lang.String assoc)
Type of the first associated asset
|
java.lang.String |
getAssocType(java.lang.String assoc,
int pos)
Type of the nth associated asset
|
java.lang.String |
getBlobUrl(java.lang.String attribute,
Arg... args)
String get blob url of the first attribute, with optional args
|
java.lang.String |
getBlobUrl(java.lang.String attribute,
int pos,
java.lang.String mimeType,
Arg... args)
String get blob url of the nth attribute, with optional args
|
java.lang.String |
getBlobUrl(java.lang.String attribute,
java.lang.String mimeType,
Arg... args)
String get blob url of the first attribute, with optional args
|
java.lang.String |
getC()
The current asset type
|
java.lang.Long |
getCid()
The current id, or null if undefined
|
java.lang.Long |
getCid(java.lang.String attribute)
Return the first attribute of the attribute list as an id (long), or null
if not found
|
java.lang.Long |
getCid(java.lang.String attribute,
int n)
Return the nth attribute of the named attribute as an id (long), or null
if not found
|
java.util.Date |
getDate(java.lang.String attribute)
Return the first attribute of the the attribute list as an int, or null
if not found
|
java.util.Date |
getDate(java.lang.String attribute,
int n)
Return the nth attribute of the the attribute list as an int, or null if
not found
|
java.lang.String |
getDescription()
The current asset description, or the name if the description is
undefined
|
java.util.Date |
getEndDate()
Current asset end date or null if undefined
|
java.util.Date |
getFieldDate(java.lang.String name)
Return a named field from the asset as a date.
|
int |
getFieldInt(java.lang.String name)
Return a named field from the asset as an int.
|
long |
getFieldLong(java.lang.String name)
Return a named field from the asset as a long.
|
java.lang.String |
getFieldString(java.lang.String name)
Return a named field from the asset as a string.
|
java.lang.String |
getFilename()
Current asset file
|
Id |
getId()
The current asset id
|
java.lang.Integer |
getInt(java.lang.String attribute)
Return the first attribute of the the attribute list as an int, or null
if not found
|
java.lang.Integer |
getInt(java.lang.String attribute,
int n)
Return the nth attribute of the the attribute list as an int, or null if
not found
|
java.lang.Long |
getLong(java.lang.String attribute)
Return the first attribute of the the attribute list as a long, or null
if not found
|
java.lang.Long |
getLong(java.lang.String attribute,
int n)
Return the nth attribute of the the attribute list as an int, or null if
not found
|
java.lang.String |
getName()
The current asset name
|
java.lang.String |
getPath()
Current asset path
|
java.lang.Iterable<java.lang.Integer> |
getRange(java.lang.String attribute)
Return an iterable of the attribute list
|
java.lang.String |
getSite()
Return the current site name
|
int |
getSize(java.lang.String attribute)
Return the number of elements in the attribute
|
java.util.Date |
getStartDate()
Current asset start date or null if undefined
|
java.lang.String |
getString(java.lang.String attribute)
Return the first attribute of the the named attribute as a string, or
null if not found
|
java.lang.String |
getString(java.lang.String attribute,
int n)
Return the nth named attribute as a string, or null if not found
|
java.lang.String |
getSubtype()
The current asset subtype, or the void string if no subtype
|
java.lang.String |
getTemplate()
The current template or null if undefined
|
java.lang.String |
getUrl(Arg... args)
Return the URL to render this asset
|
java.lang.String |
slot(java.lang.String attribute,
int i,
java.lang.String type,
java.lang.String template,
java.lang.String emptyText,
Arg... args)
Render a single slot pointed by the i-th asset field using the the
specified template.
|
java.lang.String |
slot(java.lang.String attribute,
java.lang.String type,
java.lang.String template,
java.lang.String emptyText,
Arg... args)
Render a single slot pointed by the first asset field using the the
specified template.
|
java.lang.String |
slotEmpty(java.lang.String attribute,
java.lang.String type,
java.lang.String template,
java.lang.String emptyText)
Render an empty slot.
|
java.lang.String |
slotList(java.lang.String field,
java.lang.String type,
java.lang.String template,
Arg... args)
Render a list of slots pointed by the asset field using the the specified
template.
|
java.lang.String getSite()
Id getId()
java.lang.String getC()
java.lang.Long getCid()
java.lang.String getTemplate()
java.lang.Iterable<java.lang.Integer> getAssocRange(java.lang.String assoc)
java.lang.Long getAssocId(java.lang.String assoc)
java.lang.Long getAssocId(java.lang.String assoc, int pos)
java.lang.String getAssocType(java.lang.String assoc)
java.lang.String getAssocType(java.lang.String assoc, int pos)
java.lang.String getSubtype()
java.lang.String getName()
java.lang.String getDescription()
java.lang.String getFilename()
java.lang.String getPath()
java.util.Date getStartDate()
java.util.Date getEndDate()
int getSize(java.lang.String attribute)
java.lang.Long getCid(java.lang.String attribute)
asset
- java.lang.String getFieldString(java.lang.String name)
name
- java.util.Date getFieldDate(java.lang.String name)
name
- int getFieldInt(java.lang.String name)
name
- long getFieldLong(java.lang.String name)
name
- Asset getAsset(java.lang.String attribute, java.lang.String type, AssetDeps logdep)
asset
- Asset getAsset(java.lang.String attribute, java.lang.String type)
Asset getAsset(java.lang.String attribute, java.lang.String type, int i)
Asset getAsset(java.lang.String attribute, int i, java.lang.String type, AssetDeps logdep)
asset
- java.lang.String getBlobUrl(java.lang.String attribute, Arg... args)
java.lang.String getBlobUrl(java.lang.String attribute, java.lang.String mimeType, Arg... args)
java.lang.String getBlobUrl(java.lang.String attribute, int pos, java.lang.String mimeType, Arg... args)
java.lang.Long getCid(java.lang.String attribute, int n)
asset
- java.lang.String getString(java.lang.String attribute)
java.lang.String getString(java.lang.String attribute, int n)
java.lang.Integer getInt(java.lang.String attribute)
java.lang.Integer getInt(java.lang.String attribute, int n)
java.lang.Long getLong(java.lang.String attribute)
java.lang.Long getLong(java.lang.String attribute, int n)
java.util.Date getDate(java.lang.String attribute)
java.util.Date getDate(java.lang.String attribute, int n)
java.lang.Iterable<java.lang.Integer> getRange(java.lang.String attribute)
java.lang.String getUrl(Arg... args)
boolean exists(java.lang.String attribute)
boolean exists(java.lang.String attribute, int pos)
java.lang.String editString(java.lang.String attribute)
attribute
- java.lang.String editString(java.lang.String attribute, int n)
attribute
- n
- java.lang.String editString(java.lang.String attribute, int n, java.lang.String params, Arg... args)
attribute
- n
- args
- java.lang.String editText(java.lang.String attribute, int n, java.lang.String params)
asset
- java.lang.String editString(java.lang.String attribute, java.lang.String params, Arg... args)
asset
- args
- java.lang.String editText(java.lang.String attribute, java.lang.String params)
asset
- java.lang.String call(java.lang.String name, Arg... args)
name
- args
- java.lang.String slotList(java.lang.String field, java.lang.String type, java.lang.String template, Arg... args) throws java.lang.IllegalArgumentException
field
- template
- type
- i
- args
- java.lang.IllegalArgumentException
java.lang.String slotEmpty(java.lang.String attribute, java.lang.String type, java.lang.String template, java.lang.String emptyText) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
java.lang.String slot(java.lang.String attribute, int i, java.lang.String type, java.lang.String template, java.lang.String emptyText, Arg... args) throws java.lang.IllegalArgumentException
attribute
- template
- type
- i
- args
- java.lang.IllegalArgumentException
java.lang.String slot(java.lang.String attribute, java.lang.String type, java.lang.String template, java.lang.String emptyText, Arg... args) throws java.lang.IllegalArgumentException
attribute
- template
- typetemplate
- args
- java.lang.IllegalArgumentException