Package org.gatein.registration

Examples of org.gatein.registration.RegistrationException


         for (RegistrationDestructionListener listener : listeners.get())
         {
            RegistrationDestructionListener.Vote vote = listener.destructionScheduledFor(registration);
            if (canRemove.compareAndSet(false, vote.result))
            {
               throw new RegistrationException("Could not remove Registration '" + registration.getRegistrationHandle()
                  + "' because listener '" + listener + "' vetoed removal. Cause: " + vote.reason);
            }
         }
      }
View Full Code Here


   public void removeConsumer(String consumerId) throws RegistrationException
   {
      ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(consumerId, "Consumer identity", null);
      if (internalRemoveConsumer(consumerId) == null)
      {
         throw new RegistrationException("There is no Consumer with identity '" + consumerId + "'.");
      }
   }
View Full Code Here

         persister.save();
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

         persister.save();
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

         persister.save();
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

         persister.save();
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

         persister.save();
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

         return getModel(id, modelClass, mappingClass, session);
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

            return getModelFrom(mapping, mappingClass, modelClass);
         }
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
   }
View Full Code Here

            return parent.toModel(null, this).getRegistration(registrationId);
         }
      }
      catch (Exception e)
      {
         throw new RegistrationException(e);
      }
      finally
      {
         persister.closeSession(false);
      }
View Full Code Here

TOP

Related Classes of org.gatein.registration.RegistrationException

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.