|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.util.WorkspaceObservingManager
public abstract class WorkspaceObservingManager
Manager that enables observing a specific workspace and specific node types.
Constructor Summary | |
---|---|
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String nodeType)
|
|
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String[] nodeTypes)
|
|
WorkspaceObservingManager(String workspace,
String observedPath,
boolean includeSubNodes,
String[] nodeTypes,
int eventTypesMask)
|
Method Summary | |
---|---|
long |
getDelay()
|
protected int |
getEventTypesMask()
|
long |
getMaxDelay()
|
protected String[] |
getNodeTypes()
|
protected String |
getObservedPath()
|
protected Object |
getReloadMonitor()
Returns the object used to synchronize on to keep multiple reload operations to occur at the same time. |
protected String |
getWorkspace()
|
protected boolean |
isIncludeSubNodes()
|
protected void |
onStart()
|
protected void |
registerChangeListener(javax.jcr.observation.EventListener eventListener)
|
protected abstract void |
reload()
|
void |
setDelay(long delay)
Sets the delay of the deferred EventListener . |
void |
setMaxDelay(long maxDelay)
Sets the maximum delay of the deferred EventListener . |
void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkspaceObservingManager(String workspace, String observedPath, boolean includeSubNodes, String[] nodeTypes, int eventTypesMask)
public WorkspaceObservingManager(String workspace, String observedPath, boolean includeSubNodes, String[] nodeTypes)
public WorkspaceObservingManager(String workspace, String observedPath, boolean includeSubNodes, String nodeType)
Method Detail |
---|
public void start()
protected void onStart()
protected void registerChangeListener(javax.jcr.observation.EventListener eventListener)
protected abstract void reload() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getWorkspace()
protected boolean isIncludeSubNodes()
protected String[] getNodeTypes()
protected String getObservedPath()
protected int getEventTypesMask()
protected Object getReloadMonitor()
public long getDelay()
public void setDelay(long delay)
EventListener
.
Make sure to call this method before calling start()
.
public long getMaxDelay()
public void setMaxDelay(long maxDelay)
EventListener
.
Make sure to call this method before calling start()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |