Package org.infoglue.cms.util

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


    if(this.newAttributeName.indexOf(" ") > -1 || this.newAttributeName.indexOf(".") > -1 || this.newAttributeName.indexOf("'") > -|| this.newAttributeName.indexOf("\"") > -1)
    {
      ceb.add(new ConstraintException("ContentTypeAttribute.updateAction", "3500"));
    }

    ceb.throwIfNotEmpty();


    this.initialize(getContentTypeDefinitionId());

    try
View Full Code Here


    try
    {
      beginTransaction(db);
     
      ConstraintExceptionBuffer ceb = interceptionPointVO.validate();
      ceb.throwIfNotEmpty();
     
      InterceptionPoint interceptionPoint = this.getInterceptionPointWithId(interceptionPointVO.getInterceptionPointId(), db);

      interceptionPoint.setValueObject(interceptionPointVO);
     
View Full Code Here

        try
        {
        this.contentVO.setCreatorName(this.getInfoGluePrincipal().getName());

          ceb = this.contentVO.validate();
          ceb.throwIfNotEmpty();
             
          newContentVO = ContentControllerProxy.getController().acCreate(this.getInfoGluePrincipal(), parentContentId, contentTypeDefinitionId, repositoryId, contentVO);
         
            if ( newContentVO.getIsBranch().booleanValue() )
            {
View Full Code Here

      if(principal != null && principal.getName() != null)
        languageCode = CmsPropertyHandler.getPreferredLanguageCode(principal.getName());
      ConstraintExceptionBuffer ceb = contentVersionVO.validateAdvanced(contentTypeDefinitionVO, languageCode);
        logger.info("Skipping validate:" + skipValidate);
      if(!skipValidate)
        ceb.throwIfNotEmpty();

      MediumContentVersionImpl contentVersion = null;
        Integer contentVersionIdToUpdate = contentVersionVO.getId();

    contentVersionVO.setModifiedDateTime(new Date());
View Full Code Here

       ws.setTargetEndpointAddress(targetEndpointAddress);
       ws.setOperationName(operationName);
       ws.setReturnType(Boolean.class);
               
       ConstraintExceptionBuffer ceb = this.systemUserVO.validate();
       ceb.throwIfNotEmpty();
      
       ws.addArgument("firstName", this.systemUserVO.getFirstName());
       ws.addArgument("lastName", this.systemUserVO.getLastName());
       ws.addArgument("email", this.systemUserVO.getEmail());
       ws.addArgument("userName", this.systemUserVO.getUserName());
View Full Code Here

      //add validation here if needed
      userProperties = getUserPropertiesWithId(userPropertiesVO.getUserPropertiesId(), db);        
      userProperties.setValueObject(userPropertiesVO);

      //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 userProperties = getUserPropertiesList(userName, languageId, db, true);
      userPropertiesVOList = toVOList(userProperties);
     
      //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

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

        userContentTypeDefinitionImpl.setUserName(userName);
        userContentTypeDefinitionImpl.setContentTypeDefinition(contentTypeDefinition);
        db.create(userContentTypeDefinitionImpl);
      }
     
      ceb.throwIfNotEmpty();

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

      beginTransaction(db);

      languageVO = getLanguageWithRepositoryLanguageId(repositoryLanguageId, db).getValueObject();
     
      //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.