Examples of InterceptionPointVO


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

    if(explicitInterceptionPointNames != null && explicitInterceptionPointNames.length > 0)
    {
      for(int i=0; i<explicitInterceptionPointNames.length; i++)
      {
        String interceptionPointName = explicitInterceptionPointNames[i];
        InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName(interceptionPointName);
        interceptionPointIdString += interceptionPointVO.getId() + ",";
       
        List subscriptionVOList = subscriptionsController.getSubscriptionVOList(interceptionPointVO.getId(), null, null, entityName, entityId, this.getInfoGluePrincipal().getName(), null);
        if(subscriptionVOList != null && subscriptionVOList.size() > 0)
          subscriptions.put(interceptionPointVO.getId(), true);
        else
          subscriptions.put(interceptionPointVO.getId(), false);
       
        List interceptionPointVOList = (List)interceptionPointsGroupsMap.get(interceptionPointVO.getCategory());
        if(interceptionPointVOList != null)
          interceptionPointVOList.add(interceptionPointVO);
        else
        {
          interceptionPointVOList = new ArrayList();
          interceptionPointVOList.add(interceptionPointVO);
          interceptionPointsGroupsMap.put(interceptionPointVO.getCategory(), interceptionPointVOList);
        }
      }
    }
    else
    {
      for(int i=0; i<interceptionPointCategory.length; i++)
      {
        String interceptionPointCategoryName = interceptionPointCategory[i];
        List interceptionPointVOList = InterceptionPointController.getController().getInterceptionPointVOList(interceptionPointCategoryName);
        Iterator interceptionPointVOListIterator = interceptionPointVOList.iterator();
        while(interceptionPointVOListIterator.hasNext())
        {
          InterceptionPointVO interceptionPointVO = (InterceptionPointVO)interceptionPointVOListIterator.next();
          interceptionPointIdString += interceptionPointVO.getId() + ",";
         
          List subscriptionVOList = subscriptionsController.getSubscriptionVOList(interceptionPointVO.getId(), null, null, entityName, entityId, this.getInfoGluePrincipal().getName(), null);
          if(subscriptionVOList != null && subscriptionVOList.size() > 0)
            subscriptions.put(interceptionPointVO.getId(), true);
          else
            subscriptions.put(interceptionPointVO.getId(), false);
        }
        this.interceptionPointsGroupsMap.put(interceptionPointCategoryName, interceptionPointVOList);
      }
    }
   
View Full Code Here

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

    this.interceptionPointVOList = new ArrayList();
    List allInterceptionPointVOList = InterceptionPointController.getController().getInterceptionPointVOList();
    Iterator allInterceptionPointVOListIterator = allInterceptionPointVOList.iterator();
    while(allInterceptionPointVOListIterator.hasNext())
    {
      InterceptionPointVO interceptionPointVO = (InterceptionPointVO)allInterceptionPointVOListIterator.next();
      String name = interceptionPointVO.getName();
      if(name.equals("ContentVersion.Publish") ||
         name.equals("SiteNodeVersion.Publish") ||
         name.equals("Content.ExpireDateComingUp") ||
         name.equals("SiteNode.ExpireDateComingUp"))
      {
View Full Code Here

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

        {
          ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(subscriptionVO.getEntityId()));
          sb.append(getLocalizedString(getLocale(), "tool.common.detailedSubscriptions.onContentLabel") + " <strong>" + contentVO.getName() + "</strong> ");
        }
       
        InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithId(subscriptionVO.getInterceptionPointId());
        sb.append(getLocalizedString(getLocale(), "tool.common.detailedSubscriptions.subscribedToEventLabel") + " <strong>" + interceptionPointVO.getName().replaceAll(".*?\\.", "") + "</strong>");
      }
      catch (Exception e)
      {
        sb.append("" + getLocalizedString(getLocale(), "tool.common.detailedSubscriptions.brokenReferenceLabel") + ":" + e.getMessage());
    }
