It's all about the answers!

Ask a question

Working copy vs. mutable copy


Gary Mullen-Schultz (28725536) | asked Mar 25 '10, 11:03 a.m.
I'm struggling to understand the difference between a working copy (ProjectAreaWorkingCopy) of a project, and just having a mutable version of a project (IProcessItemService.getMutableCopy(IProjectArea)).

What can/should I do to one, and what to the other?

Thanks, Gary

5 answers



permanent link
Jared Burns (4.5k29) | answered Mar 26 '10, 9:02 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Fri, 26 Mar 2010 12:38:02 +0000, garymu wrote:

By the way, Jared, the example code snippets I mentioned are packaged up
in the Plain Java Client Libraries zip file available from the RTC "All
Downloads" page.

Gary

Thanks, Gary. I wasn't aware of the snippets in this download. I'll try
to get them fixed up.

--
Jared Burns
Jazz Process Team

permanent link
Gary Mullen-Schultz (28725536) | answered Mar 26 '10, 8:24 a.m.
By the way, Jared, the example code snippets I mentioned are packaged up in the Plain Java Client Libraries zip file available from the RTC "All Downloads" page.

Gary

permanent link
Gary Mullen-Schultz (28725536) | answered Mar 25 '10, 1:47 p.m.
Sorry - I meant IProcessAreaWorkingCopy.

One of the code snippets (Snippet3.java) out there on Jazz.net to show how to use the APIs has the following line of code.

IProcessAreaWorkingCopy areaWc = (IProcessAreaWorkingCopy)service.getWorkingCopyManager().createPrivateWorkingCopy(teamArea);


Should this be done some other way?

Thanks for your help, Gary

permanent link
Jared Burns (4.5k29) | answered Mar 25 '10, 12:50 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Thu, 25 Mar 2010 17:53:00 +0000, garymu wrote:

One of the code snippets (Snippet3.java) out there on Jazz.net to show
how to use the APIs has the following line of code.

IProcessAreaWorkingCopy areaWc =
(IProcessAreaWorkingCopy)service.getWorkingCopyManager
().createPrivateWorkingCopy(teamArea);


This interface shouldn't be API and we have a workitem to remove it:
101050: Remove com.ibm.team.process.client.workingcopies as a "API"
package

The classes in the ...process.client.workingcopies package are intended
for use only by our editors. I'm disappointed to hear that someone posted
a snippet to jazz.net telling people to use this API. Can you please
point me to the URL?

If you want to modify a project area, you should just use a mutable copy.

--
Jared Burns
Jazz Process Team

permanent link
Jared Burns (4.5k29) | answered Mar 25 '10, 11:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Thu, 25 Mar 2010 15:08:01 +0000, garymu wrote:

I'm struggling to understand the difference between a working copy
(ProjectAreaWorkingCopy) of a project, and just having a mutable version
of a project
(IProcessItemService.getMutableCopy(IProjectArea)).

What can/should I do to one, and what to the other?

Thanks, Gary

ProjectAreaWorkingCopy isn't API so you can't use it.

--
Jared Burns
Jazz Process Team

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.