Package com.dotmarketing.beans

Examples of com.dotmarketing.beans.ChallengeQuestion


    try {
      User user = APILocator.getUserAPI().loadByUserByEmail(email, APILocator.getUserAPI().getSystemUser(), false);
      if (user != null) {
        UserProxy userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);

        ChallengeQuestion challengeQuestion = ChallengeQuestionFactory.getChallengeQuestionById(Long
            .parseLong(userProxy.getChallengeQuestionId()));

        if (challengeQuestion != null)
          result = challengeQuestion.getChallengeQuestionText();
      } else {
        return null;
      }
    } catch (Exception e) {
      Logger.warn(CMSUsersWebAPI.class, e.toString());
View Full Code Here


    try {
      User user = APILocator.getUserAPI().loadUserById(userId,APILocator.getUserAPI().getSystemUser(),false);
      if (user != null) {
        UserProxy userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);

        ChallengeQuestion challengeQuestion = ChallengeQuestionFactory.getChallengeQuestionById(Long
            .parseLong(userProxy.getChallengeQuestionId()));

        if (challengeQuestion != null)
          result = challengeQuestion.getChallengeQuestionText();
      } else {
        return null;
      }
    } catch (Exception e) {
      Logger.warn(CMSUsersWebAPI.class, e.toString());
View Full Code Here

   * This Method return a specified challenge question by id
   * @author Armando Siem
   * @return ChallengeQuestion
   */
  public static ChallengeQuestion getChallengeQuestionById(long challengeQuestionId) {
    ChallengeQuestion result = null;

    try {
      HibernateUtil dh = new HibernateUtil(ChallengeQuestion.class);
      dh.setQuery("from challenge_question in class com.dotmarketing.beans.ChallengeQuestion where cquestionid = ?");
      dh.setParam(challengeQuestionId);
View Full Code Here

TOP

Related Classes of com.dotmarketing.beans.ChallengeQuestion

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.