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 anyTemplateEvent
s.AbstractTemplateEvent(String id)
-
-
-
Constructor Detail
-
AbstractTemplateEvent
public AbstractTemplateEvent()
Matches anyTemplateEvent
s.
-
AbstractTemplateEvent
public AbstractTemplateEvent(String id)
- Parameters:
id
- the id of the template
-
-
Method Detail
-
matches
public boolean matches(Object otherEvent)
- Specified by:
matches
in interfaceorg.xwiki.observation.event.Event
-
getId
public String getId()
- Specified by:
getId
in interfaceTemplateEvent
- Returns:
- the id of the template
-
-