Agentflow
V3.1

pe.pase
Class Project

java.lang.Object
  extended by pe.pase.Project
All Implemented Interfaces:
com.flowring.entity.Entity, java.io.Serializable
Direct Known Subclasses:
AFProject

public class Project
extends java.lang.Object
implements java.io.Serializable, com.flowring.entity.Entity

A data object to represent the concept of project in a enterprise.

The project is the important element in an enterprise. In Agentflow System, any process is attached to one Project. There are some factors included in the project such as the project name, the manager, the member, the mission, and so on. These factors are supported in the filedes of the class introduced as following:

The ProjectID is unique and used to identify the specific project in the Agentflow System. However, in the real world, some enterprise has its own way to identify its project. Therefore, the ProjectUDID (User-Defined-ID) is used to meet the requirement by filling the corresponding projectID.

The ProjectName and the ProjectManagerID represent the name and the manager of the project. The later exists a RoleID. The ProjectDepartmentID indicates the Department which own the Project. The ProjectDescription is used to annotate the project. Then the ProjectAuthor and the ProjectVersion indicate the author and the version of the project. The later is reserved for the future extension of version control. It is just used for the document-generation to show the version presently.

Three kinds of lists contained in the class: the ProcessIDList, ArtifactIDList, and ProjectRoleIDList. They store the Process, Artifact, and ProjectRole attached to the Project.

Since:
version 1.0.0
Version:
1.1.5,
Author:
yschen
See Also:
ProjectRole, DBProcess, Serialized Form

Constructor Summary
Project()
           
Project(java.lang.String id)
          Constructor.
Project(java.lang.String id, java.lang.String password)
          Constructor.
 
