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.factory 

DomainFactory  - AS3 Project Management

Packagecom.adobe.solutions.prm.domain.factory
Classpublic class DomainFactory
InheritanceDomainFactory Inheritance Object

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

DomainFactory class is used to get the reference of domain objects. This class provides static methods to get these objects. Internally it invokes all the methods on the factory instance it holds.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  factory : IDomainFactory
[static] This property holds a reference to an actual factory instance that creates the domain objects.
DomainFactory
  showDirectChildForProject : Boolean = false
[static] This Boolean flag determines whether a complete project tree is displayed in the Gantt chart or just the direct children of the top-level projects are displayed.
DomainFactory
Public Methods
 MethodDefined By
  
The constructor of DomainFactory class.
DomainFactory
  
[static] This method creates an instance of the asset domain object.
DomainFactory
  
createProject(vo:ProjectVO, parent:IProject = null, root:IProject = null):IProject
[static] This method creates an instance of the project domain object.
DomainFactory
  
[static] This API returns a handle to the domain object for a specific project in a project tree.
DomainFactory
  
[static] This API returns a handle to the domain object for a specific workitem in a project tree.
DomainFactory
  
[static] This method creates an instance of the team member domain object.
DomainFactory
  
createWorkItem(vo:WorkItemVO, parent:IProject = null, root:IProject = null):IWorkItem
[static] This method creates an instance of the workitem domain object.
DomainFactory
 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
Property Detail

factory

property
factory:IDomainFactory

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This property holds a reference to an actual factory instance that creates the domain objects.



Implementation
    public static function get factory():IDomainFactory
    public static function set factory(value:IDomainFactory):void

showDirectChildForProject

property 
public static var showDirectChildForProject:Boolean = false

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This Boolean flag determines whether a complete project tree is displayed in the Gantt chart or just the direct children of the top-level projects are displayed. If set to True, only the direct children of top level project are displayed. By default a complete project tree is displayed in the Gantt chart.

The default value is false.

Constructor Detail

DomainFactory

()Constructor
public function DomainFactory()

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

The constructor of DomainFactory class.

Method Detail

createAsset

()method
public static function createAsset(vo:AssetVO, workItem:IWorkItem):IAsset

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This method creates an instance of the asset domain object.

Parameters

vo:AssetVO — An asset value object whose domain object is to be created.
 
workItem:IWorkItem — The workitem to which the asset is assigned.

Returns
IAsset — It returns an asset domain object.

createProject

()method 
public static function createProject(vo:ProjectVO, parent:IProject = null, root:IProject = null):IProject

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This method creates an instance of the project domain object.

Parameters

vo:ProjectVO — The project value object whose domain object is to be created.
 
parent:IProject (default = null) — A reference to the parent project domain object of the project value object.
 
root:IProject (default = null) — A reference to the root project domain object of the project value object.

Returns
IProject — It returns a project domain object.

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 API returns a handle to the domain object for a specific project in a project tree.

Parameters

subProjectVO:ProjectVO — A project value object for which a 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 resulting 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 API returns a handle to the domain object for a specific workitem in a project tree.

Parameters

workItemVO:WorkItemVO — A workitem value object for which a 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.

createTeamMember

()method 
public static function createTeamMember(vo:com.adobe.solutions.prm.vo:TeamMemberVO, project:IProject = null, workItem:IWorkItem = null):com.adobe.solutions.prm.domain:ITeamMember

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This method creates an instance of the team member domain object.

Parameters

vo:com.adobe.solutions.prm.vo:TeamMemberVO — The team member value object whose domain object is to be created.
 
project:IProject (default = null) — A reference to the project domain object to which this team member is assigned.
 
workItem:IWorkItem (default = null) — A reference to the workitem domain object to which this team member is assigned.

Returns
com.adobe.solutions.prm.domain:ITeamMember — It returns a team member domain object.

createWorkItem

()method 
public static function createWorkItem(vo:WorkItemVO, parent:IProject = null, root:IProject = null):IWorkItem

Language Version: ActionScript 3.0
Product Version: Project Management Building Block 10.0
Runtime Versions: Flash Player 10.2, AIR (unsupported)

This method creates an instance of the workitem domain object.

Parameters

vo:WorkItemVO — The workitem value object whose domain object is to be created.
 
parent:IProject (default = null) — A reference to the parent project domain object of the workitem value object.
 
root:IProject (default = null) — A reference to the root project domain object of the workitem value object.

Returns
IWorkItem — It returns a workitem domain object.