Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.Interceptor


   
    List<InterceptorVO> result = new ArrayList<InterceptorVO>();
    QueryResults results = oql.execute();
    while (results.hasMore())
    {
      Interceptor interceptor = (Interceptor)results.next();
      result.add(interceptor.getValueObject());
    }

    results.close();
    oql.close();
   
View Full Code Here


    return interceptionPointVOList; 
  }
 
  public List getInterceptionPointVOList(Integer interceptorId, Database dbthrows SystemException, Bug
  {
    Interceptor interceptor = this.getInterceptorWithId(interceptorId, db);
   
    Collection interceptionPoints = interceptor.getInterceptionPoints();
   
    return toVOList(interceptionPoints);   
  }
View Full Code Here

   * @throws SystemException
   */
 
  public InterceptorVO create(InterceptorVO interceptorVO, Database db) throws SystemException, Exception
  {
    Interceptor interceptor = new InterceptorImpl();
    interceptor.setValueObject(interceptorVO);
   
    db.create(interceptor);
         
    return interceptor.getValueObject();
  }    
View Full Code Here

      beginTransaction(db);
     
      ConstraintExceptionBuffer ceb = interceptorVO.validate();
      ceb.throwIfNotEmpty();
     
      Interceptor interceptor = this.getInterceptorWithId(interceptorVO.getInterceptorId(), db);

      interceptor.setValueObject(interceptorVO);
     
      Collection interceptionPoints = interceptor.getInterceptionPoints();
      Iterator interceptionPointsIterator = interceptionPoints.iterator();
      while(interceptionPointsIterator.hasNext())
      {
        InterceptionPoint interceptionPoint = (InterceptionPoint)interceptionPointsIterator.next();
        interceptionPoint.getInterceptors().remove(interceptor);
      }
     
      interceptor.getInterceptionPoints().clear();
       
      if(values != null)
      {
        for(int i=0; i<values.length; i++)
        {
          String interceptionPointId = values[i];
          InterceptionPoint interceptionPoint = InterceptionPointController.getController().getInterceptionPointWithId(new Integer(interceptionPointId), db);
          interceptor.getInterceptionPoints().add(interceptionPoint);
          interceptionPoint.getInterceptors().add(interceptor);
        }
      }
     
      if(configuration != null)
View Full Code Here

     
      Collection interceptors = interceptionPoint.getInterceptors();
      Iterator interceptorsIterator = interceptors.iterator();
      while(interceptorsIterator.hasNext())
      {
        Interceptor interceptor = (Interceptor)interceptorsIterator.next();
        interceptor.getInterceptionPoints().remove(interceptionPoint);
      }
     
      interceptionPoint.getInterceptors().clear();
       
        if(values != null)
        {
        for(int i=0; i<values.length; i++)
        {
          String interceptorId = values[i];
          Interceptor interceptor = InterceptorController.getController().getInterceptorWithId(new Integer(interceptorId), db);
          interceptionPoint.getInterceptors().add(interceptor);
          interceptor.getInterceptionPoints().add(interceptionPoint);
        }
      }
     
        logger.info("Interceptors:" + interceptionPoint.getInterceptors().size());
     
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.Interceptor

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.