wt.projmgmt.msproject
Class MsProjectServiceFwd

java.lang.Object
  extended bywt.projmgmt.msproject.MsProjectServiceFwd
All Implemented Interfaces:
MsProjectService, RemoteAccess, Serializable

public class MsProjectServiceFwd
extends Object
implements RemoteAccess, MsProjectService, Serializable

This service provides access to the Microsoft Project Integration features of Windchill.

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
MsProjectServiceFwd()
           
 
Method Summary
 void exportProjectPlan(WfContainer c, OutputStream ostream, ExportInfo info)
          Export the specified ProjectPlan of SummaryActivity as XML that conforms to the Microsoft Project XML Schema.
private static Manager getManager()
           
 WfContainer importProjectPlan(WfContainer c, InputSource source, ImportInfo info)
          Update the specified ProjectPlan or SummaryActivity using the XML specification supplied by the provided InputSource.
 void requestImportProjectPlan(WfContainer c, OutputStream ostream, ImportInfo info)
          Generate a request for the client to import the specified file into the specified ProjectPlan or SummaryActivity.
 
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

MsProjectServiceFwd

public MsProjectServiceFwd()
Method Detail

getManager

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

importProjectPlan

public WfContainer importProjectPlan(WfContainer c,
                                     InputSource source,
                                     ImportInfo info)
                              throws WTException,
                                     WTPropertyVetoException
Update the specified ProjectPlan or SummaryActivity using the XML specification supplied by the provided InputSource. The XML must conform to the Microsoft Project XML Schema.

Supported API: false

Specified by:
importProjectPlan in interface MsProjectService
Parameters:
c - the target object of the import
source -
info - the info that controls the import process
Returns:
WfContainer
Throws:
WTException
WTPropertyVetoException

exportProjectPlan

public void exportProjectPlan(WfContainer c,
                              OutputStream ostream,
                              ExportInfo info)
                       throws WTException,
                              IOException
Export the specified ProjectPlan of SummaryActivity as XML that conforms to the Microsoft Project XML Schema. The XML is written to the specified OutputStream.

If info.isEdit() returns true, then additional information is included in the XML file that identifies the Windchill objects that the data corresponds to.

Supported API: false

Specified by:
exportProjectPlan in interface MsProjectService
Parameters:
c - the object to export
ostream - the stream to export the XML on
info - the info that controls the export process
Throws:
WTException
IOException

requestImportProjectPlan

public void requestImportProjectPlan(WfContainer c,
                                     OutputStream ostream,
                                     ImportInfo info)
                              throws WTException,
                                     IOException
Generate a request for the client to import the specified file into the specified ProjectPlan or SummaryActivity.

The client should use the information in the generated XML to send an importProjectPlan request to the server.

The generated XML conforms to the Existing Project XML Schema. The XML is written to specified OutputStream.

Supported API: false

Specified by:
requestImportProjectPlan in interface MsProjectService
Parameters:
c - the ProjectPlan or SummaryActivity to request an import for
ostream - the stream to export the request on
info - the import info for the request
Throws:
WTException
IOException