info.magnolia.module.observation.commands
Class RestrictToNodeTypeEventListener

java.lang.Object
  extended by info.magnolia.module.observation.commands.CommandEventListener
      extended by info.magnolia.module.observation.commands.RestrictToNodeTypeEventListener
All Implemented Interfaces:
BaseConfiguration, javax.jcr.observation.EventListener
Direct Known Subclasses:
RegexEventListener

public class RestrictToNodeTypeEventListener
extends CommandEventListener
implements BaseConfiguration

Event listener class that implements the restrict path to node type behavior.


Constructor Summary
RestrictToNodeTypeEventListener()
           
 
Method Summary
 ObservationConfiguration getConfiguration()
           
 String getNodeType()
           
protected  String getPath(javax.jcr.observation.Event event)
           
 void setConfiguration(ObservationConfiguration obs)
           
 void setNodeType(String nodeType)
           
 
Methods inherited from class info.magnolia.module.observation.commands.CommandEventListener
checkIfEventIsProcessed, getCommand, getParams, onEvent, setCommand, setParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictToNodeTypeEventListener

public RestrictToNodeTypeEventListener()
Method Detail

getPath

protected String getPath(javax.jcr.observation.Event event)
                  throws javax.jcr.RepositoryException
Overrides:
getPath in class CommandEventListener
Throws:
javax.jcr.RepositoryException

getNodeType

public String getNodeType()

setNodeType

public void setNodeType(String nodeType)

getConfiguration

public ObservationConfiguration getConfiguration()
Specified by:
getConfiguration in interface BaseConfiguration

setConfiguration

public void setConfiguration(ObservationConfiguration obs)
Specified by:
setConfiguration in interface BaseConfiguration


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