Examples of searchVoters()


Examples of com.agiletec.plugins.jpsurvey.aps.system.services.collect.IVoterManager.searchVoters()

    FieldSearchFilter usernameFilter = new FieldSearchFilter((IVoterManager.FIELD_USERNAME), currentUser.getUsername(), false);
    FieldSearchFilter surveyIdFilter = new FieldSearchFilter((IVoterManager.FIELD_SURVEY_ID), new Integer(surveyInfo.getId()), false);
    FieldSearchFilter[] filters = new FieldSearchFilter[]{usernameFilter, surveyIdFilter};

    List<Integer> voters = voterManager.searchVoters(filters);
    return (null != voters && !voters.isEmpty());
  }

  public static String getCookieName(String username, int surveyId) {
    return "jpsurvey_" + username + "_" + surveyId + "_NAME";
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.