|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.projmgmt.msproject.StandardMsProjectService
This is the default implementation of the MsProjectService
interface.
Use the newStandardMsProjectService
static factory method(s),
not the StandardMsProjectService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
RESOURCE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardMsProjectService()
|
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 . |
String |
getConceptualClassname()
Deprecated. |
private boolean |
hasImportPermission(WfContainer c)
Return true if the current user has permission to import a project plan into the specified container. |
WfContainer |
importProjectPlan(WfContainer c,
InputSource source,
ImportInfo info)
Update the specified ProjectPlan or
SummaryActivity using the XML
specification supplied by the provided InputSource . |
private WfContainer |
lock(WfContainer parent)
Lock the specified WfContainer and all of its
children. |
static StandardMsProjectService |
newStandardMsProjectService()
Default factory for the class. |
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, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
Constructor Detail |
public StandardMsProjectService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardMsProjectService newStandardMsProjectService() throws WTException
WTException
public WfContainer importProjectPlan(WfContainer c, InputSource source, ImportInfo info) throws WTException, WTPropertyVetoException
ProjectPlan
or
SummaryActivity
using the XML
specification supplied by the provided InputSource
.
The XML
must conform to the Microsoft Project
XML Schema
.
importProjectPlan
in interface MsProjectService
c
- the target object of the importsource
- info
- the info that controls the import process
WTException
WTPropertyVetoException
public void exportProjectPlan(WfContainer c, OutputStream ostream, ExportInfo info) throws WTException, IOException
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
exportProjectPlan
in interface MsProjectService
c
- the object to exportostream
- the stream to export the XML oninfo
- the info that controls the export process
WTException
IOException
public void requestImportProjectPlan(WfContainer c, OutputStream ostream, ImportInfo info) throws WTException, IOException
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
requestImportProjectPlan
in interface MsProjectService
c
- the ProjectPlan or SummaryActivity to request an import forostream
- the stream to export the request oninfo
- the import info for the request
WTException
IOException
private final boolean hasImportPermission(WfContainer c) throws WTException
WTException
private final WfContainer lock(WfContainer parent) throws WTException
WfContainer
and all of its
children. Return the locked container.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |