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

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


   {
      if (propertyMap == null)
      {
         throw new IllegalArgumentException();
      }
      PortletState stateContext = getState(stateId);
      return createState(stateContext.getPortletId(), propertyMap);
   }
View Full Code Here


      return createState(stateContext.getPortletId(), propertyMap);
   }

   public String cloneState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
   {
      PortletState state = getState(stateId);
      return createState(state.getPortletId(), new SimplePropertyMap(state.getProperties()));
   }
View Full Code Here

   {
      if (propertyMap == null)
      {
         throw new IllegalArgumentException("No null value map");
      }
      PortletState ctx = getState(stateId);
      ctx.getProperties().clear();
      ctx.getProperties().putAll(propertyMap);
   }
View Full Code Here

        if (marshalledState == null) {
            throw new IllegalArgumentException("No null map");
        }
        PropertyMap properties = new SimplePropertyMap(marshalledState.getState());
        String portletID = marshalledState.getPortletId().substring("local.".length());
        return new PortletState(portletID, properties);
    }
View Full Code Here

      {
         throw new IllegalArgumentException("No null map");
      }
      PropertyMap properties = new SimplePropertyMap(marshalledState.getState());
      String portletID = marshalledState.getPortletId().substring("local.".length());
      return new PortletState(portletID, properties);
   }
View Full Code Here

   private PortletState state;

   public PortletStateContextImpl(String id, String portletId, PropertyMap propertyMap)
   {
      this.id = id;
      this.state = new PortletState(portletId, propertyMap);
   }
View Full Code Here

               }
            }
            List<String> value = Arrays.asList(strings.clone());
            properties.setProperty(key, value);
         }
         return new PortletState(portletId, properties);
      }
      catch (IOException e)
      {
         throw new StateConversionException(e);
      }
View Full Code Here

TOP

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

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.