info.magnolia.ui.api.event
Class ContentChangedEvent

java.lang.Object
  extended by info.magnolia.ui.api.event.ContentChangedEvent
All Implemented Interfaces:
info.magnolia.event.Event<ContentChangedEvent.Handler>

public class ContentChangedEvent
extends Object
implements info.magnolia.event.Event<ContentChangedEvent.Handler>

Event fired when content is changed in a workspace. Holds an itemId of an item that is related to the changes made. If the change was a deletion the itemId is the parent of the deleted item. If something was added the itemId is for the new item.


Nested Class Summary
static interface ContentChangedEvent.Handler
          Handles ContentChangedEvent events.
 
Constructor Summary
ContentChangedEvent(String workspace, String itemId)
           
ContentChangedEvent(String workspace, String itemId, boolean itemContentsChanged)
           
 
Method Summary
 void dispatch(ContentChangedEvent.Handler handler)
           
 String getItemId()
           
 String getWorkspace()
           
 boolean isItemContentChanged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentChangedEvent

public ContentChangedEvent(String workspace,
                           String itemId)

ContentChangedEvent

public ContentChangedEvent(String workspace,
                           String itemId,
                           boolean itemContentsChanged)
Method Detail

getWorkspace

public String getWorkspace()

getItemId

public String getItemId()

isItemContentChanged

public boolean isItemContentChanged()

dispatch

public void dispatch(ContentChangedEvent.Handler handler)
Specified by:
dispatch in interface info.magnolia.event.Event<ContentChangedEvent.Handler>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.