View Full Code Here

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

              if(message.getClassName().indexOf("AccessRightImpl") > -1)
              {
                try
              {
                  AccessRightVO acVO;
                  InterceptionPointVO icpVO;
                  try
                  {
                  acVO = AccessRightController.getController().getAccessRightVOWithId((Integer)message.getObjectId());
                  icpVO = InterceptionPointController.getController().getInterceptionPointVOWithId(acVO.getInterceptionPointId());
                  }
                  catch (Exception e)
                  {
                    logger.info("No access right found", e);
                    continue;
              }
                 
                  if(acVO != null && icpVO != null && !processedEntities.contains("" + icpVO.getCategory() + "_" + acVO.getParameters()))
                {
                  //logger.info("icpVO:" + icpVO.getName());
                  if(icpVO.getName().indexOf("Content.") > -1)
                  {
                    //logger.info("Was a content access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                    {
                      ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(idAsString));
                        publicationVO.setRepositoryId(new Integer(contentVO.getRepositoryId()));

                      PublicationDetailVO publicationDetailVO = new PublicationDetailVO();
                      publicationDetailVO.setCreationDateTime(DateHelper.getSecondPreciseDate());
                      publicationDetailVO.setDescription("Access rights change publication");
                      publicationDetailVO.setEntityClass("org.infoglue.cms.entities.content.Content");
                      publicationDetailVO.setEntityId(contentVO.getId());
                      publicationDetailVO.setName("" + contentVO.getName());
                      publicationDetailVO.setTypeId(PublicationDetailVO.PUBLISH);
                      publicationDetailVO.setCreator(this.getInfoGluePrincipal().getName());

                      publicationDetailVOList.add(publicationDetailVO);
                    }
                  }
                  else if(icpVO.getName().indexOf("ContentVersion.") > -1)
                  {
                    //logger.info("Was a contentversion access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                    {
                      ContentVersionVO contentVersionVO = ContentVersionController.getContentVersionController().getContentVersionVOWithId(new Integer(idAsString));
                      ContentVO contentVO = ContentController.getContentController().getContentVOWithId(new Integer(contentVersionVO.getContentId()));
                        publicationVO.setRepositoryId(new Integer(contentVO.getRepositoryId()));

                      PublicationDetailVO publicationDetailVO = new PublicationDetailVO();
                      publicationDetailVO.setCreationDateTime(DateHelper.getSecondPreciseDate());
                      publicationDetailVO.setDescription("Access rights change publication");
                      publicationDetailVO.setEntityClass("org.infoglue.cms.entities.content.ContentVersion");
                      publicationDetailVO.setEntityId(contentVersionVO.getId());
                      publicationDetailVO.setName("" + contentVO.getName() + "/" + contentVersionVO.getId());
                      publicationDetailVO.setTypeId(PublicationDetailVO.PUBLISH);
                      publicationDetailVO.setCreator(this.getInfoGluePrincipal().getName());

                      publicationDetailVOList.add(publicationDetailVO);

                      PublicationDetailVO publicationDetailVO2 = new PublicationDetailVO();
                      publicationDetailVO2.setCreationDateTime(DateHelper.getSecondPreciseDate());
                      publicationDetailVO2.setDescription("Access rights change publication");
                      publicationDetailVO2.setEntityClass("org.infoglue.cms.entities.content.Content");
                      publicationDetailVO2.setEntityId(contentVO.getId());
                      publicationDetailVO2.setName("" + contentVO.getName());
                      publicationDetailVO2.setTypeId(PublicationDetailVO.PUBLISH);
                      publicationDetailVO2.setCreator(this.getInfoGluePrincipal().getName());

                      publicationDetailVOList.add(publicationDetailVO2);
                    }
                  }
                else if(icpVO.getName().indexOf("SiteNodeVersion.") > -1)
                {
                  //logger.info("Was a sitenode version access... let's clear caches for that siteNodeVersion.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                    {
                      SiteNodeVersionVO siteNodeVersionVO = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(new Integer(idAsString));
                      SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(new Integer(siteNodeVersionVO.getSiteNodeId()));
                        publicationVO.setRepositoryId(new Integer(siteNodeVO.getRepositoryId()));

                      PublicationDetailVO publicationDetailVO = new PublicationDetailVO();
                      publicationDetailVO.setCreationDateTime(DateHelper.getSecondPreciseDate());
                      publicationDetailVO.setDescription("Access rights change publication");
                      publicationDetailVO.setEntityClass("org.infoglue.cms.entities.structure.SiteNode");
                      publicationDetailVO.setEntityId(siteNodeVO.getId());
                      publicationDetailVO.setName("" + siteNodeVO.getName());
                      publicationDetailVO.setTypeId(PublicationDetailVO.PUBLISH);
                      publicationDetailVO.setCreator(this.getInfoGluePrincipal().getName());

                      publicationDetailVOList.add(publicationDetailVO);

                      PublicationDetailVO publicationDetailVO2 = new PublicationDetailVO();
                      publicationDetailVO2.setCreationDateTime(DateHelper.getSecondPreciseDate());
                      publicationDetailVO2.setDescription("Access rights change publication");
                      publicationDetailVO2.setEntityClass("org.infoglue.cms.entities.structure.SiteNodeVersion");
                      publicationDetailVO2.setEntityId(siteNodeVersionVO.getId());
                      publicationDetailVO2.setName("" + siteNodeVO.getName() + "/" + siteNodeVersionVO.getId());
                      publicationDetailVO2.setTypeId(PublicationDetailVO.PUBLISH);
                      publicationDetailVO2.setCreator(this.getInfoGluePrincipal().getName());

                      publicationDetailVOList.add(publicationDetailVO2);}
                }
                else
                {
                  //logger.info("****************************");
                  //logger.info("* WHAT TO DO WITH: " + icpVO.getName() + " *");
                  //logger.info("****************************");
                }
                  //logger.info("Feeling done with " + "" + icpVO.getCategory() + "_" + acVO.getParameters());
                  processedEntities.add("" + icpVO.getCategory() + "_" + acVO.getParameters());
                }
                else
                {
                  //logger.info("Allready processed " + icpVO.getCategory() + "_" + acVO.getParameters());
                }
View Full Code Here

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

    {
      Boolean honourInheritanceFallback = true;
      if(interceptionPointName.equals("SiteNodeVersion.Read"))
        honourInheritanceFallback = false;
     
      InterceptionPointVO ipVO = InterceptionPointController.getController().getInterceptionPointVOWithName(interceptionPointName, db);

      SiteNodeVersionVO siteNodeVersionVO = getLatestActiveSiteNodeVersionVO(db, siteNodeId);
      protectedSiteNodeVersionId = SiteNodeVersionControllerProxy.getSiteNodeVersionControllerProxy().getProtectedSiteNodeVersionId(siteNodeVersionVO.getId(), ipVO.getId(), honourInheritanceFallback, db);
    }
    catch(Exception e)
    {
      logger.warn("An error occurred trying to get if the siteNodeVersion has disabled pageCache:" + e.getMessage(), e);
    }
View Full Code Here

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

              skipOriginalEntity = true;
             
              try
              {
                AccessRightVO acVO = AccessRightController.getController().getAccessRightVOWithId(new Integer(objectId));
                InterceptionPointVO icpVO = InterceptionPointController.getController().getInterceptionPointVOWithId(acVO.getInterceptionPointId());
                if(!processedEntities.contains("" + icpVO.getCategory() + "_" + acVO.getParameters()))
                {
                  String acKey = "" + icpVO.getId() + "_" + acVO.getParameters();
                accessRightsToClear.add(acKey);

                  //logger.info("icpVO:" + icpVO.getName());
                  if(icpVO.getName().indexOf("Content.") > -1)
                  {
                    //logger.info("Was a content access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                      addCacheUpdateDirective("org.infoglue.cms.entities.content.impl.simple.ContentImpl", idAsString, allIGCacheCalls);
                  }
                  else if(icpVO.getName().indexOf("ContentVersion.") > -1)
                  {
                    //logger.info("Was a contentversion access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                      addCacheUpdateDirective("org.infoglue.cms.entities.content.impl.simple.ContentVersionImpl", idAsString, allIGCacheCalls);
                  }
                  else if(icpVO.getName().indexOf("SiteNode.") > -1)
                  {
                    //logger.info("Was a sitenode access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                      addCacheUpdateDirective("org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl", idAsString, allIGCacheCalls);
                  }
                else if(icpVO.getName().indexOf("SiteNodeVersion.") > -1)
                {
                  //logger.info("Was a sitenode version access... let's clear caches for that content.");
                    String idAsString = acVO.getParameters();
                    if(idAsString != null && !idAsString.equals(""))
                      addCacheUpdateDirective("org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl", idAsString, allIGCacheCalls);
                }
                else
                {
                  logger.info("****************************");
                  logger.info("* WHAT TO DO WITH: " + icpVO.getName() + " *");
                  logger.info("****************************");
                }
                  logger.info("Feeling done with " + "" + icpVO.getName() + "_" + acVO.getParameters());
                  processedEntities.add("" + icpVO.getName() + "_" + acVO.getParameters());
                }
                else
                  logger.info("Allready processed " + icpVO.getCategory() + "_" + acVO.getParameters());
              }
              catch(Exception e2)
              {
                logger.warn("Error handling access right update: " + e2.getMessage());
              }
