Package org.encuestame.persistence.exception

Examples of org.encuestame.persistence.exception.EnMeExpcetion


                    tweetQuestionText += " "+questionsAnswers.getAnswer()+" "+buildUrlAnswer(questionsAnswers, url);
                }
            }
        }
        catch (Exception e) {
            throw new EnMeExpcetion(e);
        }
        return tweetQuestionText;
    }
View Full Code Here


                    q.setQuestionName(questions.getQuestion());
                    listQuestionBean.add(q);
                }
            }
        } catch (HibernateException e) {
            throw new EnMeExpcetion(e);
        } catch (Exception e) {
            throw new EnMeExpcetion(e);
        }
        return  listQuestionBean;
    }
View Full Code Here

     * @throws EnMeExpcetion  Exception
     */
     public void updateQuestion(final QuestionBean unitQuestionPoll) throws EnMeExpcetion{
         final Question question = getQuestionDao().retrieveQuestionById(unitQuestionPoll.getId());
         if (question == null){
             throw new EnMeExpcetion("question not found");
         }
         else{
             question.setQuestion(unitQuestionPoll.getQuestionName());
             getQuestionDao().saveOrUpdate(question);
         }
View Full Code Here

        } else if (TypeSearch.SCHEDULED.equals(tpollSearch.getTypeSearch())) {
            list.addAll(this.searchTweetsPollScheduled(
                    getUserPrincipalUsername(), httpServletRequest, tpollSearch));
        } else {
            log.error("filterTweetPollByItemsByTypeSEARCH no type");
            throw new EnMeExpcetion("filterTweetPollByItemsByType SEARCH no type");
        }
        log.info("filterTweetPollByItemsByType list: "+list.size());
        return list;
    }
View Full Code Here

         log.info("search keyword tweetPoll  "+keyword);
         List<TweetPoll> tweetPolls  = new ArrayList<TweetPoll>();
         List<TweetPoll> tpollsbysocialNetwork = new ArrayList<TweetPoll>();

         if (keyword == null) {
             throw new EnMeExpcetion("keyword is missing");
         } else {
             //TODO: migrate search to Hibernate Search.
             tweetPolls = getTweetPollDao().retrieveTweetsByQuestionName(tpollSearch.getKeyword(), getUserAccountId(username), tpollSearch.getMax(),
                     tpollSearch.getStart(), tpollSearch.getIsComplete(),
                     tpollSearch.getIsScheduled(),
View Full Code Here

                this.updateTweetPollSwitchSupport(tweetPollDomain, request);
                return tweetPollDomain;
            }
        } catch (Exception e) {
            log.error("Error creating TweetlPoll:{"+e);
            throw new EnMeExpcetion(e);
        }
    }
View Full Code Here

                 builder.append(EnMeUtils.HASH);
                 builder.append(tag.getHashTag());
            }
            tweetQuestionText = builder.toString();
        } catch (Exception e) {
            throw new EnMeExpcetion(e);
        }
        log.debug("Tweet Text Generated: "+tweetQuestionText);
        log.debug("Tweet Text Generated: "+tweetQuestionText.length());
        if (tweetQuestionText.length() > SocialUtils.TWITTER_LIMIT) {
            throw new EnMeFailSendSocialTweetException("tweet exceed the maximun allowed");
View Full Code Here

            attachment.setAttachmentId(unitAttachment.getAttachmentId());
            attachment.setFilename(unitAttachment.getFilename());
            attachment.setUploadDate(unitAttachment.getUploadDate());
            this.getProjectDaoImp().saveOrUpdate(attachment);
        } catch (Exception e) {
            throw new EnMeExpcetion(e);
        }
    }
View Full Code Here

                            getUserAccount(getUserPrincipalUsername()), max,
                            start)));
        } else if (TypeSearch.ALL.equals(typeSearch)) {
            list.addAll(ConvertDomainBean.convertListToPollBean(getPollDao().retrievePollsByUserId(getUserAccountonSecurityContext(), max, start)));
        } else {
            throw new EnMeExpcetion("operation not valid");
        }
        log.debug("Poll Search Items : " + list.size());
        return null;
    }
View Full Code Here

                log.debug("Locations on Project "+list.size());
                //projectBeanRetrieved.setUnitLocationBeans(ConvertDomainBean.convertListToUnitLocationBean(list));
                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

TOP

Related Classes of org.encuestame.persistence.exception.EnMeExpcetion

Copyright © 2018 www.massapicom. 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.