Package org.gatein.wsrp.registration.mapping

Examples of org.gatein.wsrp.registration.mapping.ConsumerMapping


      RegistrationSPI registration = super.internalCreateRegistration(consumer, registrationProperties);
      try
      {
         ChromatticSession session = persister.getSession();

         ConsumerMapping cm = session.findById(ConsumerMapping.class, consumer.getPersistentKey());
         RegistrationMapping rm = cm.createAndAddRegistrationMappingFrom(null);
         rm.initFrom(registration);
         registration.setPersistentKey(rm.getPersistentKey());

         persister.save();
      }
View Full Code Here


      try
      {
         ChromatticSession session = persister.getSession();

         ConsumersAndGroupsMapping mappings = session.findByPath(ConsumersAndGroupsMapping.class, ConsumersAndGroupsMapping.NODE_NAME);
         ConsumerMapping cm = mappings.createConsumer(consumerId);
         mappings.getConsumers().add(cm);
         cm.initFrom(consumer);
         consumer.setPersistentKey(cm.getPersistentKey());

         persister.save();
      }
      catch (Exception e)
      {
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         ConsumerMapping cm = session.findById(ConsumerMapping.class, consumer.getPersistentKey());
         cm.initFrom(consumerSPI);

         persister.save();
      }
      catch (Exception e)
      {
View Full Code Here

         {
            return null;
         }
         else
         {
            final ConsumerMapping parent = mapping.getParent();
            return parent.toModel(null, this).getRegistration(registrationId);
         }
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.registration.mapping.ConsumerMapping

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.