Examples of EnMeExpcetion


Examples of org.encuestame.persistence.exception.EnMeExpcetion

                } else {
                  notificationResume.setTotalNot(0L);
                    notificationResume.setTotalNewNot(0L);
                }
            } else {
                throw new EnMeExpcetion("Auth object is not valid");
            }
        } catch (EnMeExpcetion e) {
          notificationResume.setTotalNot(0L);
            notificationResume.setTotalNewNot(0L);
             log.fatal("cometd: username invalid");
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                setSuccesResponse();
            } else {
                throw new EnmeFailOperation("operation not valid");
            }
            } else {
                throw new EnMeExpcetion("tweetpoll is published");
            }
        } catch (EnMeExpcetion e) {
            log.error(e);
            setError(e.getMessage(), response);
        }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                final UnitProjectBean projectBeanRetrieved = ConvertDomainBean.convertProjectDomainToBean(projectDomain);
                //projectBeanRetrieved.setGroupList(ConvertListDomainSelectBean.convertListGroupDomainToSelect(projectDomain.getGroups()));
                return projectBeanRetrieved;
            } else {
                log.info("id project is not found");
                throw new EnMeExpcetion("id project is not found");
            }
        } else {
            log.info("id project is null");
            throw new EnMeExpcetion("id project is null");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                projectDomain.setUsers(getAccountDao().getUserById(projectBean.getUserId()));
                getProjectDaoImp().saveOrUpdate(projectDomain);
                projectBean.setId(projectDomain.getProyectId());
                log.debug("created domain project");
            } catch (HibernateException e) {
                throw new EnMeExpcetion(e);
            } catch (Exception e) {
                throw new EnMeExpcetion(e);
            }
            return projectBean;
        } else {
            throw new EnMeExpcetion("project is null");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

        try {
            log.debug("user newUsername " + username);
            log.debug("user newEmailUser " + email);
            final Integer userUnconfirmed = getSecurityService().retrieveListUserUnconfirmedByAccount();
            if (userUnconfirmed >= unconfirmedAccountsLimit) {
                throw new EnMeExpcetion(getMessage("unconfirmed_limit", request, null));
            }
            final UserAccountBean userBean = new UserAccountBean();
            userBean.setEmail(email);
            userBean.setUsername(username);
            // get the current user logged
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

        try {
            final String valueFilteres = filterValue(email);
            final ValidateOperations cv = new ValidateOperations( getServiceManager().getApplicationServices().getSecurityService());
            boolean existEmail = cv.validateUserEmail(valueFilteres, null);
            if (!existEmail) {
                throw new EnMeExpcetion(getMessage("e_008", request, null));
            }
            getMailService().sendEmailJoinInvitation(valueFilteres, getUserPrincipalUsername());
            //FUTURE: count and limit the number of invitations
            setSuccesResponse();
        } catch (Exception e) {
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                listsDomain.setListName(unitLists.getListName());
                listsDomain.setUsuarioEmail(getAccountDao().getUserById(unitLists.getUserId()));
                getEmailListsDao().saveOrUpdate(listsDomain);
                unitLists.setId(listsDomain.getIdList());
              } catch (HibernateException e) {
                  throw new EnMeExpcetion(e);
              } catch (Exception e) {
                  throw new EnMeExpcetion(e);
              }
              return unitLists;
          } else {
              throw new EnMeExpcetion("email list is not valid");
          }
      }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                    getMailService().send(emailsDomain.getEmail(),"Invitation to Subscribe Encuestame List","Invitation to Subscribe");
                }
                //TODO:Enviamos correo al usuario para que confirme su subscripcion.
            }
            catch (Exception e) {
                throw new EnMeExpcetion(e);
            }
            return unitEmails;
        } else {
            throw new EnMeExpcetion("Email is null");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

                       emails.setSubscribed(Boolean.FALSE);
                   }
                   success = Boolean.TRUE;
                }
            catch (Exception e) {
                 throw new EnMeExpcetion(e);
            }
            return success;
        }

        else {
            throw new EnMeExpcetion("Email Not Found in Subscribe List");
        }
     }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnMeExpcetion

        final StringBuffer stb = new StringBuffer("");
        BufferedReader reader;
        String analyticBlock;
        try {
            if (analyticCode.isEmpty()) {
                throw new EnMeExpcetion("analytics code is emtpy");
            }
            reader = new BufferedReader(
                     new InputStreamReader(new ClassPathResource(scriptFilePath).getInputStream()));
            String aux;
            while(true) { aux = reader.readLine();
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.