Receiving client event when stream is deleted
Hello to the forum members,
I'm looking for an event to indicate when stream is deleted. I am using
com.ibm.team.filesystem.client.ISharingManager.addListener(com.ibm.team.filesystem.client.ICopyFileAreaListener arg0) to detect when component is loaded\unloaded. However, this listener is not notified when stream is deleted. If you know which listener receives such event I'll be grateful for your comments.
Thanks,
Gidi
I'm looking for an event to indicate when stream is deleted. I am using
com.ibm.team.filesystem.client.ISharingManager.addListener(com.ibm.team.filesystem.client.ICopyFileAreaListener arg0) to detect when component is loaded\unloaded. However, this listener is not notified when stream is deleted. If you know which listener receives such event I'll be grateful for your comments.
Thanks,
Gidi
Accepted answer
You can use the IItemManager#addItemChangeListener() to listen for item deletions. If your client is offline while the deletion occurs, you won't get an event (but fetching the item will fail). If you want to handle that scenario, you could look at the event feed for the owning process area.