pase.server
Class PDEServiceImpl

java.lang.Object
  extended by pase.server.PDEServiceImpl
All Implemented Interfaces:
PDEService

public class PDEServiceImpl
extends java.lang.Object
implements PDEService

PDEService Implementation

Version:
2.0.0,
Author:
lchuang
See Also:
PDEService

Constructor Summary
PDEServiceImpl()
           
 
Method Summary
 boolean addFreqApRole(java.lang.String freID, java.lang.String rolID)
          Add a PASEFreqAP role
 boolean addPortletIDByFreqApId(java.lang.String newAppID, java.lang.String portletID)
           
 pe.pde.EmailTemplate getAddASEmailTemplate(java.lang.String proID)
           
 Artifact getArtifact(java.lang.String aID)
          Return a data object of artifact
 java.util.Vector getArtifactForm(java.lang.String aID)
          Return artifact forms of some specific artifact
 java.util.Vector getArtifactOfCompany()
          Return all artifacts
 java.util.Vector getArtifactOfProject(java.lang.String prjID)
          Return all artifact of some specific project
 java.lang.String getArtTskID(java.lang.String iID)
          Get the latest associated TaskID with the Artifact Instance.
 DBProcess getDBProcess(java.lang.String pID)
          Return a data object of process
 java.lang.String getDBProcessName(java.lang.String proID)
          Return a name of process
 pe.pde.EmailTemplate getEmailTemplate(java.lang.String etID)
           
 pe.entdiag.EnterpriseModel getEnterpriseDiagram()
          Get Enterprise diagram
 java.util.Vector getFreqApItemList()
          Return an auxiliary diagram item Vector for PASEFreqAp graphic view
 java.util.Vector getFreqApListOfMember(java.lang.String memID)
          Return a PASEFreqAp Vector of some member
 java.util.Vector<PASEFreqAp> getFreqApNodeList()
          Return a PASEFreqApNode Vector
 java.util.Vector<PASEFreqAp> getFreqApNodeList(java.lang.String prjId)
          Return a PASEFreqApNode Vector
 java.util.Vector getGroupSignProcess(java.lang.String memID)
           
 PASEFreqAp getPASEFreqAp(java.lang.String freID)
          Return a PASEFreqAP with ID
 java.lang.String getPASEFreqApIdByPortletID(java.lang.String portletID)
           
 PASEFreqAp getPASEFreqApNameArtID(java.lang.String freID)
          Return a PASEFreqAPNameArtID with ID
 java.util.Vector getPASEProcessOfMember(java.lang.String mID)
          Return the root processes of some specific member
 ProcessVersion getProcessVersion(java.lang.String rootProcessId)
          Return a data object of process version
 Project getProject(java.lang.String prjID)
          Return a data object of project by ID
 java.lang.String getProjectNameById(java.lang.String prjID)
          Return project name of project by ID
 java.util.Vector getProjectOfCompany()
          Return all projects
 java.util.Vector getProjectOfCompany(java.util.Vector<java.lang.String> comIDList)
           
 java.util.Vector getProjectOfCompanyByComId(java.lang.String comId)
          Return projects of this company
 java.util.Vector getProjectOfDepartment(java.lang.String dID)
          Return the projects of some specific department
 java.util.Vector getProjectOfManager(java.lang.String managerID)
          Return the projects with some specific project manager
 Project getProjectOfPASEProcess(java.lang.String proID)
          Return the project of the PASEProcess.
 java.util.Vector getRootDBProcessByName(java.lang.String pName)
          Return all root process of some specific DBProcess
 java.util.Vector getRootDBProcessOfProject(java.lang.String prjID)
          Return all root process of some specific project
 void sendTemplateMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String etID, java.util.Vector fileList, java.lang.String taskID, boolean isHtml)
           
 void sendTemplateMail(java.lang.String from, java.lang.String to, java.lang.String cc, java.lang.String etID, java.util.Vector fileList, java.lang.String taskID, boolean isHtml, java.lang.String lang)
           
 void setRmiServer(RMIServer rmiServer)
           
 boolean updateFreqAPOfPortletByPortletId(java.lang.String newAppID, java.lang.String portletId)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDEServiceImpl

public PDEServiceImpl()
Method Detail

setRmiServer

public void setRmiServer(RMIServer rmiServer)

getProject

public Project getProject(java.lang.String prjID)
Description copied from interface: PDEService
Return a data object of project by ID

Specified by:
getProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the project
See Also:
Project

getProjectNameById

public java.lang.String getProjectNameById(java.lang.String prjID)
Description copied from interface: PDEService
Return project name of project by ID

Specified by:
getProjectNameById in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
project name

getProjectOfCompany

public java.util.Vector getProjectOfCompany()
Description copied from interface: PDEService
Return all projects

Specified by:
getProjectOfCompany in interface PDEService
Returns:
all projects (each elemen in Vector are instance of Project)
See Also:
Project

