Copies the basic metadata and all IRole
objects from the source project to the target project.
null
. null
. The target project after copied from source project.
Prior to the call, the source project must be a persisted IProject
, and the target project can be persisted or not. Note: This is different from CopyProjectContent
method where both the source project and target project must be stored prior to the call.
IRole
objects, and start date information if the target project's start date is not set and the source project's start date is available. After the copy process is complete, the target project will be returned. The copied project will be stored permanently. No Store
method is required on the copied object. WARNING: The old roles in the target project will be overwritten with the copied roles from the source project. Note: This method does not copy the project content, only the project metadata. To copy the project content, use CopyProjectContent
. Example code:
// get the projects - the targetProject does not have to be stored IProject sourceProject = projectManager.getProject(sourceProjectID); IProject targetProject = projectManager.getProject(targetProjectID); projectManager.CopyProjectMetaData(sourceProject, targetProject);
Exception Type | Condition |
---|---|
InvalidOperationException | if the source project has not yet been stored or if either of the projects have already been removed. |
CollaborationException | The user is not a Project Leader in the target project or if the method call resulted in an error. |
SoapException | There was a communication problem during the execution of the remote method call. |
IProjectManager Interface | Plumtree.Remote.PRC.Collaboration.Project Namespace