Examples of EnmeFailOperation


Examples of org.encuestame.persistence.exception.EnmeFailOperation

        if (poll != null) {
            poll.setShowAdditionalInfo(!(poll.getShowAdditionalInfo() == null ? false
                    : poll.getShowAdditionalInfo()));
            getPollDao().saveOrUpdate(poll);
        } else {
            throw new EnmeFailOperation("Fail Change Status Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        if (poll != null) {
            poll.setPasswordRestrictions(!(poll.getPasswordRestrictions() == null ? false
                    : poll.getPasswordRestrictions()));
            getPollDao().saveOrUpdate(poll);
        } else {
            throw new EnmeFailOperation("Fail Change Status Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        final Poll poll = getPollById(pollId, username);
        if (poll != null) {
            poll.setShowResults(ShowResultsOptions.getShowResults("ALL"));
            getPollDao().saveOrUpdate(poll);
        } else {
            throw new EnmeFailOperation("Fail Change Status Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

            } else {
                this.installDatabase();
            }
        } else {
            log.fatal("EnMe: No database conectionm check your properties");
            throw new EnmeFailOperation("EnMe: No database conectionm check your properties");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

     */
    private int getVersionDatabaseFromProperty() throws EnmeFailOperation {
        final Integer ver = EnMePlaceHolderConfigurer.getConfigurationManager().getDatabaseVersion();
        if (ver == null) {
            log.fatal("database version is missing.");
            throw new EnmeFailOperation("database version is missing");
        }
        return ver;
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        if (tpResult.size() > 0) {
            if (tweetPoll.getAllowRepatedVotes()
                    && (tpResult.size() < tweetPoll.getMaxRepeatedVotes())) {
                return tpResult;
            } else {
                throw new EnmeFailOperation(
                        "Maximum quota of votes has been exceeded");
            }

        } else {
            return tpResult;
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        final TweetPoll tweetPoll = getTweetPoll(tweetPollId, username);
        if (tweetPoll != null) {
            tweetPoll.setCloseNotification(Boolean.TRUE);
            getTweetPollDao().saveOrUpdate(tweetPoll);
        } else {
               throw new EnmeFailOperation("Fail Change Status Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        final TweetPoll tweetPoll = getTweetPoll(tweetPollId, username);
        if (tweetPoll != null) {
            tweetPoll.setFavourites(tweetPoll.getFavourites() == null ? false : !tweetPoll.getFavourites());
            getTweetPollDao().saveOrUpdate(tweetPoll);
        } else {
               throw new EnmeFailOperation("Fail Change Status Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

            tweetPoll.setAllowLiveResults(tweetPoll.getAllowLiveResults() == null
                      ? false : !tweetPoll.getAllowLiveResults());
            getTweetPollDao().saveOrUpdate(tweetPoll);
        }
        else {
            throw new EnmeFailOperation("Fail Change Allow Live Results Operation");
        }
    }
View Full Code Here

Examples of org.encuestame.persistence.exception.EnmeFailOperation

        final TweetPoll tweetPoll = getTweetPoll(tweetPollId, username);
        if (tweetPoll != null) {
             tweetPoll.setCaptcha(tweetPoll.getCaptcha() == null ? false : !tweetPoll.getCaptcha());
             getTweetPollDao().saveOrUpdate(tweetPoll);
        } else {
            throw new EnmeFailOperation("Fail Change Allow Captcha Operation");
        }
    }
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.