ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.solutions.rca.domain.common 

IDocumentCollection  - AS3 Review, Commenting, and Approval

Packagecom.adobe.solutions.rca.domain.common
Interfacepublic interface IDocumentCollection

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This interface defines an entity that has a collection of documents associated with it.

Related API Elements



Public Properties
 PropertyDefined By
  documents : ArrayCollection
[read-only] The property returns a collection of associated documents.
IDocumentCollection
Public Methods
 MethodDefined By
  
This remote operation adds a document from the collection and submits the change on the server.
IDocumentCollection
  
This remote operation removes a document from the collection and submits the change on the server.
IDocumentCollection
Property Detail

documents

property
documents:ArrayCollection  [read-only]

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

The property returns a collection of associated documents.

This property can be used as the source for data binding. When this property is modified, it dispatches the propertyChange event.



Implementation
    public function get documents():ArrayCollection

Related API Elements

Method Detail

addDocumentAndSave

()method
public function addDocumentAndSave(doc:ISupportingDocument):mx.rpc:AsyncToken

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This remote operation adds a document from the collection and submits the change on the server.

Parameters

doc:ISupportingDocument — The document to be added to document collection.

Returns
mx.rpc:AsyncToken — It returns a token on which success or fault handlers can be attached.

Related API Elements

removeDocumentAndSave

()method 
public function removeDocumentAndSave(doc:ISupportingDocument):mx.rpc:AsyncToken

Language Version: ActionScript 3.0
Product Version: Review, Commenting, and Approval Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This remote operation removes a document from the collection and submits the change on the server.

Parameters

doc:ISupportingDocument — The document to be removed from document collection.

Returns
mx.rpc:AsyncToken — It returns a token on which success or fault handlers can be attached.

Related API Elements