Modifier and Type | Method and Description |
---|---|
void |
addDependency()
Add a dependency on anything
|
void |
addDependency(Id id)
Add an EXACT dependency on a given asset
|
void |
addDependency(Id id,
AssetDeps deps)
Add a dependency of the specified type on a given asset
|
void |
addDependency(java.lang.String c)
Add a dependency on any asset of the given type
|
void |
addDependency(java.lang.String c,
java.lang.Long cid)
Add an EXACT dependency on a given asset
|
void |
addDependency(java.lang.String c,
java.lang.Long cid,
AssetDeps deps)
Add a dependency of the specified type on a given asset
|
java.lang.String |
call(java.lang.String name,
Arg... args)
Call a CS Element in current site
|
void |
clearError()
Clear the current error code
|
boolean |
exists(java.lang.String attribute)
Check if the given attribute is a valid value
|
boolean |
exists(java.lang.String attribute,
int pos)
Check if the given attribute at the given position is a valid value
|
java.util.List<Id> |
find(java.lang.String type,
Arg... args)
Find assets
|
Asset |
findOne(java.lang.String type,
Arg... args)
Find one assets
|
Asset |
getAsset()
Return the asset identified by the current c/cid
|
Asset |
getAsset(Id id)
Return the asset identified by and Id (or null if not found)
|
Asset |
getAsset(java.lang.String c,
java.lang.Long cid)
Return the asset identified by c/cid (or null if not possible)
|
java.lang.String |
getC()
Return current "c" (content type)
|
java.lang.Long |
getCid()
Return current "cid" (content id)
|
Config |
getConfig()
Return the current config
|
java.util.Date |
getDate(java.lang.String var)
Get variable as a date (or null)
|
java.util.Date |
getDate(java.lang.String ls,
int pos)
Get the field value at given position as a date, or null
|
java.util.Date |
getDate(java.lang.String ls,
int pos,
java.lang.String field)
Get field at given position as a date, or null
|
java.util.Date |
getDate(java.lang.String ls,
java.lang.String field)
Get field as date or null
|
int |
getError()
Get Error nummber
|
Id |
getId()
Return current asset id
|
java.lang.Integer |
getInt(java.lang.String var)
Get variable as Long or null
|
java.lang.Integer |
getInt(java.lang.String ls,
int pos)
Get the field "value" at given position as an int, or null
|
java.lang.Integer |
getInt(java.lang.String ls,
int pos,
java.lang.String field)
Get field at given position as an int, or null
|
java.lang.Integer |
getInt(java.lang.String ls,
java.lang.String field)
Get field as long or null
|
java.lang.Long |
getLong(java.lang.String var)
Get variable as Long or null
|
java.lang.Long |
getLong(java.lang.String ls,
int pos)
Get field "value" at given position as a long, or null
|
java.lang.Long |
getLong(java.lang.String ls,
int pos,
java.lang.String field)
Get field at given position as a long, or null
|
java.lang.Long |
getLong(java.lang.String ls,
java.lang.String field)
Get field as long or null
|
java.lang.Object |
getObject(java.lang.String object)
Get an object
|
java.lang.Iterable<java.lang.Integer> |
getRange(java.lang.String list)
Return an iterable sequence of integers to loop a list
|
Router |
getRouter()
Return the current router
|
java.lang.String |
getSiteId()
The current site id
|
java.lang.String |
getSiteName()
The current site name
|
SitePlan |
getSitePlan() |
Id |
getSitePlanRoot(java.lang.String siteName)
Return the siteplan root of the given site
|
int |
getSize(java.lang.String list)
Return size of a list
|
java.lang.String |
getString(java.lang.String var)
Get a variable or null
|
java.lang.String |
getString(java.lang.String list,
int row)
Get the field "value" of a list or null
|
java.lang.String |
getString(java.lang.String list,
int row,
java.lang.String field)
Get the nth field of a list or null
|
java.lang.String |
getString(java.lang.String list,
java.lang.String field)
Get the field of a list or null
|
java.lang.String |
getUrl(Id id,
Arg... args)
Return the URL to render this asset - note that rendering is different if
we are in insite/preview mode or in live mode
|
java.lang.String |
getUrl(java.lang.String c,
java.lang.Long cid,
Arg... args)
Return the URL to render this asset
|
ICS |
ics()
Return the underlying ICS
|
void |
init(ICS ics)
Initialize the class with the ICS
|
boolean |
isError()
Check if in error state
|
boolean |
isInsite()
Check if we are in the insite editing mode
|
boolean |
isList(java.lang.String list)
Check if it is a list
|
boolean |
isList(java.lang.String list,
int n)
Check if it is a list with enough rows
|
boolean |
isListCol(java.lang.String list,
java.lang.String field)
Check if exists as a list column
|
boolean |
isObj(java.lang.String object)
Check if exists as an object
|
boolean |
isVar(java.lang.String variable)
Check if is a variable
|
void init(ICS ics)
ICS ics()
Id getSitePlanRoot(java.lang.String siteName)
java.lang.String getString(java.lang.String var)
java.lang.String getString(java.lang.String list, java.lang.String field)
list
- field
- java.lang.String getString(java.lang.String list, int row, java.lang.String field)
list
- row
- field
- java.lang.String getString(java.lang.String list, int row)
int getSize(java.lang.String list)
java.lang.Iterable<java.lang.Integer> getRange(java.lang.String list)
java.util.Date getDate(java.lang.String var)
java.lang.Integer getInt(java.lang.String var)
java.lang.Long getLong(java.lang.String var)
java.util.Date getDate(java.lang.String ls, java.lang.String field)
ls
- field
- java.lang.Integer getInt(java.lang.String ls, java.lang.String field)
ls
- field
- java.lang.Long getLong(java.lang.String ls, java.lang.String field)
ls
- field
- java.util.Date getDate(java.lang.String ls, int pos, java.lang.String field)
ls
- field
- pos
- java.util.Date getDate(java.lang.String ls, int pos)
java.lang.Long getLong(java.lang.String ls, int pos, java.lang.String field)
ls
- field
- pos
- java.lang.Long getLong(java.lang.String ls, int pos)
java.lang.Integer getInt(java.lang.String ls, int pos, java.lang.String field)
ls
- field
- pos
- java.lang.Integer getInt(java.lang.String ls, int pos)
int getError()
boolean isError()
boolean isVar(java.lang.String variable)
boolean isList(java.lang.String list)
boolean isList(java.lang.String list, int n)
boolean isListCol(java.lang.String list, java.lang.String field)
boolean isObj(java.lang.String object)
boolean isInsite()
java.lang.Object getObject(java.lang.String object)
Asset getAsset(java.lang.String c, java.lang.Long cid)
Asset getAsset()
java.lang.String getC()
java.lang.Long getCid()
Id getId()
Config getConfig()
Router getRouter()
java.lang.String getSiteName()
java.lang.String getSiteId()
SitePlan getSitePlan()
java.lang.String getUrl(Id id, Arg... args)
java.lang.String getUrl(java.lang.String c, java.lang.Long cid, Arg... args)
java.lang.String call(java.lang.String name, Arg... args)
name
- args
- void clearError()
void addDependency()
void addDependency(java.lang.String c)
c
- void addDependency(java.lang.String c, java.lang.Long cid)
c
- cid
- void addDependency(java.lang.String c, java.lang.Long cid, AssetDeps deps)
c
- cid
- void addDependency(Id id)
id
- void addDependency(Id id, AssetDeps deps)
id
- deps
- boolean exists(java.lang.String attribute)