info.magnolia.module.observation
Class ObservationConfiguration

java.lang.Object
  extended by info.magnolia.module.observation.ObservationConfiguration

public class ObservationConfiguration
extends Object

Bean for the observation module, loaded automatically by Content2Bean.


Field Summary
 javax.jcr.observation.EventListener deferredListener
           
 org.apache.jackrabbit.core.observation.SynchronousEventListener synchListener
           
 
Constructor Summary
ObservationConfiguration()
           
ObservationConfiguration(String name, String description, boolean active, javax.jcr.observation.EventListener listener, String repository, String path, String eventTypes, boolean includeSubNodes, String nodeType, long delay, long maxDelay)
           
 
Method Summary
 int getConvertedEventTypes()
          Translates the eventTypes String into int value.
 long getDelay()
           
 String getDescription()
           
 String getEventTypes()
           
 boolean getIncludeSubNodes()
           
 javax.jcr.observation.EventListener getListener()
           
 long getMaxDelay()
           
 String getName()
          Gets custom user name (node name) for the eventlistener configuration.
 String getNodeType()
           
 String getPath()
           
 String getRepository()
           
 boolean isActive()
           
 boolean isPopulated()
          If all mandatory fields are present and valid we can instantiate the event listener.
 boolean isSynchronous()
           
 void setActive(boolean active)
           
 void setDelay(long delay)
           
 void setDescription(String description)
           
 void setEventTypes(String eventTypes)
           
 void setIncludeSubNodes(boolean includeSubNodes)
           
 void setListener(javax.jcr.observation.EventListener listener)
           
 void setMaxDelay(long maxDelay)
           
 void setName(String name)
          Sets custom user name (node name) for the eventlistener configuration.
 void setNodeType(String nodeType)
           
 void setPath(String path)
           
 void setRepository(String repository)
           
 void setSynchronous(boolean synchronous)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deferredListener

public javax.jcr.observation.EventListener deferredListener

synchListener

public org.apache.jackrabbit.core.observation.SynchronousEventListener synchListener
Constructor Detail

ObservationConfiguration

public ObservationConfiguration()

ObservationConfiguration

public ObservationConfiguration(String name,
                                String description,
                                boolean active,
                                javax.jcr.observation.EventListener listener,
                                String repository,
                                String path,
                                String eventTypes,
                                boolean includeSubNodes,
                                String nodeType,
                                long delay,
                                long maxDelay)
Method Detail

isSynchronous

public boolean isSynchronous()

setSynchronous

public void setSynchronous(boolean synchronous)

getDelay

public long getDelay()

setDelay

public void setDelay(long delay)

getMaxDelay

public long getMaxDelay()

setMaxDelay

public void setMaxDelay(long maxDelay)

getNodeType

public String getNodeType()

setNodeType

public void setNodeType(String nodeType)

getIncludeSubNodes

public boolean getIncludeSubNodes()

setIncludeSubNodes

public void setIncludeSubNodes(boolean includeSubNodes)

isActive

public boolean isActive()

setActive

public void setActive(boolean active)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getListener

public javax.jcr.observation.EventListener getListener()

setListener

public void setListener(javax.jcr.observation.EventListener listener)

getName

public String getName()
Gets custom user name (node name) for the eventlistener configuration.


setName

public void setName(String name)
Sets custom user name (node name) for the eventlistener configuration.


getEventTypes

public String getEventTypes()

setEventTypes

public void setEventTypes(String eventTypes)

getPath

public String getPath()

setPath

public void setPath(String path)

getRepository

public String getRepository()

setRepository

public void setRepository(String repository)

getConvertedEventTypes

public int getConvertedEventTypes()
Translates the eventTypes String into int value.


isPopulated

public boolean isPopulated()
If all mandatory fields are present and valid we can instantiate the event listener.



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