Package | org.vostokframework.application.services |
Class | public class AssetService |
Inheritance | AssetService Object |
Method | Defined By | ||
---|---|---|---|
description
| AssetService | ||
assetExists(assetId:String, locale:String = null):Boolean
description
| AssetService | ||
createAsset(src:String, assetPackage:AssetPackage, settings:LoadingSettings = null, assetId:String = null, type:AssetType = null):Asset
description
| AssetService | ||
getAllAssets():IList
description
| AssetService | ||
description
| AssetService | ||
removeAllAssets():void
description
| AssetService | ||
removeAsset(assetId:String, locale:String = null):Boolean
description
| AssetService |
AssetService | () | Constructor |
public function AssetService()
description
assetExists | () | method |
public function assetExists(assetId:String, locale:String = null):Boolean
description
Parameters
assetId:String | |
locale:String (default = null )
|
Boolean —
|
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
|
createAsset | () | method |
public function createAsset(src:String, assetPackage:AssetPackage, settings:LoadingSettings = null, assetId:String = null, type:AssetType = null):Asset
description
Parameters
src:String | |
assetPackage:AssetPackage | |
settings:LoadingSettings (default = null )
| |
assetId:String (default = null )
| |
type:AssetType (default = null )
|
Asset —
|
ArgumentError — if the <codeph>src</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
| |
ArgumentError — if the <codeph>assetPackage</codeph> argument is <codeph>null</codeph>.
| |
org.vostokframework.assetmanagement.errors:DuplicateAssetError — if already exists an <codeph>Asset</codeph> object stored with the provided <codeph>assetId</codeph> and <codeph>assetPackage.locale</codeph>.
|
getAllAssets | () | method |
public function getAllAssets():IList
description
ReturnsIList —
|
getAsset | () | method |
public function getAsset(assetId:String, locale:String = null):Asset
description
Parameters
assetId:String | |
locale:String (default = null )
|
Asset —
|
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
| |
org.vostokframework.assetmanagement.errors:AssetNotFoundError — if do not exist an <codeph>Asset</codeph> object stored with the provided <codeph>assetId</codeph> and <codeph>locale</codeph>.
|
removeAllAssets | () | method |
public function removeAllAssets():void
description
removeAsset | () | method |
public function removeAsset(assetId:String, locale:String = null):Boolean
description
Parameters
assetId:String | |
locale:String (default = null )
|
Boolean —
|
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
|