org.springframework.extensions.jcr
Class EventListenerDefinition

java.lang.Object
  extended by org.springframework.extensions.jcr.EventListenerDefinition
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class EventListenerDefinition
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean

Transport class used for registering event types inside a workspace. It contains defaults for all properties except the listener (obviously):

  1. absPath = "/"
  2. eventTypes = Event.NODE_ADDED | Event.NODE_REMOVED | Event.PROPERTY_ADDED | Event.PROPERTY_CHANGED | Event.PROPERTY_REMOVED
  3. isDeep = true
  4. uuid = null
  5. nodeTypeName = null
  6. noLocal = false

Author:
Costin Leau, Sergio Bossa, Salvatore Incandela
See Also:
ObservationManager.addEventListener(javax.jcr.observation.EventListener, int, java.lang.String, boolean, java.lang.String[], java.lang.String[], boolean)

Constructor Summary
EventListenerDefinition()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getAbsPath()
           
 int getEventTypes()
           
 javax.jcr.observation.EventListener getListener()
           
 java.lang.String[] getNodeTypeName()
           
 java.lang.String[] getUuid()
           
 boolean isDeep()
           
 boolean isNoLocal()
           
 void setAbsPath(java.lang.String absPath)
           
 void setDeep(boolean isDeep)
           
 void setEventTypes(int eventTypes)
           
 void setListener(javax.jcr.observation.EventListener listener)
           
 void setNodeTypeName(java.lang.String[] nodeTypeName)
           
 void setNoLocal(boolean noLocal)
           
 void setUuid(java.lang.String[] uuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerDefinition

public EventListenerDefinition()
Method Detail

getAbsPath

public java.lang.String getAbsPath()
Returns:
Returns the absPath.

setAbsPath

public void setAbsPath(java.lang.String absPath)
Parameters:
absPath - The absPath to set.

getEventTypes

public int getEventTypes()
Returns:
Returns the eventTypes.

setEventTypes

public void setEventTypes(int eventTypes)
Parameters:
eventTypes - The eventTypes to set.

isDeep

public boolean isDeep()
Returns:
Returns the isDeep.

setDeep

public void setDeep(boolean isDeep)
Parameters:
isDeep - The isDeep to set.

getListener

public javax.jcr.observation.EventListener getListener()
Returns:
Returns the listener.

setListener

public void setListener(javax.jcr.observation.EventListener listener)
Parameters:
listener - The listener to set.

getNodeTypeName

public java.lang.String[] getNodeTypeName()
Returns:
Returns the nodeTypeName.

setNodeTypeName

public void setNodeTypeName(java.lang.String[] nodeTypeName)
Parameters:
nodeTypeName - The nodeTypeName to set.

isNoLocal

public boolean isNoLocal()
Returns:
Returns the noLocal.

setNoLocal

public void setNoLocal(boolean noLocal)
Parameters:
noLocal - The noLocal to set.

getUuid

public java.lang.String[] getUuid()
Returns:
Returns the uuid.

setUuid

public void setUuid(java.lang.String[] uuid)
Parameters:
uuid - The uuid to set.

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.