Package org.gatein.pc.portlet.state.producer

Examples of org.gatein.pc.portlet.state.producer.PortletStateContext


   protected PortletStateContext getStateContext(String stateId)
   {
      ChromatticSession session = persister.getSession();

      PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
      PortletStateContext context;
      if (pscm == null)
      {
         context = null;
      }
      else
View Full Code Here


   protected PortletStateContext destroyStateContext(String stateId)
   {
      ChromatticSession session = persister.getSession();

      PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
      PortletStateContext result;
      if (pscm == null)
      {
         result = null;
      }
      else
View Full Code Here

      }
      catch (NumberFormatException e)
      {
         throw new InvalidStateIdException(e, stateId);
      }
      PortletStateContext context = store.get(stateId);
      if (context == null)
      {
         throw new NoSuchStateException(stateId);
      }
      return context;
View Full Code Here

      return context;
   }

   private synchronized PortletState getState(String stateId) throws NoSuchStateException, InvalidStateIdException
   {
      PortletStateContext context = loadState(stateId);
      return context.getState();
   }
View Full Code Here

      if (propertyMap == null)
      {
         throw new IllegalArgumentException("No null value map accepted");
      }
      String id = Integer.toString(counter++);
      PortletStateContext state = new PortletStateContextImpl(id, portletId, new SimplePropertyMap(propertyMap));
      store.put(id, state);
      return id;
   }
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
         PortletStateContext context;
         if (pscm == null)
         {
            context = null;
         }
         else
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
         PortletStateContext result;
         if (pscm == null)
         {
            result = null;
         }
         else
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
         PortletStateContext context;
         if (pscm == null)
         {
            context = null;
         }
         else
View Full Code Here

      try
      {
         ChromatticSession session = persister.getSession();

         PortletStateContextMapping pscm = getPortletStateContextMapping(session, stateId);
         PortletStateContext result;
         if (pscm == null)
         {
            result = null;
         }
         else
View Full Code Here

   @Override
   protected synchronized String createStateContext(String portletId, PropertyMap propertyMap)
   {
      String id = Integer.toString(counter++);
      PortletStateContext state = new PortletStateContextImpl(id, portletId, new SimplePropertyMap(propertyMap));
      store.put(id, state);
      return id;
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.portlet.state.producer.PortletStateContext

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.