Examples of BusinessRuleException


Examples of org.sete.service.BusinessRuleException

        {
            saveNewAwardType(atVo);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.createError", new String[]{atVo.getType()});
           
            throw bre;
        }
       
        return mapping.findForward(WebConstants.FORWARD_VIEW);
View Full Code Here

Examples of org.sete.service.BusinessRuleException

          // 5 minutes over for the scorer who set the scoring in progress, now this user can set it to in progress
          sp.setScienceProjectStatusType(ScienceProjectStatusType.forKey(ScienceProjectStatusType.Key.SCORINGINPROGRESS_KEY));
          sp.setStatusChangedBy(Integer.valueOf(spvo.getScorer()));
        }
        else{
          BusinessRuleException bre = new BusinessRuleException();
          bre.addCodedMessage("scienceProject.error.scoringInProgress",new String[]{sp.getName()});
          throw bre;
        }
      }
    } 
     
View Full Code Here

Examples of org.sete.service.BusinessRuleException

        {
            saveDeletedAwardType(key);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.deleteError", new String[]{key});
           
            throw bre;
        }
       
        return mapping.findForward( "view" );
View Full Code Here

Examples of org.sete.service.BusinessRuleException

          // 5 minutes over for the scorer who set the scoring in progress, now this user can set it to in progress
          sp.setScienceProjectStatusType(ScienceProjectStatusType.forKey(ScienceProjectStatusType.Key.SCORINGINPROGRESS_KEY));
          sp.setStatusChangedBy(Integer.valueOf(scorer));
        }
        else{
          BusinessRuleException bre = new BusinessRuleException();
          bre.addCodedMessage("scienceProject.error.scoringInProgress",new String[]{sp.getName()});
          throw bre;
        }
      }
    }   
}
View Full Code Here

Examples of org.sete.service.BusinessRuleException

            if(log.isErrorEnabled()) {
                log.error(msg);
            }
           
            BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("projectIdea.doesNotExist", new String[]{projectIdeaId});
            throw bre;         
        }
        return vo;
    }
View Full Code Here

Examples of org.sete.service.BusinessRuleException

        {
            service.createNewScienceProjectFileType(cspftvo);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("projectFileType.exists", new String[]{key});

            throw bre;
        }

        TypeLoader.initializeSystemTypes(super.getServletContext());
View Full Code Here

Examples of org.sete.service.BusinessRuleException

     * @throws BusinessRuleException
     */
    private void validateUser(CreateSeteUserVo vo) throws BusinessRuleException {
      /* Verify Non violation of Business Rules */
      if(userDao.findByLoginName(vo.getLoginName()) != null){
        BusinessRuleException bre = new BusinessRuleException();
        bre.addCodedMessage("seteUser.LoginAlreadyExists", new String[]{vo.getLoginName()});
        throw bre;
      }
      else if(!vo.getPassword().equals(vo.getPassword2())){
        BusinessRuleException bre = new BusinessRuleException();
        bre.addCodedMessage("seteUser.PasswordMismatch", new String[]{""});
        throw bre;
      }
    }
View Full Code Here

Examples of org.sete.service.BusinessRuleException

        // old password validation
        String oldPassword = su.getPassword() ;
        String userFormOldPassword = passwordEncoder.encodePassword(csupvo.getOldPassword(), null) ;
        if(!oldPassword.equals(userFormOldPassword))
        {
          BusinessRuleException bre = new BusinessRuleException();
      bre.addCodedMessage("seteUser.OldPasswordInvalid");
      throw bre;
        }

        // new password
        su.setPassword(passwordEncoder.encodePassword(csupvo.getNewPassword(), null));
View Full Code Here

Examples of org.sete.service.BusinessRuleException

        {
            saveNewAwardType(atVo);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.createError", new String[]{atVo.getType()});
           
            throw bre;
        }
       
        return mapping.findForward("view");
View Full Code Here

Examples of org.sete.service.BusinessRuleException

        {
            saveDeletedAwardType(key);
        }
        catch(final Exception excp)
        {
            final BusinessRuleException bre = new BusinessRuleException();
            bre.addCodedMessage("awardType.deleteError", new String[]{key});
           
            throw bre;
        }
       
        return mapping.findForward( "view" );
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.