View Full Code Here

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

                    if(!CmsPropertyHandler.getOperatingMode().equalsIgnoreCase("3"))
                    {
                      try
                      {
                        AccessRightVO acVO = AccessRightController.getController().getAccessRightVOWithId(new Integer(entityId));
                        InterceptionPointVO icpVO = InterceptionPointController.getController().getInterceptionPointVOWithId(acVO.getInterceptionPointId());
                        //System.out.println("icpVO:" + icpVO.getName());
                        if(icpVO.getName().indexOf("Content.") > -1)
                        {
                          //System.out.println("Was a content access... let's clear caches for that content.");
                          String idAsString = acVO.getParameters();
                          if(idAsString != null && !idAsString.equals(""))
                            clearCaches("org.infoglue.cms.entities.content.impl.simple.ContentImpl", idAsString, null, cachesToSkip, forceClear);
                        }
                        else if(icpVO.getName().indexOf("ContentVersion.") > -1)
                        {
                          //System.out.println("Was a contentversion access... let's clear caches for that content.");
                          String idAsString = acVO.getParameters();
                          if(idAsString != null && !idAsString.equals(""))
                            clearCaches("org.infoglue.cms.entities.content.impl.simple.ContentVersionImpl", idAsString, null, cachesToSkip, forceClear);                       
                        }
                        else if(icpVO.getName().indexOf("SiteNode.") > -1)
                        {
                          //System.out.println("Was a sitenode access... let's clear caches for that content.");
                          String idAsString = acVO.getParameters();
                          if(idAsString != null && !idAsString.equals(""))
                            clearCaches("org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl", idAsString, null, cachesToSkip, forceClear);                                               
                        }
                      else if(icpVO.getName().indexOf("SiteNodeVersion.") > -1)
                      {
                        //System.out.println("Was a sitenode version access... let's clear caches for that content.");
                          String idAsString = acVO.getParameters();
                          if(idAsString != null && !idAsString.equals(""))
                            clearCaches("org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl", idAsString, null, cachesToSkip, forceClear);                                               
View Full Code Here

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

                skipOriginalEntity = true;
               
                try
                {
                  AccessRightVO acVO = AccessRightController.getController().getAccessRightVOWithId(new Integer(objectId));
                  InterceptionPointVO icpVO = InterceptionPointController.getController().getInterceptionPointVOWithId(acVO.getInterceptionPointId());
                  if(!processedEntities.contains("" + icpVO.getCategory() + "_" + acVO.getParameters()))
                  {
                    logger.info("icpVO:" + icpVO.getName());
                    if(icpVO.getName().indexOf("Content.") > -1)
                    {
                      logger.info("Was a content access... let's clear caches for that content.");
                      String idAsString = acVO.getParameters();
                      if(idAsString != null && !idAsString.equals(""))
                        addCacheUpdateDirective("org.infoglue.cms.entities.content.impl.simple.ContentImpl", idAsString, allIGCacheCalls);
                    }
                    else if(icpVO.getName().indexOf("ContentVersion.") > -1)
                    {
                      logger.info("Was a contentversion access... let's clear caches for that content.");
                      String idAsString = acVO.getParameters();
                      if(idAsString != null && !idAsString.equals(""))
                        addCacheUpdateDirective("org.infoglue.cms.entities.content.impl.simple.ContentVersionImpl", idAsString, allIGCacheCalls);
                    }
                    else if(icpVO.getName().indexOf("SiteNode.") > -1)
                    {
                      logger.info("Was a sitenode access... let's clear caches for that content.");
                      String idAsString = acVO.getParameters();
                      if(idAsString != null && !idAsString.equals(""))
                        addCacheUpdateDirective("org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl", idAsString, allIGCacheCalls);
                    }
                  else if(icpVO.getName().indexOf("SiteNodeVersion.") > -1)
                  {
                    logger.info("Was a sitenode version access... let's clear caches for that content.");
                      String idAsString = acVO.getParameters();
                      if(idAsString != null && !idAsString.equals(""))
                        addCacheUpdateDirective("org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl", idAsString, allIGCacheCalls);
                  }
                  else
                  {
                    logger.info("****************************");
                    logger.info("* WHAT TO DO WITH: " + icpVO.getName() + " *");
                    logger.info("****************************");
                  }
                    logger.info("Feeling done with " + "" + icpVO.getCategory() + "_" + acVO.getParameters());
                    processedEntities.add("" + icpVO.getCategory() + "_" + acVO.getParameters());
                  }
                  else
                    logger.info("Allready processed " + icpVO.getCategory() + "_" + acVO.getParameters());
                }
                catch(Exception e2)
                {
                  logger.warn("Error handling access right update: " + e2.getMessage());
                }
View Full Code Here

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

        logger.info("Read siteNode");
        Content content     = ContentController.getContentController().getRootContent(repositoryId, db);
        logger.info("Read content");
        */

        InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.Read", db);
          if(interceptionPointVO != null)
            allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
          logger.info("Read allAccessRights 1");

          interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.Write", db);
          if(interceptionPointVO != null)
            allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
          logger.info("Read allAccessRights 2");

          interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithName("Repository.ReadForBinding", db);
          if(interceptionPointVO != null)
            allAccessRights.addAll(AccessRightController.getController().getAccessRightListOnlyReadOnly(interceptionPointVO.getId(), repository.getId().toString(), db));
          logger.info("Read allAccessRights 3:" + allAccessRights.size());

          allAccessRights.addAll(AccessRightController.getController().getContentAccessRightListOnlyReadOnly(repository.getId(), db));
          logger.info("Read allAccessRights 4:" + allAccessRights.size());

View Full Code Here

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

  private List<ToolbarButton> getInterceptionPointButtons(String toolbarKey, InfoGluePrincipal principal, Locale locale, HttpServletRequest request, boolean disableCloseButton) throws Exception
  {
    List<ToolbarButton> buttons = new ArrayList<ToolbarButton>();
   
    InterceptionPointVO interceptionPointVO = InterceptionPointController.getController().getInterceptionPointVOWithId(new Integer(request.getParameter("interceptionPointId")));

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

    buttons.add(new ToolbarButton("",
          getLocalizedString(locale, "tool.contenttool.accessRights.header"),
          getLocalizedString(locale, "tool.contenttool.accessRights.header"),
          "ViewAccessRights!V3.action?interceptionPointCategory=" + interceptionPointVO.getCategory() + "&interceptionPointId=" + interceptionPointVO.getId() + "&returnAddress=ViewInlineOperationMessages.action&originalAddress=refreshParent",
          "css/images/v3/accessRightsIcon.gif",
          "accessRights",
          "inlineDiv"));

    return buttons;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.