It's all about the answers!

Ask a question

How do I use the API to get/set the project area whose process another project area is sharing?


0
2
sam detweiler (12.5k6195201) | asked Jul 06 '12, 1:06 p.m.
edited Jul 09 '12, 5:05 p.m. by David Olsen (5237)
I am looking for the method to get/set the project process parent configuration.. internal is ok..

I don't see anything in IProjectArea, IProcessArea, IProcessContainer..
(its not links, nor 'project' of process area)

must be blind..

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Jul 09 '12, 10:16 a.m.
the get/set methods are on the ProjectArea class in com.ibm.team.process.internal.common
this is an interface, implemented in IProjectAreaImpl
(in com.ibm.team.process.common)

public IProjectAreaHandle getProcessProvider();
public void setProcessProvider(IProjectAreaHandle provider);

the save operation is

IProcessItemservice().save(item, monitor)

note that this is a client application..

how do you attach source to these posts now with the new forum

Ralph Schoon selected this answer as the correct answer

Comments
1
Parker Dunton commented Jul 09 '12, 4:02 p.m.
JAZZ DEVELOPER

FYI that interface is internal, and as such, subject to change.

2 other answers



permanent link
sam detweiler (12.5k6195201) | answered Jul 09 '12, 12:06 p.m.
I sent you the source if you can post it..

permanent link
sam detweiler (12.5k6195201) | answered Jul 09 '12, 7:50 a.m.
found how to get/set.. but this doesn't update the database..

is there a 'save project' method? I think the save has to do some work with the parent process link..



Comments
Ralph Schoon commented Jul 09 '12, 7:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Sam, can you publish the getter/setter and which service class/client library has it?


Your answer


Register or to post your answer.