It's all about the answers!

Ask a question

Receiving client event when stream is deleted

Gidi Gal (961952) | asked Nov 27 '14, 3:52 a.m.
Hello to the forum members,

I'm looking for an event to indicate when stream is deleted. I am using 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.


Accepted answer

permanent link
Evan Hughes (2.4k1318) | answered Dec 02 '14, 9:38 a.m.
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.
David Lafreniere selected this answer as the correct answer

One other answer

permanent link
Arne Bister (2.6k12832) | answered Dec 02 '14, 9:10 a.m.

superficial scan of code seems to indicate that there are generic delete actions, ID defined by e.g. ActionFactory.DELETE.getId(); as used in IMenuOperationTarget.

Would it help to look at

Your answer

Register or to post your answer.