It's all about the answers!

Ask a question

SHARING_ADDED event type


Hung Lam (2911915) | asked May 23 '08, 6:01 p.m.
JAZZ DEVELOPER
Hi,
Is there any listeners/events that I can use to get a notification when a
project is shared?
Right now I am using:
FileSystemCore.getSharingManager().addListener(new
MyCopyFileAreaListener());

When I share my project with Jazz, I receive 2 event types:

SHARING_ADDED and SHARING_STATE_UPDATED.

I guess I can listen to SHARING_ADDED event to figure out if my project is
shared? If this is the right way to do it, is there any other situations
where I can receive the SHARING_ADDED beside when the user selects Team >
Share Project... in the context menu?

Thank you.

One answer



permanent link
Dmitry Karasik (1.8k11) | answered May 26 '08, 4:18 a.m.
JAZZ DEVELOPER
On Fri, 23 May 2008 18:01:47 -0400, Hung wrote:

I guess I can listen to SHARING_ADDED event to figure out if my project
is shared? If this is the right way to do it, is there any other
situations where I can receive the SHARING_ADDED beside when the user
selects Team > Share Project... in the context menu?

You can get that event when the user runs Load as well, or if they do any
SCM operation that results in a new project being created.

- Dmitry

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.