Packageorg.vostokframework.domain.assets
Classpublic class AssetRepository
InheritanceAssetRepository Inheritance Object

description



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

description

Method Detail
add()method
public function add(asset:Asset):void

description

Parameters

asset:Asset


Throws
ArgumentError — if the <codeph>asset</codeph> argument is <codeph>null</codeph>.
 
DuplicateAssetError — if already exists an <codeph>Asset</codeph> object stored with the same <codeph>id</codeph> of the provided <codeph>asset</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>assetId</codeph> argument is <codeph>null</codeph> or <codeph>empty</codeph>.
find()method 
public function find(identification:VostokIdentification):Asset

description

Parameters

identification:VostokIdentification — idPackageAsset

Returns
Asset

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

description

Returns
IList
isEmpty()method 
public function isEmpty():Boolean

description

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

description

Parameters

identification:VostokIdentification — idAssetPackage

Returns
Boolean

Throws
ArgumentError — if the <codeph>assetId</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