Method Summary
 void addArtifactRootID(java.lang.String artifactRootID)
          Add the specified artifact id
 void addFreqapRootID(java.lang.String id)
           
 void addProcessRootID(java.lang.String ProcessRootID)
          Add the specified process id
 void addProjectRoleRootID(java.lang.String prjRoleRootID)
          Add the specified project role id
 boolean checkFormOpenPassword(java.lang.String pass)
           
 java.util.Vector getArtifactRootIDList()
          Get the artifact id list
 java.lang.String getAuthorID()
          Get the project author
 java.lang.String getCompanyID()
          Get the company id
 java.lang.String getDepartmentID()
          Get the project department id
 java.lang.String getDescription()
          Get the project description
 java.util.Vector getFreqapRootIDList()
           
 java.lang.Object getHashKey()
           
 java.lang.String getID()
          Get the project id
 java.lang.String getManagerID()
          Get the project manager id
 java.lang.String getMyID()
          Get the project user-define id
 java.lang.String getName()
          Get the project name
 java.util.Vector getProcessRootIDList()
          Get the process id list
 java.util.Vector getProjectRoleRootIDList()
          Get the project role id list
 int getSiblingOrder()
           
 java.lang.String getVersion()
          Get the project version
 boolean isFormOpenProtected()
           
 boolean removeArtifactRootID(java.lang.String artifactRootID)
          Remove the specified artifact id
 boolean removeFreqapRootID(java.lang.String id)
           
 boolean removeProcessRootID(java.lang.String ProcessRootID)
          Remove the specified process id
 boolean removeProjectRoleRootID(java.lang.String prjRoleRootID)
          Remove the specified project role id
 void setArtifactRootIDList(java.util.Vector prList)
          Set the artifact id list
 void setAuthorID(java.lang.String authID)
          Set the project author
 void setCompanyID(java.lang.String companyID)
          Set the company id
 void setDepartmentID(java.lang.String depID)
          Set the project department id
 void setDescription(java.lang.String desc)
          Set the project description
 void setFreqapRootIDList(java.util.Vector list)
           
 void setID(java.lang.String id)
          Set the project id
 void setManagerID(java.lang.String id)
          Set the project manager id
 void setMyID(java.lang.String id)
          Set the project user-define id
 void setName(java.lang.String name)
          Set the project name
 void setProcessRootIDList(java.util.Vector prList)
          Set the process id list
 void setProjectRoleRootIDList(java.util.Vector prList)
          Set the project role id list
 void setSiblingOrder(int order)
           
 void setVersion(java.lang.String ver)
          Set the project version
 void update(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Project

public Project()

Project

public Project(java.lang.String id)
Constructor. Construct a instance of Project with the specified project id.

Parameters:
id - the given project id
Since:
version 1.0.0

Project

public Project(java.lang.String id,
               java.lang.String password)
Constructor. This counstruct is internal use only. Construct a instance of Project with the specified project id.

Parameters:
id - the given project id
id - the given project open form password
Since:
version 1.0.0
Method Detail

addArtifactRootID

public void addArtifactRootID(java.lang.String artifactRootID)
Add the specified artifact id

Parameters:
artifactRootID - the given artifact id
Since:
version 1.0.0

addFreqapRootID

public void addFreqapRootID(java.lang.String id)

addProcessRootID

public void addProcessRootID(java.lang.String ProcessRootID)
Add the specified process id

Parameters:
ProcessRootID - the given process id
Since:
version 1.0.0

addProjectRoleRootID

public void addProjectRoleRootID(java.lang.String prjRoleRootID)
Add the specified project role id

Parameters:
prjRoleRootID - the given project role id
Since:
version 1.0.0

checkFormOpenPassword

public boolean checkFormOpenPassword(java.lang.String pass)

getArtifactRootIDList

public java.util.Vector getArtifactRootIDList()
Get the artifact id list

Returns:
the given artifact id list (each element in Vector is artifact id)
Since:
version 1.0.0

getAuthorID

public java.lang.String getAuthorID()
Get the project author

Returns:
the project author
Since:
version 1.0.0

getCompanyID

public java.lang.String getCompanyID()
Get the company id

Returns:
the company id
Since:
version 3.1

getDepartmentID

public java.lang.String getDepartmentID()
Get the project department id

Returns:
the project department id
Since:
version 1.0.0

getDescription

public java.lang.String getDescription()
Get the project description

Returns:
the project description
Since:
version 1.0.0

getFreqapRootIDList

public java.util.Vector getFreqapRootIDList()

getHashKey

public java.lang.Object getHashKey()
Specified by:
getHashKey in interface com.flowring.entity.Entity

getID

public java.lang.String getID()
Get the project id

Returns:
the project id
Since:
version 1.0.0

getManagerID

public java.lang.String getManagerID()
Get the project manager id

Returns:
the project manager id
Since:
version 1.0.0

getMyID

public java.lang.String getMyID()
Get the project user-define id

Returns:
the project user-define id
Since:
version 1.0.0

getName

public java.lang.String getName()
Get the project name

Returns:
the project name
Since:
version 1.0.0

getProcessRootIDList

public java.util.Vector getProcessRootIDList()
Get the process id list

Returns:
the given process id list (each element in Vector is root process id)
Since:
version 1.0.0

getProjectRoleRootIDList

public java.util.Vector getProjectRoleRootIDList()
Get the project role id list

Returns:
the given project role id list (each element in Vector is project role id)
Since:
version 1.0.0

getSiblingOrder

public int getSiblingOrder()

getVersion

public java.lang.String getVersion()
Get the project version

Returns:
the project version
Since:
version 1.0.0

isFormOpenProtected

public boolean isFormOpenProtected()

removeArtifactRootID

public boolean removeArtifactRootID(java.lang.String artifactRootID)
Remove the specified artifact id

Parameters:
artifactRootID - the given artifact id
Returns:
true if the removal is successful; false otherwise
Since:
version 1.0.0

removeFreqapRootID

public boolean removeFreqapRootID(java.lang.String id)

removeProcessRootID

public boolean removeProcessRootID(java.lang.String ProcessRootID)
Remove the specified process id

Parameters:
ProcessRootID - the given process id
Returns:
true if the removal is successful; false otherwise
Since:
version 1.0.0

removeProjectRoleRootID

public boolean removeProjectRoleRootID(java.lang.String prjRoleRootID)
Remove the specified project role id

Parameters:
prjRoleRootID - the given project role id
Returns:
true if the removal is successful; false otherwise
Since:
version 1.0.0

setArtifactRootIDList

public void setArtifactRootIDList(java.util.Vector prList)
Set the artifact id list

Parameters:
prList - the given artifact id list (each element in Vector is artifact id)
Since:
version 1.0.0

setAuthorID

public void setAuthorID(java.lang.String authID)
Set the project author

Parameters:
authID - the given project author
Since:
version 1.0.0

setCompanyID

public void setCompanyID(java.lang.String companyID)
Set the company id

Parameters:
companyID - the given company id
Since:
version 1.0.0

setDepartmentID

public void setDepartmentID(java.lang.String depID)
Set the project department id

Parameters:
depID - the given project department id
Since:
version 1.0.0

setDescription

public void setDescription(java.lang.String desc)
Set the project description

Parameters:
desc - the given project description
Since:
version 1.0.0

setFreqapRootIDList

public void setFreqapRootIDList(java.util.Vector list)

setID

public void setID(java.lang.String id)
Set the project id

Parameters:
id - the given project id
Since:
version 1.0.0

setManagerID

public void setManagerID(java.lang.String id)
Set the project manager id

Parameters:
id - the given project manager id
Since:
version 1.0.0

setMyID

public void setMyID(java.lang.String id)
Set the project user-define id

Parameters:
id - the given project user-define id
Since:
version 1.0.0

setName

public void setName(java.lang.String name)
Set the project name

Parameters:
name - the given project name
Since:
version 1.0.0

setProcessRootIDList

public void setProcessRootIDList(java.util.Vector prList)
Set the process id list

Parameters:
prList - the given process id list (each element in Vector is root process id)
Since:
version 1.0.0

setProjectRoleRootIDList

public void setProjectRoleRootIDList(java.util.Vector prList)
Set the project role id list

Parameters:
prList - the given project role id list (each element in Vector is project role id)
Since:
version 1.0.0

setSiblingOrder

public void setSiblingOrder(int order)

setVersion

public void setVersion(java.lang.String ver)
Set the project version

Parameters:
ver - the given project version
Since:
version 1.0.0

update

public void update(java.lang.Object obj)
Specified by:
update in interface com.flowring.entity.Entity

Agentflow
V3.1

Submit a bug or feature
Copyright 1999-2010 Flowring , Inc. 12F., No.120, Sec2, Gongdao 5th Rd.,
Hsinchu City 300, Taiwan (R.O.C.) All Rights Reserved.