Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Working copy vs. mutable copy

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

0 votes



5 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,944

Question asked: Mar 25 '10, 11:03 a.m.

Question was seen: 6,349 times

Last updated: Mar 25 '10, 11:03 a.m.

Confirmation Cancel Confirm