Package org.infoglue.cms.util

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


        beginTransaction(db);

        try
        {
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();

            updatePassword(userName, oldPassword, newPassword, db);
           
            commitTransaction(db);
        }
View Full Code Here


        try
        {
          db = CastorDatabaseService.getDatabase();
          beginTransaction(db);
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();

            changeUserName(userName, newUserName, db);

            commitTransaction(db);
        }
View Full Code Here

            entity.getClass().getDeclaredMethod(collectionMethod, parm).invoke(entity, arg);
           
      // DONE
     
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
            commitTransaction(db);
            //CmsSystem.transactionLogEntry(entity.getClass().getName(), CmsSystem.TRANS_UPDATE, vo.getId(), entity.toString());

        }
View Full Code Here

        {
            //add validation here if needed
      role = update(roleVO, userNamesSet, 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

        try
        {
            addUser(roleName, userName, 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

        try
        {
          removeUser(roleName, userName, 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

       
        t.printElapsedTime("Begin took");
        try
        {
          ceb = this.siteNodeVO.validate();
          ceb.throwIfNotEmpty();

          SiteNode newSiteNode = SiteNodeControllerProxy.getSiteNodeControllerProxy().acCreate(this.getInfoGluePrincipal(), this.parentSiteNodeId, this.siteNodeTypeDefinitionId, this.repositoryId, this.siteNodeVO, db);           
            newSiteNodeVO = newSiteNode.getValueObject();
            t.printElapsedTime("acCreate took");
View Full Code Here

      beginTransaction(db);

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

            //add validation here if needed
            language = getLanguageWithId(languageVO.getLanguageId(), db);
            language.setValueObject(languageVO);

            //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

      beginTransaction(db);

        language = getLanguageWithId(languageId, db);
       
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            ceb.throwIfNotEmpty();
           
      commitTransaction(db);
        }
        catch(Exception e)
        {
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.