AssetModel
Model for asset. Access to base asset data.
implements: hash, sequence<AssetModel>, scalar
bundle: online channel standard (oc)
since 4.2.0
Model for asset. Access to base asset data.
The AssetModel implements a sequence containing itself only, access. When addressed as a sequence this model behaves like a sequence containing just itself.
Features
features ↦ FeatureInstancesModel
since 4.2.0
Returns a model of the asset’s feature instances range.
Storage Items
storages ↦ StorageItemsModel
since 4.2.0
Returns a list of all storage items of the asset.
Relations
relations ↦ RelationsModel
since 4.2.0
Returns a representation of all relations of the asset.
parents ↦ RelationsModel
since 4.2.0
Returns a representation of all relations of the asset, where the current asset is the parent asset.
children ↦ RelationsModel
since 4.2.0
Returns a representation of all relations of the asset, where the current asset is the child asset.
query(String:xpath) ↦ QueryResultModel
since 4.2.0
Performs the 'XPath_query' specified in the xpath parameter and returns the query result. The base node collection of the query consists of the current asset.
Navigation
url ↦ StateUrlModel
since 4.2.0
Returns a URL for the current asset, pointing to a navigation item that is a member of the default navigation group.
If no corresponding navigation item is found, an empty string is returned.
url(String:groupID) ↦ StateUrlModel
since 4.2.0
Returns a URL for the current asset, pointing to a navigation item that is a member of the ''groupID navigation group.
If no corresponding navigation item is found, undefined is returned.
navigationState(String:groupID) ↦ NavigationStateModel
since 4.2.0
Returns a navigation state initialized to this asset and within group 'groupID'
Attributes
id ↦ Number
since 4.2.0
Returns the value of the attribute id.
name ↦ String
since 4.2.0
Returns the value of the attribute name.
type ↦ String
since 4.2.0
Returns the value of the attribute type.
domain ↦ String
since 4.2.0
Returns the value of the attribute domain.
domain2 ↦ String
since 4.2.0
Returns the value of the attribute domain2
application ↦ String
since 4.2.0
Returns the value of the attribute application.
language ↦ String
since 4.2.0
Returns the value of the attribute language
version ↦ Number
since 4.2.0
Returns the value of the attribute version.
contentVersion ↦ Number
since 4.2.0
Returns the value of the attribute content_version.
annotation ↦ String
since 4.2.0
Returns the value of the attribute annotation.
creationDate ↦ Date
since 4.2.0
Returns the value of the attribute creation_date.
modifiedDate ↦ Date
since 4.2.0
Returns the value of the attribute modified_date.
xmlData ↦ NodeModel
since 4.2.1
Returns the value of the attribute xml_data.
workflowId ↦ Integer
since 2019.2.3
Returns the value of the attribute wf_id.
workflowStep ↦ Integer
since 2019.2.3
Returns the value of the attribute wf_id.
Miscellaneous
address ↦ AddressModel
since 4.2.1
deprecated 4.3.0
Returns a deprecated model of address data assigned to the asset e.g. when dealing with a person assets.
If no address data is assigned to the asset, undefined is returned.
search ↦ AssetSearchModel
since 4.2.1
Returns the query XML of the Asset (e.g. with a search folder). This field is defined if and only if the asset contains a search query.
xml ↦ NodeModel
since 4.2.0
Returns the xml defining the asset
elements(String:type) ↦ sequence<AssetElementModel>
since 4.6.0
Returns a sequence of asset-elements with type of 'type'
[used as scalar] ↦ String
since 4.2.0
A a brief technical description of the modelled value is returned (#toString())