Package org.gatein.pc.portlet.state

Examples of org.gatein.pc.portlet.state.NoSuchStateException


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


      {
         throw new InvalidStateIdException(e, stateId);
      }
      if (store.remove(stateId) == null)
      {
         throw new NoSuchStateException(stateId);
      }
   }
View Full Code Here

      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(stateId, "state id", null);

      PortletStateContext context = getStateContext(stateId);
      if (context == null)
      {
         throw new NoSuchStateException(stateId);
      }
      return context;
   }
View Full Code Here

   {
      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(stateId, "state id", null);

      if (destroyStateContext(stateId) == null)
      {
         throw new NoSuchStateException(stateId);
      }
   }
View Full Code Here

   {
      checkId(stateId);
      ConsumerStateContext<S> state = get(stateId);
      if (state == null)
      {
         throw new NoSuchStateException(stateId);
      }
      return state;
   }
View Full Code Here

      {
         throw new IllegalArgumentException();
      }
      if (get(stateId) == null)
      {
         throw new NoSuchStateException(stateId);
      }

      //
      put(stateId, new ConsumerStateContext<S>(stateId, state.getPortletId(), state.getStateType(), state.getState()));
   }
View Full Code Here

   public synchronized void destroyState(String stateId) throws IllegalArgumentException, NoSuchStateException, InvalidStateIdException
   {
      checkId(stateId);
      if (get(stateId) != null)
      {
         throw new NoSuchStateException(stateId);
      }

      //
      remove(stateId);
   }
View Full Code Here

TOP

Related Classes of org.gatein.pc.portlet.state.NoSuchStateException

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.