Author: chris.laprun(a)jboss.com
Date: 2009-12-16 19:27:37 -0500 (Wed, 16 Dec 2009)
New Revision: 1030
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/JCRPersister.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/consumer/JCRConsumerRegistry.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/JCRRegistrationPersistenceManager.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerGroupMapping.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerMapping.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumersAndGroupsMapping.java
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/RegistrationMapping.java
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/producer-registrations-nodetypes.xml
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/wsrp-configuration.xml
Log:
- Started work to use ChromatticManager. Haven't figured out how to make it persist
stuff so far so reverted to previous JCRPersister
with some modifications to make switching easier. :(
- Hooked-up JCRRegistrationPersistenceManager and fixed issues in mappings.
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/ExoKernelIntegration.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -37,10 +37,10 @@
import org.gatein.pc.portlet.state.producer.ProducerPortletInvoker;
import org.gatein.portal.wsrp.state.consumer.JCRConsumerRegistry;
import
org.gatein.portal.wsrp.state.producer.configuration.JCRProducerConfigurationService;
+import
org.gatein.portal.wsrp.state.producer.registrations.JCRRegistrationPersistenceManager;
import org.gatein.registration.RegistrationManager;
import org.gatein.registration.RegistrationPersistenceManager;
import org.gatein.registration.impl.RegistrationManagerImpl;
-import org.gatein.registration.impl.RegistrationPersistenceManagerImpl;
import org.gatein.registration.policies.DefaultRegistrationPolicy;
import org.gatein.registration.policies.DefaultRegistrationPropertyValidator;
import org.gatein.wsrp.api.SessionEvent;
@@ -75,9 +75,6 @@
private final String consumersConfigLocation;
private ConsumerRegistry consumerRegistry;
- private final String workspaceName;
- private final String repositoryName;
-
public ExoKernelIntegration(InitParams params, ConfigurationManager
configurationManager,
org.exoplatform.portal.pc.ExoKernelIntegration pc) throws
Exception
{
@@ -88,14 +85,11 @@
{
producerConfigLocation =
params.getValueParam(PRODUCER_CONFIG_LOCATION).getValue();
consumersConfigLocation =
params.getValueParam(CONSUMERS_CONFIG_LOCATION).getValue();
- workspaceName = params.getValueParam(WORKSPACE_NAME).getValue();
- repositoryName = params.getValueParam(REPOSITORY_NAME).getValue();
}
else
{
throw new IllegalArgumentException("Improperly configured service: missing
values for "
- + PRODUCER_CONFIG_LOCATION + ", " + CONSUMERS_CONFIG_LOCATION +
", " + WORKSPACE_NAME + " and "
- + REPOSITORY_NAME);
+ + PRODUCER_CONFIG_LOCATION + "and " + CONSUMERS_CONFIG_LOCATION);
}
configurationIS = configurationManager.getInputStream(CLASSPATH +
producerConfigLocation);
@@ -114,7 +108,7 @@
JCRProducerConfigurationService producerConfigurationService;
try
{
- producerConfigurationService = new JCRProducerConfigurationService(container,
workspaceName, repositoryName);
+ producerConfigurationService = new JCRProducerConfigurationService(container);
producerConfigurationService.setDefaultConfigurationIS(configurationIS);
producerConfigurationService.reloadConfiguration();
}
@@ -124,7 +118,16 @@
}
container.registerComponentInstance(ProducerConfigurationService.class,
producerConfigurationService);
- RegistrationPersistenceManager registrationPersistenceManager = new
RegistrationPersistenceManagerImpl();
+ RegistrationPersistenceManager registrationPersistenceManager = null;
+ try
+ {
+ registrationPersistenceManager = new
JCRRegistrationPersistenceManager(container);
+// registrationPersistenceManager = new RegistrationPersistenceManagerImpl();
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Couln't instantiate
RegistrationPersistenceManager", e);
+ }
RegistrationManager registrationManager = new RegistrationManagerImpl();
registrationManager.setPersistenceManager(registrationPersistenceManager);
@@ -172,7 +175,7 @@
try
{
- consumerRegistry = new JCRConsumerRegistry(container, workspaceName,
repositoryName);
+ consumerRegistry = new JCRConsumerRegistry(container);
consumerRegistry.setFederatingPortletInvoker(federatingPortletInvoker);
consumerRegistry.setSessionEventBroadcaster(new
SimpleSessionEventBroadcaster());
consumerRegistry.start();
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/JCRPersister.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/JCRPersister.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/JCRPersister.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -53,12 +53,12 @@
static ThreadLocal<JCRPersister> PERSISTER = new
ThreadLocal<JCRPersister>();
- public JCRPersister(ExoContainer container, String workspaceName, String
repositoryName) throws RepositoryException
+ public JCRPersister(ExoContainer container) throws RepositoryException
{
try
{
RepositoryService repoService =
(RepositoryService)container.getComponentInstanceOfType(RepositoryService.class);
- repository = repoService.getRepository(repositoryName);
+ repository = repoService.getRepository("repository");
}
catch (RepositoryConfigurationException e)
{
@@ -67,7 +67,7 @@
//
this.provider = SessionProvider.createSystemProvider();
- this.workspaceName = workspaceName;
+ this.workspaceName = "wsrp-system";
PERSISTER.set(this);
}
@@ -90,9 +90,12 @@
return chrome.openSession();
}
- public void closeSession(ChromatticSession session)
+ public void closeSession(ChromatticSession session, boolean save)
{
- session.save();
+ if (save)
+ {
+ session.save();
+ }
session.close();
}
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/consumer/JCRConsumerRegistry.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/consumer/JCRConsumerRegistry.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/consumer/JCRConsumerRegistry.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -51,14 +51,14 @@
private JCRPersister persister;
private static final String PRODUCER_INFOS_PATH = ProducerInfosMapping.NODE_NAME;
- public JCRConsumerRegistry(ExoContainer container, String workspaceName, String
repositoryName) throws Exception
+ public JCRConsumerRegistry(ExoContainer container) throws Exception
{
List<Class> mappingClasses = new ArrayList<Class>(6);
Collections.addAll(mappingClasses, ProducerInfosMapping.class,
ProducerInfoMapping.class,
EndpointInfoMapping.class, RegistrationInfoMapping.class,
RegistrationPropertyMapping.class,
RegistrationPropertyDescriptionMapping.class);
- persister = new JCRPersister(container, workspaceName, repositoryName);
+ persister = new JCRPersister(container);
persister.initializeBuilderFor(mappingClasses);
}
@@ -74,7 +74,7 @@
String key = session.persist(pims, pim, info.getId());
info.setKey(key);
- persister.closeSession(session);
+ persister.closeSession(session, true);
}
@Override
@@ -83,7 +83,7 @@
ChromatticSession session = persister.getSession();
delete(session, getPathFor(info));
- persister.closeSession(session);
+ persister.closeSession(session, true);
}
@Override
@@ -104,7 +104,7 @@
}
pim.initFrom(producerInfo);
- persister.closeSession(session);
+ persister.closeSession(session, true);
return null;
}
@@ -117,7 +117,7 @@
List<ProducerInfoMapping> mappings =
producerInfosMapping.getProducerInfos();
- persister.closeSession(session);
+ persister.closeSession(session, true);
return new MappingToProducerInfoIterator(mappings.iterator());
}
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/configuration/JCRProducerConfigurationService.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -43,18 +43,18 @@
*/
public class JCRProducerConfigurationService extends
AbstractProducerConfigurationService
{
- private JCRPersister persister;
private static String PRODUCER_CONFIGURATION_PATH =
ProducerConfigurationMapping.NODE_NAME;
private InputStream defaultConfigurationIS;
+ private JCRPersister persister;
- public JCRProducerConfigurationService(ExoContainer container, String workspaceName,
String repositoryName) throws Exception
+ public JCRProducerConfigurationService(ExoContainer container) throws Exception
{
List<Class> mappingClasses = new ArrayList<Class>(3);
Collections.addAll(mappingClasses, ProducerConfigurationMapping.class,
RegistrationRequirementsMapping.class,
RegistrationPropertyDescriptionMapping.class);
- persister = new JCRPersister(container, workspaceName, repositoryName);
+ persister = new JCRPersister(container);
persister.initializeBuilderFor(mappingClasses);
}
@@ -80,7 +80,7 @@
configuration = pcm.toProducerConfiguration();
- persister.closeSession(session);
+ persister.closeSession(session, true);
}
public void saveConfiguration() throws Exception
@@ -89,7 +89,7 @@
saveConfiguration(session, session.findByPath(ProducerConfigurationMapping.class,
PRODUCER_CONFIGURATION_PATH), false);
- persister.closeSession(session);
+ persister.closeSession(session, true);
}
private ProducerConfigurationMapping saveConfiguration(ChromatticSession session,
ProducerConfigurationMapping pcm, boolean forceReloadFromXML) throws Exception
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/JCRRegistrationPersistenceManager.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/JCRRegistrationPersistenceManager.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/JCRRegistrationPersistenceManager.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -52,9 +52,9 @@
private JCRPersister persister;
private ConsumersAndGroupsMapping mappings;
- public JCRRegistrationPersistenceManager(ExoContainer container, String workspaceName,
String repositoryName) throws Exception
+ public JCRRegistrationPersistenceManager(ExoContainer container) throws Exception
{
- persister = new JCRPersister(container, workspaceName, repositoryName);
+ persister = new JCRPersister(container);
List<Class> mappingClasses = new ArrayList<Class>(5);
Collections.addAll(mappingClasses, ConsumersAndGroupsMapping.class,
ConsumerMapping.class, ConsumerGroupMapping.class,
@@ -64,18 +64,18 @@
ChromatticSession session = persister.getSession();
mappings = session.findByPath(ConsumersAndGroupsMapping.class,
ConsumersAndGroupsMapping.NODE_NAME);
- if(mappings == null)
+ if (mappings == null)
{
- session.insert(ConsumersAndGroupsMapping.class,
ConsumersAndGroupsMapping.NODE_NAME);
+ mappings = session.insert(ConsumersAndGroupsMapping.class,
ConsumersAndGroupsMapping.NODE_NAME);
}
- persister.closeSession(session);
+ persister.closeSession(session, true);
- for (ConsumerGroupMapping cgm : mappings.getConsumerGroups().values())
+ for (ConsumerGroupMapping cgm : mappings.getConsumerGroups())
{
internalAddConsumerGroup(cgm.toConsumerGroup(this));
}
- for (ConsumerMapping cm : mappings.getConsumers().values())
+ for (ConsumerMapping cm : mappings.getConsumers())
{
internalAddConsumer(cm.toConsumer(this));
}
@@ -86,7 +86,7 @@
{
Registration registration = getRegistration(registrationId);
remove(registration.getPersistentKey(), RegistrationMapping.class);
-
+
return super.internalRemoveRegistration(registrationId);
}
@@ -98,7 +98,7 @@
RegistrationMapping rm = cm.createRegistration();
RegistrationSPI registration = newRegistrationSPI(consumer, registrationProperties,
rm.getPersistentKey());
rm.initFrom(registration);
- persister.closeSession(session);
+ persister.closeSession(session, true);
return registration;
}
@@ -115,7 +115,7 @@
{
ChromatticSession session = persister.getSession();
session.remove(session.findById(clazz, id));
- persister.closeSession(session);
+ persister.closeSession(session, true);
}
@Override
@@ -126,7 +126,7 @@
ChromatticSession session = persister.getSession();
ConsumerMapping cm = mappings.createConsumer(consumerId);
cm.initFrom(consumer);
- persister.closeSession(session);
+ persister.closeSession(session, true);
return consumer;
}
@@ -156,7 +156,7 @@
ConsumerGroupMapping cgm = mappings.createConsumerGroup(name);
group.setPersistentKey(cgm.getPersistentKey());
cgm.initFrom(group);
- persister.closeSession(session);
+ persister.closeSession(session, true);
return group;
}
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerGroupMapping.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerGroupMapping.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerGroupMapping.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -22,11 +22,8 @@
package org.gatein.portal.wsrp.state.producer.registrations.mapping;
-import org.chromattic.api.RelationshipType;
import org.chromattic.api.annotations.FindById;
import org.chromattic.api.annotations.Id;
-import org.chromattic.api.annotations.ManyToOne;
-import org.chromattic.api.annotations.MappedBy;
import org.chromattic.api.annotations.NodeMapping;
import org.chromattic.api.annotations.OneToMany;
import org.chromattic.api.annotations.Property;
@@ -50,16 +47,18 @@
{
public static final String NODE_NAME = "wsrp:consumergroup";
- @OneToMany(type = RelationshipType.PATH)
+ @OneToMany
@RelatedMappedBy("group")
public abstract Collection<ConsumerMapping> getConsumers();
@Property(name = "name")
public abstract String getName();
+
public abstract void setName(String name);
@Property(name = "status")
public abstract RegistrationStatus getStatus();
+
public abstract void setStatus(RegistrationStatus status);
@Id
@@ -93,12 +92,17 @@
public ConsumerGroupSPI toConsumerGroup(JCRRegistrationPersistenceManager
persistenceManager) throws RegistrationException
{
ConsumerGroupSPI group = persistenceManager.newConsumerGroupSPI(getName());
- group.setStatus(getStatus());
+ RegistrationStatus status = getStatus();
+ if (status == null)
+ {
+ status = RegistrationStatus.PENDING;
+ }
+ group.setStatus(status);
for (ConsumerMapping cm : getConsumers())
{
Consumer consumer = persistenceManager.getConsumerById(cm.getPersistentKey());
- if(consumer == null)
+ if (consumer == null)
{
consumer = cm.toConsumer(persistenceManager);
}
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerMapping.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerMapping.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumerMapping.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -75,7 +75,7 @@
public abstract void setStatus(RegistrationStatus status);
- @OneToMany(type = RelationshipType.PATH)
+ @OneToMany
@RelatedMappedBy("consumer")
public abstract Map<String, RegistrationMapping> getRegistrations();
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumersAndGroupsMapping.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumersAndGroupsMapping.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/ConsumersAndGroupsMapping.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -25,29 +25,27 @@
import org.chromattic.api.annotations.Create;
import org.chromattic.api.annotations.NodeMapping;
import org.chromattic.api.annotations.OneToMany;
-import org.chromattic.api.annotations.MappedBy;
-import java.util.Map;
+import java.util.List;
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision$
*/
@NodeMapping(name = ConsumersAndGroupsMapping.NODE_NAME)
-public abstract class ConsumersAndGroupsMapping {
- public static final String NODE_NAME = "wsrp:consumersandgroups";
+public abstract class ConsumersAndGroupsMapping
+{
+ public static final String NODE_NAME = "wsrp:consumersandgroups";
- @OneToMany
- @MappedBy("consumers")
- public abstract Map<String, ConsumerMapping> getConsumers();
+ @OneToMany
+ public abstract List<ConsumerMapping> getConsumers();
- @OneToMany
- @MappedBy("consumergroups")
- public abstract Map<String, ConsumerGroupMapping> getConsumerGroups();
+ @OneToMany
+ public abstract List<ConsumerGroupMapping> getConsumerGroups();
- @Create
- public abstract ConsumerMapping createConsumer(String id);
+ @Create
+ public abstract ConsumerMapping createConsumer(String id);
- @Create
- public abstract ConsumerGroupMapping createConsumerGroup(String name);
+ @Create
+ public abstract ConsumerGroupMapping createConsumerGroup(String name);
}
Modified:
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/RegistrationMapping.java
===================================================================
---
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/RegistrationMapping.java 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/component/wsrp/src/main/java/org/gatein/portal/wsrp/state/producer/registrations/mapping/RegistrationMapping.java 2009-12-17
00:27:37 UTC (rev 1030)
@@ -22,7 +22,6 @@
package org.gatein.portal.wsrp.state.producer.registrations.mapping;
-import org.chromattic.api.RelationshipType;
import org.chromattic.api.annotations.FindById;
import org.chromattic.api.annotations.Id;
import org.chromattic.api.annotations.ManyToOne;
@@ -37,11 +36,6 @@
import org.gatein.registration.spi.ConsumerSPI;
import org.gatein.registration.spi.RegistrationSPI;
-import javax.xml.namespace.QName;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
/**
* @author <a href="mailto:chris.laprun@jboss.com">Chris
Laprun</a>
* @version $Revision$
@@ -54,16 +48,18 @@
@Id
public abstract String getPersistentKey();
- @ManyToOne(type = RelationshipType.PATH)
+ @ManyToOne
@MappedBy("consumer")
public abstract ConsumerMapping getConsumer();
@Property(name = "status")
public abstract RegistrationStatus getStatus();
+
public abstract void setStatus(RegistrationStatus status);
@Property(name = "registrationhandle")
public abstract String getRegistrationHandle();
+
public abstract void setRegistrationHandle(String handle);
@OneToOne
Modified:
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/producer-registrations-nodetypes.xml
===================================================================
---
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/producer-registrations-nodetypes.xml 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/producer-registrations-nodetypes.xml 2009-12-17
00:27:37 UTC (rev 1030)
@@ -32,15 +32,15 @@
<supertype>mix:referenceable</supertype>
</supertypes>
<childNodeDefinitions>
- <childNodeDefinition name="consumers"
defaultPrimaryType="wsrp:consumer"
- autoCreated="true" mandatory="false"
onParentVersion="COPY" protected="false"
+ <childNodeDefinition name="*"
defaultPrimaryType="wsrp:consumer"
+ autoCreated="false" mandatory="false"
onParentVersion="COPY" protected="false"
sameNameSiblings="false">
<requiredPrimaryTypes>
<requiredPrimaryType>wsrp:consumer</requiredPrimaryType>
</requiredPrimaryTypes>
</childNodeDefinition>
- <childNodeDefinition name="consumergroups"
defaultPrimaryType="wsrp:consumergroup"
- autoCreated="true" mandatory="false"
onParentVersion="COPY" protected="false"
+ <childNodeDefinition name="*"
defaultPrimaryType="wsrp:consumergroup"
+ autoCreated="false" mandatory="false"
onParentVersion="COPY" protected="false"
sameNameSiblings="false">
<requiredPrimaryTypes>
<requiredPrimaryType>wsrp:consumergroup</requiredPrimaryType>
Modified:
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/wsrp-configuration.xml
===================================================================
---
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/wsrp-configuration.xml 2009-12-16
11:15:25 UTC (rev 1029)
+++
portal/branches/wsrp-integration/web/portal/src/main/webapp/WEB-INF/conf/wsrp/wsrp-configuration.xml 2009-12-17
00:27:37 UTC (rev 1030)
@@ -39,17 +39,44 @@
<description>Location of the default consumers configuration
file</description>
<value>conf/wsrp-consumers-config.xml</value>
</value-param>
- <value-param>
- <name>workspaceName</name>
- <description>Name of the JCR workspace for WSRP
persistence</description>
- <value>wsrp-system</value>
- </value-param>
- <value-param>
- <name>repositoryName</name>
- <description>Name of the JCR repository for WSRP
persistence</description>
- <value>repository</value>
- </value-param>
</init-params>
</component>
+ <external-component-plugins>
+
<target-component>org.exoplatform.commons.chromattic.ChromatticManager</target-component>
+ <component-plugin>
+ <name>chromattic</name>
+ <set-method>addLifeCycle</set-method>
+ <type>org.exoplatform.commons.chromattic.ChromatticLifeCycle</type>
+ <init-params>
+ <value-param>
+ <name>name</name>
+ <value>wsrp</value>
+ </value-param>
+ <value-param>
+ <name>workspace-name</name>
+ <value>wsrp-system</value>
+ </value-param>
+ <values-param>
+ <name>entities</name>
+
<value>org.gatein.portal.wsrp.state.mapping.RegistrationPropertyDescriptionMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfosMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationInfoMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.RegistrationPropertyMapping</value>
+
<value>org.gatein.portal.wsrp.state.consumer.mapping.EndpointInfoMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.configuration.mapping.ProducerConfigurationMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.configuration.mapping.RegistrationRequirementsMapping
+ </value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerCapabilitiesMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerGroupMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumerMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.ConsumersAndGroupsMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.RegistrationMapping</value>
+
<value>org.gatein.portal.wsrp.state.producer.registrations.mapping.RegistrationPropertiesMapping</value>
+ </values-param>
+ </init-params>
+ </component-plugin>
+ </external-component-plugins>
+
</configuration>