Packageorg.vostokframework.application.services
Classpublic class AssetService
InheritanceAssetService Inheritance Object

description



Public Methods
 MethodDefined 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
  
getAsset(assetId:String, locale:String = null):Asset
description
AssetService
  
description
AssetService
  
removeAsset(assetId:String, locale:String = null):Boolean
description
AssetService
Constructor Detail
AssetService()Constructor
public function AssetService()

description

Method Detail
assetExists()method
public function assetExists(assetId:String, locale:String = null):Boolean

description

Parameters

assetId:String
 
locale:String (default = null)

Returns
Boolean

Throws
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)

Returns
Asset

Throws
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

Returns
IList
getAsset()method 
public function getAsset(assetId:String, locale:String = null):Asset

description

Parameters

assetId:String
 
locale:String (default = null)

Returns
Asset

Throws
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)

Returns
Boolean

Throws
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.