Beispiel #1
0
 /**
  * This method resets the Batch Correspondence history. This involves clearing the previous
  * displayed history information and collapsing all panel content with the exception of the Batch
  * Correspondence panel.
  *
  * @param committeeForm the CommitteeFormBase
  */
 public void resetBatchCorrespondenceHistory(CommitteeFormBase committeeForm) {
   setBatchCorrespondenceHistory(null);
   committeeForm.setTabStates(new HashMap<String, String>());
   committeeForm
       .getTabStates()
       .put(WebUtils.generateTabKey(BATCH_CORRESPONDENCE_PANEL_TITLE), "OPEN");
 }
Beispiel #2
0
 public void flagInactiveMembers() {
   for (CommitteeMembershipBase committeeMembership :
       ((CommitteeBase<?, ?, ?>) committeeForm.getCommitteeDocument().getCommittee())
           .getCommitteeMemberships()) {
     if (!committeeMembership.isActive()) {
       committeeMembership.setWasInactiveAtLastSave(true);
     } else {
       committeeMembership.setWasInactiveAtLastSave(false);
     }
   }
 }
Beispiel #3
0
  /** This method is UI view hook. */
  public void prepareView() {
    if (committeeForm.getCommitteeDocument().getDocumentHeader().getWorkflowDocument().isFinal()
        || committeeForm
            .getCommitteeDocument()
            .getDocumentHeader()
            .getWorkflowDocument()
            .isEnroute()
        || committeeForm
            .getCommitteeDocument()
            .getDocumentHeader()
            .getWorkflowDocument()
            .isCanceled()) {
      modifyCommittee = false;
      CommitteeBase activeCommittee =
          getCommitteeService().getCommitteeById(getCommittee().getCommitteeId());
      if (activeCommittee != null && activeCommittee.getId().equals(getCommittee().getId())) {
        modifySchedule = canModifySchedule();
        viewSchedule = canViewSchedule();
        viewSpecificSchedule = canViewSpecificSchedule();
      } else {
        // inactive committee can not access schedule data either
        modifySchedule = false;
        viewSchedule = false;
        viewSpecificSchedule = canNotViewSpecificSchedule();
      }
    } else {
      modifyCommittee = canModifyCommittee();
      modifySchedule = false;
      viewSchedule = false;
      viewSpecificSchedule = canNotViewSpecificSchedule();
    }
    prepareCommitteeScheduleDeleteView();

    performAction = canPerformAction();
    initPrintCorrespondences();
  }
Beispiel #4
0
 public CommitteeBase<?, ?, ?> getCommittee() {
   return committeeForm.getCommitteeDocument().getCommittee();
 }
Beispiel #5
0
 private List<CommitteeScheduleBase> getSortedCommitteeScheduleList() {
   List<CommitteeScheduleBase> committeeSchedules =
       committeeForm.getCommitteeDocument().getCommittee().getCommitteeSchedules();
   Collections.sort(committeeSchedules);
   return committeeSchedules;
 }