コード例 #1
0
  public void startCopyTrans() {
    identity.checkPermission(getProjectIteration(), "copy-trans");
    if (isInProgress()) {
      return;
    } else if (getProjectIteration().getDocuments().size() <= 0) {
      conversationScopeMessages.setMessage(
          FacesMessage.SEVERITY_INFO, msgs.get("jsf.iteration.CopyTrans.NoDocuments"));
      return;
    }

    HCopyTransOptions options = copyTransOptionsModel.getInstance();

    copyTransManager.startCopyTrans(getProjectIteration(), options);
    conversationScopeMessages.setMessage(
        FacesMessage.SEVERITY_INFO, msgs.get("jsf.iteration.CopyTrans.Started"));
  }
コード例 #2
0
 public void cancel() {
   copyTransManager.cancelCopyTrans(getProjectIteration());
   conversationScopeMessages.setMessage(
       FacesMessage.SEVERITY_INFO, msgs.get("jsf.iteration.CopyTrans.Cancelled"));
 }