8 #include <system/object.h>
9 #include <system/eventhandler.h>
11 #include "aspose.tasks.cpp/IO/Pwa/WebRequestEventArgs.h"
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
23 class IProjectServerConnection;
28 class ProjectServerCredentials;
29 class ProjectServerSaveOptions;
38 template <
typename>
class IEnumerable;
59 typedef System::Object BaseType;
61 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
62 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
93 ASPOSE_TASKS_SHARED_API
ProjectServerManager(
const System::SharedPtr<ProjectServerCredentials>& credentials);
100 ASPOSE_TASKS_SHARED_API System::SharedPtr<Project>
GetProject(System::Guid projectGuid);
123 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::IO::Stream>
GetProjectRawData(System::Guid projectGuid);
128 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<ProjectInfo>>>
GetProjectList();
148 ASPOSE_TASKS_SHARED_API
void UpdateProject(
const System::SharedPtr<Project>& project);
172 ASPOSE_TASKS_SHARED_API
void UpdateProject(
const System::SharedPtr<Project>& project,
const System::SharedPtr<ProjectServerSaveOptions>& saveOptions);
208 ASPOSE_TASKS_SHARED_API
void CreateNewProject(
const System::SharedPtr<Project>& project,
const System::SharedPtr<ProjectServerSaveOptions>& saveOptions);
212 ASPOSE_TASKS_SHARED_API
ProjectServerManager(
const System::SharedPtr<IO::Pwa::IProjectServerConnection>& connection);
214 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ProjectServerManager, CODEPORTING_ARGS(
const System::SharedPtr<IO::Pwa::IProjectServerConnection>& connection));
215 ASPOSE_TASKS_SHARED_API
void DeleteProject(System::Guid projectGuid);
219 #ifdef ASPOSE_GET_SHARED_MEMBERS
220 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
226 System::SharedPtr<IO::Pwa::IProjectServerConnection> connection;
227 System::SharedPtr<ILogger> logger;
229 void ConnectionOnExecutingWebRequest(
const System::SharedPtr<System::Object>& sender,
const System::SharedPtr<WebRequestEventArgs>& e);
The class which provides the methods to read and to perform operations on projects in the specified P...
Definition: ProjectServerManager.h:57
System::SharedPtr< System::IO::Stream > GetProjectRawData(System::Guid projectGuid)
Gets the project's binary data for troubleshooting purposes.
void CreateNewProject(const System::SharedPtr< Project > &project)
Creates new project in Project Server\Project Online instance using default save options.
void UpdateProject(const System::SharedPtr< Project > &project, const System::SharedPtr< ProjectServerSaveOptions > &saveOptions)
Updates existing project in Project Server\Project Online instance using the specified save options....
void UpdateProject(const System::SharedPtr< Project > &project)
Updates existing project in Project Server\Project Online instance using default save options....
void CreateNewProject(const System::SharedPtr< Project > &project, const System::SharedPtr< ProjectServerSaveOptions > &saveOptions)
Creates new project in Project Server\Project Online instance using the specified save options.
System::SharedPtr< Project > GetProject(System::Guid projectGuid)
Gets the project with the specified guid from the Project Online account \ Project Server instance.
ProjectServerManager(const System::SharedPtr< ProjectServerCredentials > &credentials)
Initializes a new instance of the ProjectServerManager class.
System::EventHandler< System::SharedPtr< WebRequestEventArgs > > ExecutingWebRequest
An event that is raised when the web request is sent to Project Server's web API.
Definition: ProjectServerManager.h:69
System::SharedPtr< System::Collections::Generic::IEnumerable< System::SharedPtr< ProjectInfo > > > GetProjectList()
Gets the list of projects from 'Working' store of the current Project Online account \ Project Server...