PrivilegeActionType.Key.READ_WRITE_KEY.getKey()));
checkAuthorization(userHasPrivilege(request.getSession(), vo));
//prepare the data for saving
final AwardTypeVo atVo = new AwardTypeVo();
{
atVo.setType( ((CreateAwardTypeForm)form).getType() );
atVo.setDescription( ((CreateAwardTypeForm)form).getDescription() );
}
//and save it
try
{
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);