Examples of ChallengeQuestion


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

Examples of com.dotmarketing.beans.ChallengeQuestion

    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

Examples of com.dotmarketing.beans.ChallengeQuestion

   * 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

Examples of org.broadleafcommerce.profile.core.domain.ChallengeQuestion

        Customer customer = new CustomerImpl();
        customer.setEmailAddress("testCase@test.com");
        customer.setFirstName("TestFirstName");
        customer.setLastName("TestLastName");
        customer.setUsername("TestCase");
        ChallengeQuestion question = new ChallengeQuestionImpl();
        question.setId(1L);
        customer.setChallengeQuestion(question);
        customer.setChallengeAnswer("Challenge CandidateItemOfferAnswer");
        RegisterCustomerForm registerCustomer = new RegisterCustomerForm();
        registerCustomer.setCustomer(customer);
        registerCustomer.setPassword("TestPassword");
View Full Code Here

Examples of org.broadleafcommerce.profile.core.domain.ChallengeQuestion

        this.challengeQuestionService = challengeQuestionService;
    }

    @Override
    public String getAsText() {
        ChallengeQuestion question = (ChallengeQuestion) getValue();
        if (question == null) {
            return null;
        } else {
            return question.getId().toString();
        }
    }
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.