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

difference between 2 methods

Hi

I'm supposed to add custom attributes to some Work Items I generate

the question is

what is the difference between

IAttribute createAttribute(IProjectAreaHandle projectArea, String
identifier, String attributeType, String displayName, IProgressMonitor
monitor) throws TeamRepositoryException;

and


IAttribute createNewAttribute(IProjectAreaHandle projectArea, String
identifier, String attributeType, String fullTextKind, IProgressMonitor
monitor) throws TeamRepositoryException;


in com.ibm.team.workitem.common.IWorkItemCommon ?

Regards

--
cd

0 votes



One answer

Permanent link
what is the difference between

IAttribute createAttribute(IProjectAreaHandle projectArea, String
identifier, String attributeType, String displayName, IProgressMonitor
monitor) throws TeamRepositoryException;

This method creates a new custom attribute and stores it in the
repository. The returned IAttribute is not a working copy and cannot be
modified any further.

IAttribute createNewAttribute(IProjectAreaHandle projectArea, String
identifier, String attributeType, String fullTextKind, IProgressMonitor
monitor) throws TeamRepositoryException;

This method creates a new custom attribute but does not store it yet.
The returned IAttribute is a working copy and can still be modified. You
have to store the attribute yourself using
IWorkItemCommon#saveAttribute(...)

JavaDoc for the Work Item API is available in the latest build and also
covers IWorkItemCommon.

HTH,
Patrick,
Jazz Work Item 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,941

Question asked: Jun 06 '08, 11:53 a.m.

Question was seen: 6,853 times

Last updated: Jun 06 '08, 11:53 a.m.

Confirmation Cancel Confirm