Package org.xwiki.template.event
Class AbstractTemplateEvent
- java.lang.Object
-
- org.xwiki.template.event.AbstractTemplateEvent
-
- All Implemented Interfaces:
org.xwiki.observation.event.Event,TemplateEvent
- Direct Known Subclasses:
TemplateDeletedEvent,TemplateUpdatedEvent
public abstract class AbstractTemplateEvent extends Object implements TemplateEvent
Base class for all events related to templates.- Since:
- 7.0M1
- Version:
- $Id: a76191ec4f5c8259dda15ccb8bcaab84cc0a8f3e $
-
-
Constructor Summary
Constructors Constructor Description AbstractTemplateEvent()Matches anyTemplateEvents.AbstractTemplateEvent(String id)
-
-
-
Constructor Detail
-
AbstractTemplateEvent
public AbstractTemplateEvent()
Matches anyTemplateEvents.
-
AbstractTemplateEvent
public AbstractTemplateEvent(String id)
- Parameters:
id- the id of the template
-
-
Method Detail
-
matches
public boolean matches(Object otherEvent)
- Specified by:
matchesin interfaceorg.xwiki.observation.event.Event
-
getId
public String getId()
- Specified by:
getIdin interfaceTemplateEvent- Returns:
- the id of the template
-
-