Package org.infoglue.cms.util

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


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


      //add validation here if needed
      groupProperties = getGroupPropertiesWithId(groupPropertiesVO.getGroupPropertiesId(), db);        
      groupProperties.setValueObject(groupPropertiesVO);

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

      {
        GroupContentTypeDefinition groupContentTypeDefinition = (GroupContentTypeDefinition)contentTypeDefinitionsIterator.next();
        contentTypeDefinitionVOList.add(groupContentTypeDefinition.getContentTypeDefinition().getValueObject());
      }
 
      ceb.throwIfNotEmpty();
   
      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

        groupContentTypeDefinitionImpl.setGroupName(groupName);
        groupContentTypeDefinitionImpl.setContentTypeDefinition(contentTypeDefinition);
        db.create(groupContentTypeDefinitionImpl);
      }
     
      ceb.throwIfNotEmpty();

      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

        {
            Collection serviceBindningList = getServiceBindningList(siteNodeVersionId, db, true);
          serviceBindningVOList = toVOList(serviceBindningList);
         
            //If any of the validations or setMethods reported an error, we throw them up now before create.
            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

      //add validation here if needed
      roleProperties = getRolePropertiesWithId(rolePropertiesVO.getRolePropertiesId(), db);        
      roleProperties.setValueObject(rolePropertiesVO);

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

    {
      List roleProperties = getRolePropertiesList(roleName, languageId, db, true);
      rolePropertiesVOList = toVOList(roleProperties);
     
      //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

      {
        RoleContentTypeDefinition roleContentTypeDefinition = (RoleContentTypeDefinition)contentTypeDefinitionsIterator.next();
        contentTypeDefinitionVOList.add(roleContentTypeDefinition.getContentTypeDefinition().getValueObject());
      }
 
      ceb.throwIfNotEmpty();
   
      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

        roleContentTypeDefinitionImpl.setRoleName(roleName);
        roleContentTypeDefinitionImpl.setContentTypeDefinition(contentTypeDefinition);
        db.create(roleContentTypeDefinitionImpl);
      }
     
      ceb.throwIfNotEmpty();

      commitTransaction(db);
    }
    catch(ConstraintException ce)
    {
View Full Code Here

      //add validation here if needed
     
        delete(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

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.