Examples of throwIfNotEmpty()


Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        beginTransaction(db);

        try
        {
            content = create(db, parentContentId, contentTypeDefinitionId, repositoryId, contentVO);
            ceb.throwIfNotEmpty();
           
            commitTransaction(db)
        }
        catch(ConstraintException ce)
        {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        {
      Content parent = (Content) getObjectWithId(ContentImpl.class, parentVO.getContentId(), db);
      Content child = (Content) getObjectWithId(ContentImpl.class, childVO.getContentId(), db);
      parent.getChildren().add(child);

            ceb.throwIfNotEmpty();           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
            logger.warn("An error occurred so we should not complete the transaction:" + ce, ce);
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        {
      Content parent = (Content) getObjectWithId(ContentImpl.class, parentVO.getContentId(), db);
      Content child = (Content) getObjectWithId(ContentImpl.class, childVO.getContentId(), db);
      parent.getChildren().remove(child);

            ceb.throwIfNotEmpty();           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
            logger.warn("An error occurred so we should not complete the transaction:" + ce, ce);
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        changeRepositoryRecursive(content, newParentContentVO.getRepositoryId());
        //content.setRepository(newParentContent.getRepository());
        //newParentContent.getChildren().add(content);
       
        //If any of the validations or setMethods reported an error, we throw them up now before create.
        ceb.throwIfNotEmpty();
   
 
  /**
   * This method moves a content from one parent-content to another. First we check so no illegal actions are
   * in process. For example the target folder must not be the item to be moved or a child to the item.
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

           
      results.close();
      oql.close();

            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
            commitTransaction(db);
           
        }
        catch(ConstraintException ce)
        {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

    try
    {
      contentVO = getRootContentVO(db, repositoryId, userName, createIfNonExisting);
     
      //If any of the validations or setMethods reported an error, we throw them up now before create.
      ceb.throwIfNotEmpty();
      commitTransaction(db);
           
    }
    catch(ConstraintException ce)
    {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        try
        {
          childrenVOList = getContentChildrenVOList(parentContentId, languageVOList, allowedContentTypeIds, showDeletedItems, db)
           
          //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        {
         
          childrenVOList = getContentChildrenVOList(parentContentId, allowedContentTypeIds, db); //getContentChildrenVOList(parentContentId, allowedContentTypeIds, db); 

          //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

          ContentVO smallContentVO = getSmallContentVOWithId(contentId, db);
          if(smallContentVO != null && smallContentVO.getContentTypeDefinitionId() != null)
            contentTypeDefinitionVO = ContentTypeDefinitionController.getController().getContentTypeDefinitionVOWithId(smallContentVO.getContentTypeDefinitionId(), db);
         
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
View Full Code Here

Examples of org.infoglue.cms.util.ConstraintExceptionBuffer.throwIfNotEmpty()

        try
        {
            languages = getAvailableLanguagesForContentWithId(contentId, db);
           
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
        }
        catch(ConstraintException ce)
        {
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.