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

Comparing two IApprovalDescriptor objects

In the work item save operation participant, in order to detect whether an approval has changed its state (e.g. from pending to approved) I compare the old and the new states of the work item. For each descriptor from the "old" state I check if it has been approved/rejected in the "new" state. To implement this mechanism I have to implement the "equals" operation between two instances of IApprovalDescriptor. In Jazz sources, ApprovalChangePresentation's approvalDescriptorEquals() method implements this:
private boolean approvalDescriptorEquals(IApprovalDescriptor left, IApprovalDescriptor right) {
return ((ApprovalDescriptor) left).getId() == ((ApprovalDescriptor) right).getId();
}

However, ApprovalDescriptor is an "internal" API which is not supposed to be exposed. Is there another API/technique that Jazz extenders should use to implement the described functionality?

Thanks!

Alex

0 votes


Be the first one to answer this question!

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,943

Question asked: May 05 '08, 7:16 a.m.

Question was seen: 4,980 times

Last updated: May 05 '08, 7:16 a.m.

Confirmation Cancel Confirm