Package org.infoglue.cms.entities.management

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


   * @throws SystemException
   */
 
  public InterceptorVO create(InterceptorVO interceptorVO) throws ConstraintException, SystemException
  {
    InterceptorVO newinterceptorVO = null;
   
    Database db = CastorDatabaseService.getDatabase();

    try
    {
View Full Code Here


   * is handling.
   */

  public BaseEntityVO getNewVO()
  {
    return new InterceptorVO();
  }
View Full Code Here

    List interceptors = InterceptorController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId());
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = InterceptionService.getService().getInterceptor(interceptorVO.getName());
        if(infoGlueInterceptor == null)
        {
          infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
          infoGlueInterceptor.setInterceptorVO(interceptorVO);
        }
        logger.info("infoGlueInterceptor:" + infoGlueInterceptor);
        infoGlueInterceptor.intercept(infogluePrincipal, interceptionPointVO, hashMap, allowCreatorAccess);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }
  }
View Full Code Here

     private InterceptorVO interceptorVO;
 
 
    public CreateInterceptorAction()
  {
    this(new InterceptorVO());
  }
View Full Code Here

    private List assignedInterceptionPoints;
    private String configuration;

    public ViewInterceptorAction()
    {
        this(new InterceptorVO());
    }
View Full Code Here

    List interceptors = InterceptorController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId());
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
        infoGlueInterceptor.setInterceptorVO(interceptorVO);
        infoGlueInterceptor.intercept(principal, interceptionPointVO, hashMap, false);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }

  }
View Full Code Here

  private List<ToolbarButton> getInterceptorButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    InterceptorVO interceptorVO = InterceptorController.getController().getInterceptorVOWithId(new Integer(request.getParameter("interceptorId")));

    buttons.add(new ToolbarButton("",
        getLocalizedString(locale, "tool.managementtool.deleteInterceptor.header"),
        getLocalizedString(locale, "tool.managementtool.deleteInterceptor.header"),
        "DeleteInterceptor.action?interceptorId=" + interceptorVO.getId() + "&igSecurityCode=" + request.getSession().getAttribute("securityCode"),
        "css/images/v3/deleteBackgroundWasteBasket.gif",
        "left",
        "delete",
        false,
        true,
        getLocalizedString(locale, "tool.managementtool.deleteInterceptor.header"),
        getLocalizedString(locale, "tool.managementtool.deleteInterceptor.text", new String[]{interceptorVO.getName()}),
        "workIframe"));

    return buttons;
  }
View Full Code Here

   
    List interceptors = InterceptorController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId());
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
        infoGlueInterceptor.setInterceptorVO(interceptorVO);
        infoGlueInterceptor.intercept(infogluePrincipal, interceptionPointVO, hashMap, allowCreatorAccess);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }
  }
View Full Code Here

    List interceptors = InterceptionPointController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId());
   
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = cachedInterceptors.get(interceptorVO.getClassName());
        if(infoGlueInterceptor == null)
        {
          infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
          infoGlueInterceptor.setInterceptorVO(interceptorVO);
          cachedInterceptors.put(interceptorVO.getClassName(), infoGlueInterceptor);
        }
        infoGlueInterceptor.intercept(infogluePrincipal, interceptionPointVO, hashMap, allowCreatorAccess);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }

  }
View Full Code Here

    List interceptors = InterceptionPointController.getController().getInterceptorsVOList(interceptionPointVO.getInterceptionPointId(), db);
    Iterator interceptorsIterator = interceptors.iterator();
    while(interceptorsIterator.hasNext())
    {
      InterceptorVO interceptorVO = (InterceptorVO)interceptorsIterator.next();
      logger.info("Adding interceptorVO:" + interceptorVO.getName());
      try
      {
        InfoGlueInterceptor infoGlueInterceptor = cachedInterceptors.get(interceptorVO.getClassName());
        if(infoGlueInterceptor == null)
        {
          infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
          infoGlueInterceptor.setInterceptorVO(interceptorVO);
          cachedInterceptors.put(interceptorVO.getClassName(), infoGlueInterceptor);
        }
        //InfoGlueInterceptor infoGlueInterceptor = (InfoGlueInterceptor)Class.forName(interceptorVO.getClassName()).newInstance();
        infoGlueInterceptor.intercept(infogluePrincipal, interceptionPointVO, hashMap, db);
      }
      catch(ClassNotFoundException e)
      {
        logger.warn("The interceptor " + interceptorVO.getClassName() + "was not found: " + e.getMessage(), e);
      }
    }

  }
View Full Code Here

TOP

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

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.