com.adobe.solutions.rca.domain.common

# IDocumentCollection - AS3 Review, Commenting, and Approval

Package | com.adobe.solutions.rca.domain.common
Interface | public 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

IDocument

Public Properties

| Property | Defined By
--- | --- | ---
|  | documents : ArrayCollection [read-only] The property returns a collection of associated documents. | IDocumentCollection

Public Methods

| Method | Defined By
--- | --- | ---
|  | addDocumentAndSave(doc:ISupportingDocument):mx.rpc:AsyncToken This remote operation adds a document from the collection and submits the change on the server. | IDocumentCollection
|  | removeDocumentAndSave(doc:ISupportingDocument):mx.rpc:AsyncToken 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

IDocument
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

IDocument

### 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

IDocument

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00