getProjectOfCompany

public java.util.Vector getProjectOfCompany(java.util.Vector<java.lang.String> comIDList)
Specified by:
getProjectOfCompany in interface PDEService

getProjectOfCompanyByComId

public java.util.Vector getProjectOfCompanyByComId(java.lang.String comId)
Description copied from interface: PDEService
Return projects of this company

Specified by:
getProjectOfCompanyByComId in interface PDEService
Returns:
projects of this company (each elemen in Vector are instance of Project)
See Also:
Project

getProjectOfDepartment

public java.util.Vector getProjectOfDepartment(java.lang.String dID)
Description copied from interface: PDEService
Return the projects of some specific department

Specified by:
getProjectOfDepartment in interface PDEService
Parameters:
dID - the given DepartmentID
Returns:
all projects (each elemen in Vector are instance of Project)
See Also:
Project

getProjectOfManager

public java.util.Vector getProjectOfManager(java.lang.String managerID)
Description copied from interface: PDEService
Return the projects with some specific project manager

Specified by:
getProjectOfManager in interface PDEService
Parameters:
managerID - the given MemberID
Returns:
all projects (each elemen in Vector are instance of Project)
See Also:
Project

getProjectOfPASEProcess

public Project getProjectOfPASEProcess(java.lang.String proID)
Description copied from interface: PDEService
Return the project of the PASEProcess.

Specified by:
getProjectOfPASEProcess in interface PDEService
Parameters:
proID - the given PASEProcessID
Returns:
the project
See Also:
Project

getDBProcess

public DBProcess getDBProcess(java.lang.String pID)
Description copied from interface: PDEService
Return a data object of process

Specified by:
getDBProcess in interface PDEService
Parameters:
pID - the given ProcessID
Returns:
the process
See Also:
DBProcess

getDBProcessName

public java.lang.String getDBProcessName(java.lang.String proID)
Description copied from interface: PDEService
Return a name of process

Specified by:
getDBProcessName in interface PDEService
Parameters:
proID - the given ProcessID
Returns:
the process name

getProcessVersion

public ProcessVersion getProcessVersion(java.lang.String rootProcessId)
Description copied from interface: PDEService
Return a data object of process version

Specified by:
getProcessVersion in interface PDEService
Parameters:
rootProcessId - the given rootProcessID
Returns:
the process version
See Also:
ProcessVersion

getRootDBProcessOfProject

public java.util.Vector getRootDBProcessOfProject(java.lang.String prjID)
Description copied from interface: PDEService
Return all root process of some specific project

Specified by:
getRootDBProcessOfProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the correspondence root process(each elemen in Vector are instance of DBProcess)
See Also:
DBProcess

getRootDBProcessByName

public java.util.Vector getRootDBProcessByName(java.lang.String pName)
Description copied from interface: PDEService
Return all root process of some specific DBProcess

Specified by:
getRootDBProcessByName in interface PDEService
Parameters:
pName - the given ProjectName
Returns:
the correspondence root process(each elemen in Vector are instance of DBProcess)
See Also:
DBProcess

getPASEProcessOfMember

public java.util.Vector getPASEProcessOfMember(java.lang.String mID)
Description copied from interface: PDEService
Return the root processes of some specific member

Specified by:
getPASEProcessOfMember in interface PDEService
Parameters:
mID - the given MemberID
Returns:
the correspondence root processes(each elemen in Vector are instance of PASEProcess)
See Also:
PASEProcess

getGroupSignProcess

public java.util.Vector getGroupSignProcess(java.lang.String memID)
Specified by:
getGroupSignProcess in interface PDEService

getEnterpriseDiagram

public pe.entdiag.EnterpriseModel getEnterpriseDiagram()
Description copied from interface: PDEService
Get Enterprise diagram

Specified by:
getEnterpriseDiagram in interface PDEService
Returns:
enterprise diagram
See Also:
EnterpriseModel

getArtifact

public Artifact getArtifact(java.lang.String aID)
Description copied from interface: PDEService
Return a data object of artifact

Specified by:
getArtifact in interface PDEService
Parameters:
aID - the given ArtifactID
Returns:
the artifact

getArtTskID

public java.lang.String getArtTskID(java.lang.String iID)
Description copied from interface: PDEService
Get the latest associated TaskID with the Artifact Instance.

Specified by:
getArtTskID in interface PDEService
Parameters:
iID - the given artifact instance id
Returns:
the latest TaskID

getArtifactOfCompany

public java.util.Vector getArtifactOfCompany()
Description copied from interface: PDEService
Return all artifacts

Specified by:
getArtifactOfCompany in interface PDEService
Returns:
all artifacts (each elemen in Vector are instance of Artifact)
See Also:
Artifact

getArtifactOfProject

public java.util.Vector getArtifactOfProject(java.lang.String prjID)
Description copied from interface: PDEService
Return all artifact of some specific project

Specified by:
getArtifactOfProject in interface PDEService
Parameters:
prjID - the given ProjectID
Returns:
the correspondence artifacts(each elemen in Vector are instance of Artifact)
See Also:
Artifact

getArtifactForm

public java.util.Vector getArtifactForm(java.lang.String aID)
Description copied from interface: PDEService
Return artifact forms of some specific artifact

Specified by:
getArtifactForm in interface PDEService
Parameters:
aID - the given ArtifactID
Returns:
the correspondence artifact forms(each elemen in Vector are instance of ArtFormItem)
See Also:
ArtFormItem

getFreqApNodeList

public java.util.Vector<PASEFreqAp> getFreqApNodeList(java.lang.String prjId)
Description copied from interface: PDEService
Return a PASEFreqApNode Vector

Specified by:
getFreqApNodeList in interface PDEService
Returns:
all frequence application nodes(each elemen in Vector are instance of PASEFreApNode)
See Also:
PASEFreApNode

getFreqApNodeList

public java.util.Vector<PASEFreqAp> getFreqApNodeList()
Description copied from interface: PDEService
Return a PASEFreqApNode Vector

Specified by:
getFreqApNodeList in interface PDEService
Returns:
all frequence application nodes(each elemen in Vector are instance of PASEFreApNode)
See Also:
PASEFreApNode

getFreqApListOfMember

public java.util.Vector getFreqApListOfMember(java.lang.String memID)
Description copied from interface: PDEService
Return a PASEFreqAp Vector of some member

Specified by:
getFreqApListOfMember in interface PDEService
Returns:
the correspondence frequence applications(each elemen in Vector are instance of PASEFreAp)
See Also:
PASEFreAp

getFreqApItemList

public java.util.Vector getFreqApItemList()
Description copied from interface: PDEService
Return an auxiliary diagram item Vector for PASEFreqAp graphic view

Specified by:
getFreqApItemList in interface PDEService
Returns:
all diagram items(each elemen in Vector are instance of DiagramItem)
See Also:
DiagramItem

getPASEFreqAp

public PASEFreqAp getPASEFreqAp(java.lang.String freID)
Description copied from interface: PDEService
Return a PASEFreqAP with ID

Specified by:
getPASEFreqAp in interface PDEService
Parameters:
freID - the given PASEFreqApID
Returns:
the PASEFreqAp
See Also:
PASEFreAp

getPASEFreqApNameArtID

public PASEFreqAp getPASEFreqApNameArtID(java.lang.String freID)
Description copied from interface: PDEService
Return a PASEFreqAPNameArtID with ID

Specified by:
getPASEFreqApNameArtID in interface PDEService
Parameters:
freID - the given PASEFreqApID
Returns:
the PASEFreqAp name and artID
See Also:
PASEFreApNameArtID

addFreqApRole

public boolean addFreqApRole(java.lang.String freID,
                             java.lang.String rolID)
Description copied from interface: PDEService
Add a PASEFreqAP role

Specified by:
addFreqApRole in interface PDEService
Parameters:
freID - the given PASEFreqApID
rolID - the given RoleID
Returns:
true if the adding is successful; false otherwise.

getEmailTemplate

public pe.pde.EmailTemplate getEmailTemplate(java.lang.String etID)
Specified by:
getEmailTemplate in interface PDEService

getAddASEmailTemplate

public pe.pde.EmailTemplate getAddASEmailTemplate(java.lang.String proID)
Specified by:
getAddASEmailTemplate in interface PDEService

sendTemplateMail

public void sendTemplateMail(java.lang.String from,
                             java.lang.String to,
                             java.lang.String cc,
                             java.lang.String etID,
                             java.util.Vector fileList,
                             java.lang.String taskID,
                             boolean isHtml)
Specified by:
sendTemplateMail in interface PDEService

sendTemplateMail

public void sendTemplateMail(java.lang.String from,
                             java.lang.String to,
                             java.lang.String cc,
                             java.lang.String etID,
                             java.util.Vector fileList,
                             java.lang.String taskID,
                             boolean isHtml,
                             java.lang.String lang)
Specified by:
sendTemplateMail in interface PDEService

getPASEFreqApIdByPortletID

public java.lang.String getPASEFreqApIdByPortletID(java.lang.String portletID)
Specified by:
getPASEFreqApIdByPortletID in interface PDEService

addPortletIDByFreqApId

public boolean addPortletIDByFreqApId(java.lang.String newAppID,
                                      java.lang.String portletID)
Specified by:
addPortletIDByFreqApId in interface PDEService

updateFreqAPOfPortletByPortletId

public boolean updateFreqAPOfPortletByPortletId(java.lang.String newAppID,
                                                java.lang.String portletId)
Specified by:
updateFreqAPOfPortletByPortletId in interface PDEService