Package org.cast.isi.data

Examples of org.cast.isi.data.ISIResponse


    public WhiteboardRemoveDialog(String id, IModel<?> model) {
      super(id, model);
    }

    protected void removeObject() {
      ISIResponse resp = (ISIResponse) getDefaultModelObject();
      // Lock to current session - necessary since objects are stored detached in responseMap
      Databinder.getHibernateSession().buildLockRequest(LockOptions.UPGRADE).lock(resp);
      responseService.removeFromWhiteboard(resp, Whiteboard.this);
      setResponsePage(ISIApplication.get().getWhiteboardPageClass(), getPageParameters());
    }
View Full Code Here


public class ResponseViewerFactory {

  public Component makeResponseViewComponent(
      String wicketId, IModel<ISIResponse> model) {
    ISIResponse response = model.getObject();
    ISIPrompt prompt = (ISIPrompt) response.getPrompt();
    PromptType type = prompt.getType();
    if (type == PromptType.SINGLE_SELECT) {
      return makeXmlComponentViewer(wicketId, prompt);
    }
    else {
View Full Code Here

  }
 
  @Override
  public void onConfigure() {
    super.onConfigure();
    ISIResponse isiResponse = getISIResponse();
    setVisible((isiResponse != null) && belongsToUser(isiResponse));
  }
View Full Code Here

  protected boolean notebookEnabled() {
    return allowNotebook && featureService.isNotebookOn();
  }

  protected Long getResponseId() {
    ISIResponse response = getISIResponse();
    return response.getId();
  }
View Full Code Here

  private ISIResponse getISIResponse() {
    return (ISIResponse) getDefaultModelObject();
  }

  protected boolean inWhiteboard() {
    ISIResponse response = getISIResponse();
    return (response != null) && response.isInWhiteboard();
  }
View Full Code Here

    ISIResponse response = getISIResponse();
    return (response != null) && response.isInWhiteboard();
  }

  protected boolean inNotebook() {
    ISIResponse response = getISIResponse();
    return (response != null) && response.isInNotebook();
  }
View Full Code Here

    public NotebookRemoveDialog(String id, IModel<?> model) {
      super(id, model);
    }

    protected void removeObject() {
      ISIResponse resp = (ISIResponse) getDefaultModelObject();
      // Lock to current session - necessary since objects are stored detached in responseMap
      Databinder.getHibernateSession().buildLockRequest(LockOptions.UPGRADE).lock(resp);
      responseService.removeFromNotebook(resp, getPage());
      setResponsePage(ISIApplication.get().getNotebookPageClass(), getPageParameters());
    }
View Full Code Here

  private IModel<User> userModel;

  @SuppressWarnings({ "rawtypes", "unchecked" })
  @Before
  public void setUp() {
    response = new ISIResponse();
    user = new User();
    user.setFirstName("Mickey");
    user.setLastName("Mouse");
    user.setRole(Role.STUDENT);
    response.setUser(user);
View Full Code Here

TOP

Related Classes of org.cast.isi.data.ISIResponse

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.