com.adobe.solutions.prm.domain

# DomainUtil - AS3 Project Management

Package | com.adobe.solutions.prm.domain
Class | public class DomainUtil
Inheritance | DomainUtil Object

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

This utility class exposes functions, to search for a domain instance corresponding to value objects in the complete project tree.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | DomainUtil() The constructor for DomainUtil class. | DomainUtil
|  | createProjectUsingSubProject(subProjectVO:ProjectVO):mx.rpc:AsyncToken [static] This method returns a handle to the domain object for a specific project in the complete project tree. | DomainUtil
|  | createProjectUsingWorkItem(workItemVO:WorkItemVO):mx.rpc:AsyncToken [static] This method returns a handle to a domain object for a specific workitem in the complete project tree. | DomainUtil
|  | findProject(project:IProject, subProjectVO:ProjectVO):IProject [static] This method returns a reference to the project domain object, corresponding to a given sub-project value object in the project domain object tree. | DomainUtil
|  | findWorkItem(project:IProject, workItemVO:WorkItemVO):IWorkItem [static] This method returns a reference to the workitem domain object, corresponding to a given workitem value object in the project domain object tree. | DomainUtil
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toLocaleString():String Returns the string representation of this object, formatted according to locale-specific conventions. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Constructor Detail

### DomainUtil

()
Constructor

`public function DomainUtil()`

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

The constructor for `DomainUtil` class.

Method Detail

### createProjectUsingSubProject

()
method

`public static function createProjectUsingSubProject(subProjectVO:ProjectVO):mx.rpc:AsyncToken`

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

This method returns a handle to the domain object for a specific project in the complete project tree.

Parameters

| `subProjectVO:ProjectVO` — Project value object, for which the project domain object is to be searched.

Returns

| `mx.rpc:AsyncToken` — It returns a token on which success or fault handlers can be attached. The result event contains a reference to the project domain object.

### createProjectUsingWorkItem

()
method

`public static function createProjectUsingWorkItem(workItemVO:WorkItemVO):mx.rpc:AsyncToken`

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

This method returns a handle to a domain object for a specific workitem in the complete project tree.

Parameters

| `workItemVO:WorkItemVO` — Workitem value object for which workitem domain object is to be searched.

Returns

| `mx.rpc:AsyncToken` — It returns a token on which success or fault handlers can be attached. The resulting event contains a reference to the workitem domain object.

### findProject

()
method

`public static function findProject(project:IProject, subProjectVO:ProjectVO):IProject`

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

This method returns a reference to the project domain object, corresponding to a given sub-project value object in the project domain object tree.

Parameters

| `project:IProject` — Project domain object tree in which sub-project value object is to be searched.
| `subProjectVO:ProjectVO` — Sub-project value object.

Returns

| `IProject` — It returns a reference to the project domain object corresponding to a given sub-project.

### findWorkItem

()
method

`public static function findWorkItem(project:IProject, workItemVO:WorkItemVO):IWorkItem`

Language Version: | ActionScript 3.0

Product Version: | Project Management Building Block 10.0

Runtime Versions: | Flash Player 10.2, AIR (unsupported)

This method returns a reference to the workitem domain object, corresponding to a given workitem value object in the project domain object tree.

Parameters

| `project:IProject` — Project domain object tree, in which the workitem value object is to be searched.
| `workItemVO:WorkItemVO` — Workitem value object.

Returns

| `IWorkItem` — It returns a reference to the workitem domain object, corresponding to a given workitem value object.

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