public class JCRConsumerRegistry extends AbstractConsumerRegistry implements StoresByPathManager<ProducerInfo>
AbstractConsumerRegistry.InMemoryConsumerCache, AbstractConsumerRegistry.ProducerInfoIterator| Modifier and Type | Field and Description |
|---|---|
static List<Class> |
mappingClasses
Classes that this class knows how to map from JCR data and back
|
consumerCache, log| Modifier | Constructor and Description |
|---|---|
|
JCRConsumerRegistry(ChromatticPersister persister) |
protected |
JCRConsumerRegistry(ChromatticPersister persister,
boolean loadFromXMLIfNeeded)
for tests
|
protected |
JCRConsumerRegistry(ChromatticPersister persister,
boolean loadFromXMLIfNeeded,
String rootNodePath)
Creates a new JCRConsumerRegistry.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsConsumer(String id) |
void |
delete(ProducerInfo info) |
String |
getChildPath(ProducerInfo needsComputedPath)
Computes the JCR path of the specified child from the root of the workspace associated with the data.
|
int |
getConfiguredConsumerNumber() |
Collection<String> |
getConfiguredConsumersIds() |
long |
getPersistedLastModifiedForProducerInfoWith(String id) |
Iterator<ProducerInfo> |
getProducerInfosFromStorage() |
protected void |
initConsumerCache() |
LastModified |
lastModifiedToUpdateOnDelete(org.chromattic.api.ChromatticSession session)
Retrieves a LastModified view of the object that needs to be set as modified when this manager is asked to delete a child.
|
ProducerInfo |
loadProducerInfo(String id) |
void |
save(ProducerInfo info,
String messageOnError) |
void |
setConfigurationIS(InputStream is)
Specifies an InputStream pointing to a configuration this registry needs to load.
|
protected void |
setLoadFromXMLIfNeeded(boolean loadFromXMLIfNeeded)
for tests
|
String |
update(ProducerInfo producerInfo) |
activateConsumer, activateConsumerWith, createConsumer, createConsumerFrom, deactivateConsumer, deactivateConsumerWith, deregisterWithFederatingPortletInvoker, destroyConsumer, getConfiguredConsumers, getConsumer, getConsumers, getFederatingPortletInvoker, getMigrationService, getSessionRegistry, registerOrDeregisterConsumerWith, registerWithFederatingPortletInvoker, reloadConsumers, setConsumerCache, setFederatingPortletInvoker, setMigrationService, setSessionEventBroadcaster, setSessionRegistry, start, stop, updateProducerInfopublic JCRConsumerRegistry(ChromatticPersister persister) throws Exception
Exceptionprotected JCRConsumerRegistry(ChromatticPersister persister, boolean loadFromXMLIfNeeded)
persister - loadFromXMLIfNeeded - protected JCRConsumerRegistry(ChromatticPersister persister, boolean loadFromXMLIfNeeded, String rootNodePath)
persister - the ChromatticPersister that will deal with JCR via ChromatticloadFromXMLIfNeeded - whether or not we should load initial data from an XML configuration filerootNodePath - the root node path, only useful to be specified for tests where the root node path of the JCR hierarchy might not be standardprotected void setLoadFromXMLIfNeeded(boolean loadFromXMLIfNeeded)
loadFromXMLIfNeeded - protected void initConsumerCache()
initConsumerCache in class AbstractConsumerRegistrypublic void setConfigurationIS(InputStream is)
is - an InputStream pointing to a configuration this registry needs to loadpublic void save(ProducerInfo info, String messageOnError)
save in interface ConsumerRegistrySPIpublic void delete(ProducerInfo info)
delete in interface ConsumerRegistrySPIpublic String update(ProducerInfo producerInfo)
update in interface ConsumerRegistrySPIpublic Iterator<ProducerInfo> getProducerInfosFromStorage()
getProducerInfosFromStorage in interface ConsumerRegistrySPIpublic ProducerInfo loadProducerInfo(String id)
loadProducerInfo in interface ConsumerRegistrySPIpublic long getPersistedLastModifiedForProducerInfoWith(String id)
getPersistedLastModifiedForProducerInfoWith in interface ConsumerRegistrySPIgetPersistedLastModifiedForProducerInfoWith in class AbstractConsumerRegistrypublic boolean containsConsumer(String id)
containsConsumer in interface ConsumerRegistrycontainsConsumer in class AbstractConsumerRegistrypublic Collection<String> getConfiguredConsumersIds()
getConfiguredConsumersIds in interface ConsumerRegistrypublic int getConfiguredConsumerNumber()
getConfiguredConsumerNumber in interface ConsumerRegistrygetConfiguredConsumerNumber in class AbstractConsumerRegistrypublic String getChildPath(ProducerInfo needsComputedPath)
StoresByPathManagergetChildPath in interface StoresByPathManager<ProducerInfo>needsComputedPath - the child we want to retrieve the path ofpublic LastModified lastModifiedToUpdateOnDelete(org.chromattic.api.ChromatticSession session)
StoresByPathManagerlastModifiedToUpdateOnDelete in interface StoresByPathManager<ProducerInfo>session - the ChromatticSession managing the deletionnull if no such object existsCopyright © 2006-2014 GateIn. All Rights Reserved.