public abstract class ObservedManager extends Object
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
protected Set<String> |
registeredUUIDs
UUIDs and paths of the registered main nodes.
|
Constructor and Description |
---|
ObservedManager() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the registered UUIDs and calls onClear().
|
protected static javax.jcr.Node |
getNodeByIdentifierOrPath(javax.jcr.Session session,
String uuid,
String path)
Get a node by uuid, or failing that, by its path.
|
protected abstract void |
onClear()
The implementor should clear everything.
|
protected abstract void |
onRegister(Content node)
Registers a node.
|
void |
register(Content node)
Register a node.
|
void |
reload()
Calls onClear and reregister the nodes by calling onRegister.
|
protected void |
reload(Content node)
Reload a specific node.
|
public void register(Content node)
node
- the node to registerpublic void reload()
protected static javax.jcr.Node getNodeByIdentifierOrPath(javax.jcr.Session session, String uuid, String path) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if node cannot be located by either UUID or path.protected void reload(Content node)
public void clear()
protected abstract void onRegister(Content node)
protected abstract void onClear()
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.