Examples of PublicationVO


Examples of org.infoglue.cms.entities.publishing.PublicationVO

    return NONE;
    }

  public String doApprovePublication() throws Exception
  {
    PublicationVO publicationVO = new PublicationVO();
    publicationVO.setName("Auto publishing from EOS");
    publicationVO.setDescription("N/A");
    publicationVO.setPublicationDateTime(new Date());
    publicationVO.setPublisher(getUserName());
    publicationVO.setRepositoryId(new Integer(getRequest().getParameter("repositoryId")));
    String eventId = getRequest().getParameter("eventId");
    List<EventVO> events = new ArrayList<EventVO>();
    EventVO eventVO = EventController.getEventVOWithId(new Integer(eventId));
    events.add(eventVO);
   
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

    return NONE;
  }
 
  public String doDenyPublication() throws Exception
  {
    PublicationVO publicationVO = new PublicationVO();
    publicationVO.setName("Denied publishing from EOS");
    publicationVO.setDescription("N/A");
    publicationVO.setPublicationDateTime(new Date());
    publicationVO.setPublisher(getUserName());
    publicationVO.setRepositoryId(new Integer(getRequest().getParameter("repositoryId")));
    String eventId = getRequest().getParameter("eventId");
    List<EventVO> events = new ArrayList<EventVO>();
    EventVO eventVO = EventController.getEventVOWithId(new Integer(eventId));
    events.add(eventVO);
   
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

    }


    if(attemptDirectPublishing.equalsIgnoreCase("true"))
    {
        PublicationVO publicationVO = new PublicationVO();
        publicationVO.setName("Direct publication by " + this.getInfoGluePrincipal().getName());
        publicationVO.setDescription(getVersionComment());
        publicationVO.setRepositoryId(repositoryId);
        publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, newsiteNodeMap, newContentMap, overrideVersionModifyer, this.getInfoGluePrincipal());
        //publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, this.overrideVersionModifyer, this.getInfoGluePrincipal());
    }
   
    if(returnAddress != null && !returnAddress.equals(""))
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

       
        logger.info("events:" + events.size());
        if(events != null && events.size() > 0)
        {
          //Create publication if nodes has published version
          PublicationVO publicationVO = new PublicationVO();
          publicationVO.setName("Move of page - auto publication");
          publicationVO.setDescription("System did an automatic publication");
          publicationVO.setPublisher(principal.getName());
          publicationVO.setRepositoryId(newParentSiteNode.getRepository().getId());
         
          publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, false, principal);
        }
      }
      catch (Exception e)
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

        PublicationController.mailPublishNotification(events, repositoryId, getInfoGluePrincipal(), recipientFilter, true);
    }

    if(attemptDirectPublishing.equalsIgnoreCase("true"))
    {
        PublicationVO publicationVO = new PublicationVO();
        publicationVO.setName("Direct publication by " + this.getInfoGluePrincipal().getName());
        publicationVO.setDescription(getVersionComment());
        //publicationVO.setPublisher(this.getInfoGluePrincipal().getName());
        publicationVO.setRepositoryId(repositoryId);
        publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, this.overrideVersionModifyer, this.getInfoGluePrincipal());
    }
   
         return "success";
    }
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

          PublicationController.mailPublishNotification(events, repositoryId, getInfoGluePrincipal(), recipientFilter, true);
      }

      if(attemptDirectPublishing.equalsIgnoreCase("true"))
      {
          PublicationVO publicationVO = new PublicationVO();
          publicationVO.setName("Direct publication by " + this.getInfoGluePrincipal().getName());
          publicationVO.setDescription(getVersionComment());
          publicationVO.setPublisher(this.getInfoGluePrincipal().getName());
          publicationVO.setRepositoryId(repositoryId);

          publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, this.overrideVersionModifyer, this.getInfoGluePrincipal(), db);
      }
     
        commitTransaction(db);
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

    private String description;
    private List events;

  public CreateEditionAction()
  {
    this(new PublicationVO());
  }
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

   
    public String doPushSystemNotificationMessages() throws Exception
    {
        List<NotificationMessage> notificationMessagesToSend = new ArrayList<NotificationMessage>();

      PublicationVO publicationVO = new PublicationVO();
      publicationVO.setName("System notification");
      publicationVO.setDescription("Access rights publication");
    List<PublicationDetailVO> publicationDetailVOList = new ArrayList<PublicationDetailVO>();

      //NotificationMessage notificationMessage = null;
        List<NotificationMessage> messages = RemoteCacheUpdater.getSystemNotificationMessages();
        synchronized(messages)
        {
          if(messages.size() > 0)
          {
            boolean filledOtherQuota = false;
            List<String> processedEntities = new ArrayList<String>();

            for(NotificationMessage message : messages)
            {
              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");
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

    publicationDetailVO.setCreator(publisherName);

    List<PublicationDetailVO> publicationDetailVOList = new ArrayList<PublicationDetailVO>();
    publicationDetailVOList.add(publicationDetailVO);
   
      PublicationVO publicationVO = new PublicationVO();
      publicationVO.setName(publicationName);
      publicationVO.setDescription(publicationDescription);
      publicationVO.setRepositoryId(new Integer(repositoryId));
      publicationVO = PublicationController.getController().createAndPublish(publicationVO, publicationDetailVOList, publisherName);
     
      /*
      NotificationMessage notificationMessage = new NotificationMessage("doClearPageCacheOnAllNodes:", className, "SYSTEM", NotificationMessage.PUBLISHING, objectId, ""+objectName);
      RemoteCacheUpdater.getSystemNotificationMessages().add(notificationMessage);
View Full Code Here

Examples of org.infoglue.cms.entities.publishing.PublicationVO

  protected void tearDown() throws Exception
  {
    for (Iterator iter = testEditions.iterator(); iter.hasNext();)
    {
      PublicationVO publicationVO = (PublicationVO)iter.next();
      PublicationController.deleteEntity(PublicationImpl.class, publicationVO.getId());
      assertRemoved(publicationVO.getId());
    }
  }
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.