Package org.cast.cwm.data.models

Examples of org.cast.cwm.data.models.PromptModel


      if (selectedQuestion.getOwner() == null || !selectedQuestion.getOwner().equals(mUser.getObject()) || isTeacher) {
        edit.setVisible(false);       
      }
      questionTitleContainer.add(edit);

      PromptModel mPrompt = new PromptModel(selectedQuestion.getPrompt());

      ResponseButtons responseButtons = new ResponseButtons("responseButtons", mPrompt, questionsMetadata, loc);
      responseButtons.setVisible(!isTeacher);
      add(responseButtons);
View Full Code Here


    setDefaultModel(getResponseModel(promptId));
  }

  private IModel<Response> getResponseModel(
      Long promptId) {
    PromptModel promptModel = new PromptModel(promptId);
    return responseService.getResponseForPrompt(promptModel, mTargetUser);
  }
View Full Code Here

    };
  }

  protected List<ISIResponse> getResponsesFor(ISIPrompt prompt) {
    return responseService.getAllResponsesForPromptByStudent(new PromptModel(prompt), mUser);
  }
View Full Code Here

    addResponses(question);
    add(ISIApplication.get().getToolbar("tht", this));
  }

  protected void addResponses(Question question) {
    PromptModel mPrompt = new PromptModel(question.getPrompt());
    ResponseList responseList = new ResponseList("responses", mPrompt, questionsMetadata, null, ISISession.get().getTargetUserModel());
    add(responseList);
    String context = "questions" + (isTeacher ? ".teacher" : ""  );
    responseList.setContext(context);
    responseList.setAllowNotebook(false);
View Full Code Here

      Databinder.getHibernateSession().save(p)
    }
   
    cwmService.flushChanges();
   
    return new PromptModel(p);
  }
View Full Code Here

TOP

Related Classes of org.cast.cwm.data.models.PromptModel

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.