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.prm.domain 

DomainUtil  - AS3 Project Management

Packagecom.adobe.solutions.prm.domain
Classpublic class DomainUtil
InheritanceDomainUtil Inheritance 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
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
The constructor for DomainUtil class.
DomainUtil
  
[static] This method returns a handle to the domain object for a specific project in the complete project tree.
DomainUtil
  
[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
  
[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
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
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.