Package org.infoglue.cms.entities.structure

Examples of org.infoglue.cms.entities.structure.SiteNodeVersionVO


  }

   
    public SiteNodeVersionVO updateStateId(Integer siteNodeVersionId, Integer stateId, String versionComment, InfoGluePrincipal infoGluePrincipal, Integer siteNodeId) throws ConstraintException, SystemException
    {
      SiteNodeVersionVO siteNodeVersionVO = getSiteNodeVersionVOWithId(siteNodeVersionId);
      SiteNodeVersionVO returnVO = null;
     
      //Here we just updates the state if it's a publish-state-change.
      if(stateId.intValue() == 2)
      {       
        siteNodeVersionVO.setStateId(stateId);
View Full Code Here


      return returnVO;
    }       

    public SiteNodeVersionVO updateStateId(Integer siteNodeVersionId, Integer stateId, String versionComment, InfoGluePrincipal infoGluePrincipal, Integer siteNodeId, Database db) throws ConstraintException, SystemException, Exception
    {
      SiteNodeVersionVO siteNodeVersionVO = getSiteNodeVersionWithId(siteNodeVersionId, db).getValueObject();
      SiteNodeVersionVO returnVO = null;
     
      //Here we just updates the state if it's a publish-state-change.
      if(stateId.intValue() == 2)
      {       
        siteNodeVersionVO.setStateId(stateId);
View Full Code Here

        }

    Iterator i = siteNodeVersions.iterator();
    while(i.hasNext())
    {
      SiteNodeVersionVO siteNodeVersionVO = (SiteNodeVersionVO)i.next();
      delete(siteNodeVersionVO);
    }     
    }
View Full Code Here

    }
 
 
  public static SiteNodeVersionVO getLatestPublishedSiteNodeVersionVO(Integer siteNodeId) throws SystemException, Bug, Exception
    {
        SiteNodeVersionVO siteNodeVersion = null;
       
        Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

        beginTransaction(db);
View Full Code Here

  public static SiteNodeVersionVO getPreviousSiteNodeVersionVO(Integer siteNodeId, Integer siteNodeVersionId) throws SystemException, Bug
    {
      Database db = CastorDatabaseService.getDatabase();
        ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer();

      SiteNodeVersionVO siteNodeVersionVO = null;

        beginTransaction(db);

        try
        {          
View Full Code Here

  public SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(Integer siteNodeId, Integer siteNodeVersionId) throws SystemException, Bug
    {
      Database db = CastorDatabaseService.getDatabase();

      SiteNodeVersionVO siteNodeVersionVO = null;

        beginTransaction(db);

        try
        {          
View Full Code Here

   * This method returns the version previous to the one sent in.
   */
 
  public SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(Integer siteNodeId, Integer siteNodeVersionId, Database db) throws SystemException, Bug, Exception
    {
      SiteNodeVersionVO siteNodeVersionVO = null;

      OQLQuery oql = db.getOQLQuery( "SELECT cv FROM org.infoglue.cms.entities.structure.impl.simple.SmallSiteNodeVersionImpl cv WHERE cv.siteNodeId = $1 AND cv.isActive = $2 AND cv.siteNodeVersionId < $3 ORDER BY cv.siteNodeVersionId desc");
      oql.bind(siteNodeId);
      oql.bind(new Boolean(true));
      oql.bind(siteNodeVersionId);
View Full Code Here

 
  public SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(Integer siteNodeId, Integer siteNodeVersionId, Integer stateId) throws SystemException, Bug
    {
      Database db = CastorDatabaseService.getDatabase();

      SiteNodeVersionVO siteNodeVersionVO = null;

        beginTransaction(db);

        try
        {          
View Full Code Here

   * This method returns the version previous to the one sent in.
   */
 
  public SiteNodeVersionVO getPreviousActiveSiteNodeVersionVO(Integer siteNodeId, Integer siteNodeVersionId, Integer stateId, Database db) throws SystemException, Bug, Exception
    {
      SiteNodeVersionVO siteNodeVersionVO = null;

      OQLQuery oql = db.getOQLQuery( "SELECT cv FROM org.infoglue.cms.entities.structure.impl.simple.SmallSiteNodeVersionImpl cv WHERE cv.siteNodeId = $1 AND cv.isActive = $2 AND cv.stateId >= $3 AND cv.siteNodeVersionId < $4 ORDER BY cv.siteNodeVersionId desc");
      oql.bind(siteNodeId);
      oql.bind(new Boolean(true));
      oql.bind(stateId);
View Full Code Here

    return getSiteNodeVersionVOWithParentRecursive(siteNodeId, stateId, new ArrayList());
  }
 
  private List getSiteNodeVersionVOWithParentRecursive(Integer siteNodeId, Integer stateId, List resultList) throws ConstraintException, SystemException
  {
    SiteNodeVersionVO siteNodeVersionVO = getLatestSiteNodeVersionVO(siteNodeId);
    if(siteNodeVersionVO.getStateId().intValue() == stateId.intValue())
      resultList.add(siteNodeVersionVO);
   
    // Get the children of this sitenode and do the recursion
    List childSiteNodeList = SiteNodeController.getController().getSiteNodeChildrenVOList(siteNodeId);
    Iterator childSiteNodeListIterator = childSiteNodeList.iterator();
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.structure.SiteNodeVersionVO

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.