Examples of PublicationVO


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, siteNodeMap, contentMap, false, 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, siteNodeMap, contentMap, false, this.getInfoGluePrincipal());
      }
    }
    finally
    {
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, siteNodeMap, contentMap, false, this.getInfoGluePrincipal());
      }
    }
    finally
    {
View Full Code Here

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

              List<EventVO> events = new ArrayList<EventVO>();
              ContentStateController.changeState(newContentVersionId, stateId, "Remote update from deliver", false, this.principal, newContentVO.getId(), events);

              if(stateId.equals(ContentVersionVO.PUBLISHED_STATE))
              {
                PublicationVO publicationVO = new PublicationVO();
                publicationVO.setName("Direct publication by " + this.principal.getName());
                publicationVO.setDescription("Direct publication from deliver");
                publicationVO.setRepositoryId(repositoryId);
                publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, false, this.principal);
              }

            }
          }
View Full Code Here

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

        List<EventVO> events = new ArrayList<EventVO>();
          ContentStateController.changeState(contentVersionVO.getId(), stateId, "Remote update from deliver", false, this.principal, contentVersionVO.getContentId(), events);
         
          if(stateId.equals(ContentVersionVO.PUBLISHED_STATE))
          {
              PublicationVO publicationVO = new PublicationVO();
              publicationVO.setName("Direct publication by " + this.principal.getName());
              publicationVO.setDescription("Direct publication from deliver");
              ContentVO contentVO = ContentController.getContentController().getContentVOWithId(contentVersionVO.getContentId());
              publicationVO.setRepositoryId(contentVO.getRepositoryId());
              publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, false, this.principal);
          }

      }
View Full Code Here

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

          eventVO.setTypeId(EventVO.UNPUBLISH_LATEST);
          eventVO = EventController.create(eventVO, currentContentVO.getRepositoryId(), principal);
          events.add(eventVO);
        }
     
          PublicationVO publicationVO = new PublicationVO();
          publicationVO.setName("Direct publication by " + this.principal.getName());
          publicationVO.setDescription("Unpublished all versions before forced deletion");
          //publicationVO.setPublisher(this.getInfoGluePrincipal().getName());
          publicationVO.setRepositoryId(currentContentVO.getRepositoryId());
          publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, true, this.principal);
            }
     
      ContentController.getContentController().delete(contentVO, principal, forceDelete.booleanValue());
              
View Full Code Here

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

  /**
   *
   */
  private PublicationVO createPublicationVO()
  {
      final PublicationVO publicationVO = new PublicationVO();
      publicationVO.setName("Workflow publication by " + getPrincipal().getName());
      publicationVO.setDescription("Workflow publication by " + getPrincipal().getName());
      publicationVO.setRepositoryId(getContentVO().getRepositoryId());
    return publicationVO;
  }
View Full Code Here

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

        eventVO.setTypeId(EventVO.UNPUBLISH_LATEST);
        eventVO = EventController.create(eventVO, content.getRepositoryId(), infogluePrincipal);
        events.add(eventVO);
      }
   
        PublicationVO publicationVO = new PublicationVO();
        publicationVO.setName("Direct publication by " + infogluePrincipal.getName());
        publicationVO.setDescription("Unpublished all versions before forced deletion");
        //publicationVO.setPublisher(this.getInfoGluePrincipal().getName());
        publicationVO.setRepositoryId(content.getRepositoryId());
        publicationVO = PublicationController.getController().createAndPublish(publicationVO, events, true, infogluePrincipal, db, true);
        }
        //TEST

        Collection contentVersions = Collections.synchronizedCollection(content.getContentVersions());
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.