Packageorg.vostokframework.domain.assets
Classpublic class AssetPackageRepository
InheritanceAssetPackageRepository Inheritance Object

description



Public Methods
 MethodDefined By
  
description
AssetPackageRepository
  
add(assetPackage:AssetPackage):void
description
AssetPackageRepository
  
clear():void
description
AssetPackageRepository
  
exists(identification:VostokIdentification):Boolean
description
AssetPackageRepository
  
description
AssetPackageRepository
  
findAll():IList
description
AssetPackageRepository
  
description
AssetPackageRepository
  
isEmpty():Boolean
description
AssetPackageRepository
  
remove(identification:VostokIdentification):Boolean
description
AssetPackageRepository
  
size():int
description
AssetPackageRepository
  
toString():String
description
AssetPackageRepository
Constructor Detail
AssetPackageRepository()Constructor
public function AssetPackageRepository()

description

Method Detail
add()method
public function add(assetPackage:AssetPackage):void

description

Parameters

assetPackage:AssetPackage — assetPackage


Throws
ArgumentError — if the <codeph>assetPackage</codeph> argument is <codeph>null</codeph>.
 
DuplicateAssetPackageError — if already exists an <codeph>AssetPackage</codeph> object stored with the same <codeph>id</codeph> of the provided <codeph>assetPackage</codeph> argument.
clear()method 
public function clear():void

description

exists()method 
public function exists(identification:VostokIdentification):Boolean

description

Parameters

identification:VostokIdentification — idPackageAsset

Returns
Boolean

Throws
ArgumentError — if the <codeph>assetPackageId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
find()method 
public function find(identification:VostokIdentification):AssetPackage

description

Parameters

identification:VostokIdentification — idPackageAsset

Returns
AssetPackage

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

description

Returns
IList
findAssetPackageByAssetId()method 
public function findAssetPackageByAssetId(identification:VostokIdentification):AssetPackage

description

Parameters

identification:VostokIdentification — idPackageAsset

Returns
AssetPackage

Throws
ArgumentError — if the <codeph>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
isEmpty()method 
public function isEmpty():Boolean

description

Returns
Boolean
remove()method 
public function remove(identification:VostokIdentification):Boolean

description

Parameters

identification:VostokIdentification

Returns
Boolean

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

description

Returns
int
toString()method 
public function toString():String

description

Returns
String