public class WebServicesReader extends Object
| Constructor and Description |
|---|
WebServicesReader(String url,
String bearerToken)
Constructor.
|
WebServicesReader(String url,
String databaseName,
String user,
String password)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportProject(WebServicesProject project,
OutputStream stream,
WebServicesExportType type,
boolean includeBaseline,
boolean compressed)
Export a project.
|
void |
exportProject(WebServicesProject project,
String filename,
WebServicesExportType type,
boolean includeBaseline,
boolean compressed)
Export a project.
|
List<WebServicesProject> |
getProjects()
Retrieve details of the projects available via the P6 Web Services API.
|
ProjectFile |
readProject(WebServicesProject project)
Read a project and return a ProjectFile instance.
|
ProjectFile |
readProject(WebServicesProject project,
boolean includeBaseline)
Read a project and return a ProjectFile instance.
|
public WebServicesReader(String url, String databaseName, String user, String password)
url - P6 Web Services URLdatabaseName - database nameuser - user namepassword - passwordpublic List<WebServicesProject> getProjects()
public void exportProject(WebServicesProject project, String filename, WebServicesExportType type, boolean includeBaseline, boolean compressed) throws IOException
project - WebServicesProject instance identifying the project to exportfilename - name of file to which the project data is writtentype - export typeincludeBaseline - true if the baseline should be included in the exportcompressed - true if the project data should be exported as a zip fileIOExceptionpublic void exportProject(WebServicesProject project, OutputStream stream, WebServicesExportType type, boolean includeBaseline, boolean compressed) throws IOException
project - WebServicesProject instance identifying the project to exportstream - OutputStream instance to which project data will be writtentype - export typeincludeBaseline - true if the baseline should be included in the exportcompressed - true if the project data should be exported as a zip fileIOExceptionpublic ProjectFile readProject(WebServicesProject project) throws MPXJException
project - WebServicesProject instance identifying the project to readMPXJExceptionpublic ProjectFile readProject(WebServicesProject project, boolean includeBaseline) throws MPXJException
project - WebServicesProject instance identifying the project to readincludeBaseline - true if the current baseline should be includedMPXJExceptionCopyright © 2000–2025 MPXJ. All rights reserved.