wt.workflow.requirement
Class RequirementServiceFwd

java.lang.Object
  extended bywt.workflow.requirement.RequirementServiceFwd
All Implemented Interfaces:
RemoteAccess, RequirementService, Serializable

public class RequirementServiceFwd
extends Object
implements RemoteAccess, RequirementService, Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String FC_RESOURCE
           
(package private) static boolean SERVER
           
 
Fields inherited from interface wt.method.RemoteAccess
versionID
 
Constructor Summary
RequirementServiceFwd()
           
 
Method Summary
 void addRequirementAssociation(WTObject wcObject)
          RequirementException, WTException

Supported API: false
 void addWcObjectAssociation(WTObject wcObject)
          Associate a requirement object to a Windchill object.
 void authenticate()
          

Supported API: false
private static Manager getManager()
           
 Vector getRequirementAssociations(WTObject wcObject)
          Returns the requirements associated to a specified object.
 Vector getWcObjects()
          Returns list of Windchill objects associated to a specified requirement object.
 Vector queryModules(String projectName, String searchString)
          Returns the Doors modules of a project from the Doors database.
 Vector queryProjects(String searchString)
          Query the Doors database for projects.
 Vector queryRequirementObjects(String projectName, String moduleName, String searchString)
          Returns requirement objects of a module.
 void removeRequirementAssociation(WTObject wcObject)
          Removes the requirement reqObject from the Windchill object wcObject.
 void removeWcObjectAssociation(WTObject wcObject)
          Removes the requirement reqObject from the Windchill object wcObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

RequirementServiceFwd

public RequirementServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

removeRequirementAssociation

public void removeRequirementAssociation(WTObject wcObject)
                                  throws RequirementException,
                                         WTException
Removes the requirement reqObject from the Windchill object wcObject. If reqObject is not associated with wcObject RequirementException will be thrown.

Supported API: false

Specified by:
removeRequirementAssociation in interface RequirementService
Parameters:
wcObject - Windchill object from which the requirement should be removed.

Currently, only WTPart and WTDocument are supported.

Throws:
RequirementException
WTException

getRequirementAssociations

public Vector getRequirementAssociations(WTObject wcObject)
                                  throws RequirementException,
                                         WTException
Returns the requirements associated to a specified object. The returned vector holds objects of the type RequirementObject. Method returns null, if no requirement objects are associated.

Supported API: false

Specified by:
getRequirementAssociations in interface RequirementService
Parameters:
wcObject - The Windchill object.

Currently, only WTPart and WTDocument are supported.

Returns:
Vector
Throws:
RequirementException
WTException

addRequirementAssociation

public void addRequirementAssociation(WTObject wcObject)
                               throws WTException
RequirementException, WTException

Supported API: false

Specified by:
addRequirementAssociation in interface RequirementService
Parameters:
wcObject - Windchill object to which the requirement object object should be added.

Currently, only WTDocumentMaster or WTPartMaster are supported.

Throws:
WTException

addWcObjectAssociation

public void addWcObjectAssociation(WTObject wcObject)
                            throws WTException
Associate a requirement object to a Windchill object.

Supported API: false

Specified by:
addWcObjectAssociation in interface RequirementService
Parameters:
wcObject -
Throws:
WTException

removeWcObjectAssociation

public void removeWcObjectAssociation(WTObject wcObject)
                               throws RequirementException,
                                      WTException
Removes the requirement reqObject from the Windchill object wcObject. If reqObject is not associated to wcObject a RequirementException will be thrown

Supported API: false

Specified by:
removeWcObjectAssociation in interface RequirementService
Parameters:
wcObject - Windchill object, which is associated with the requirement reqObject.
Throws:
RequirementException
WTException

getWcObjects

public Vector getWcObjects()
                    throws RequirementException,
                           WTException
Returns list of Windchill objects associated to a specified requirement object. The returned vector holds objects of the type WTObject. Method returns null, if no WTObjects are associated.

Supported API: false

Specified by:
getWcObjects in interface RequirementService
Returns:
Vector
Throws:
RequirementException
WTException

queryProjects

public Vector queryProjects(String searchString)
                     throws IOException,
                            RequirementException,
                            WTException
Query the Doors database for projects.

Supported API: false

Specified by:
queryProjects in interface RequirementService
Parameters:
searchString - Search string. Pass empty string or null if all projects should be returned.
Returns:
Vector
Throws:
IOException
RequirementException
WTException

queryModules

public Vector queryModules(String projectName,
                           String searchString)
                    throws RequirementException,
                           IOException,
                           WTException
Returns the Doors modules of a project from the Doors database.

Supported API: false

Specified by:
queryModules in interface RequirementService
Parameters:
projectName - Name of the project to query on.
searchString - Search String. Pass empty string or null if all modules should be returned
Returns:
Vector
Throws:
RequirementException
IOException
WTException

queryRequirementObjects

public Vector queryRequirementObjects(String projectName,
                                      String moduleName,
                                      String searchString)
                               throws RequirementException,
                                      WTException
Returns requirement objects of a module.

Supported API: false

Specified by:
queryRequirementObjects in interface RequirementService
Parameters:
projectName -
moduleName -
searchString -
Returns:
Vector
Throws:
RequirementException
WTException

authenticate

public void authenticate()
                  throws WTException


Supported API: false

Specified by:
authenticate in interface RequirementService
Throws:
WTException