Package org.gatein.portal.wsrp.state.consumer.mapping

Examples of org.gatein.portal.wsrp.state.consumer.mapping.ProducerInfoMapping.initFrom()


      {
         ProducerInfosMapping pims = getProducerInfosMapping(session);
         ProducerInfoMapping pim = pims.createProducerInfo(info.getId());
         String key = session.persist(pims, pim, info.getId());
         info.setKey(key);
         pim.initFrom(info);

         persister.closeSession(session, true);
      }
      catch (Exception e)
      {
View Full Code Here


      {
         throw new IllegalArgumentException("Couldn't find ProducerInfoMapping associated with key " + key);
      }
      String oldId = pim.getId();
      String newId = producerInfo.getId();
      pim.initFrom(producerInfo);

      persister.closeSession(session, true);

      // if the consumer's id has changed, return the old one so that state can be updated
      return (oldId.equals(newId)) ? null : oldId;
View Full Code Here

            // need to add to parent first to attach newly created ProducerInfoMapping
            infos.add(pim);

            // init it from ProducerInfo
            pim.initFrom(info);
         }
      }

      return producerInfosMapping;
   }
View Full Code Here

      if (pim == null)
      {
         pim = session.insert(ProducerInfoMapping.class, getPathFor(producerInfo));
      }

      pim.initFrom(producerInfo);

      return pim;
   }

   private static class MappingToProducerInfoIterator implements Iterator<ProducerInfo>
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.