Packageorg.vostokframework.application.services
Classpublic class AssetPackageService
InheritanceAssetPackageService Inheritance Object

description



Public Methods
 MethodDefined By
  
description
AssetPackageService
  
assetPackageExists(assetPackageId:String, locale:String = null):Boolean
description
AssetPackageService
  
createAssetPackage(assetPackageId:String, locale:String = null):AssetPackage
description
AssetPackageService
  
description
AssetPackageService
  
getAssetPackage(assetPackageId:String, locale:String = null):AssetPackage
description
AssetPackageService
  
description
AssetPackageService
  
removeAssetPackage(assetPackageId:String, locale:String = null):Boolean
description
AssetPackageService
Constructor Detail
AssetPackageService()Constructor
public function AssetPackageService()

description

Method Detail
assetPackageExists()method
public function assetPackageExists(assetPackageId:String, locale:String = null):Boolean

description

Parameters

assetPackageId:String
 
locale:String (default = null)

Returns
Boolean

Throws
ArgumentError — if the <codeph>assetPackageId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
createAssetPackage()method 
public function createAssetPackage(assetPackageId:String, locale:String = null):AssetPackage

description

Parameters

assetPackageId:String
 
locale:String (default = null)

Returns
AssetPackage

Throws
ArgumentError — if the <codeph>assetPackageId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
 
org.vostokframework.assetmanagement.errors:DuplicateAssetPackageError — if already exists an <codeph>AssetPackage</codeph> object stored with the provided <codeph>assetPackageId</codeph> and <codeph>locale</codeph>.
getAllAssetPackages()method 
public function getAllAssetPackages():IList

description

Returns
IList
getAssetPackage()method 
public function getAssetPackage(assetPackageId:String, locale:String = null):AssetPackage

description

Parameters

assetPackageId:String
 
locale:String (default = null)

Returns
AssetPackage

Throws
ArgumentError — if the <codeph>assetPackageId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
removeAllAssetPackages()method 
public function removeAllAssetPackages():void

description

removeAssetPackage()method 
public function removeAssetPackage(assetPackageId:String, locale:String = null):Boolean

description

Parameters

assetPackageId:String
 
locale:String (default = null)

Returns
Boolean

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