Package java.util

Examples of java.util.Iterator


      CvFileFacade fileFacade = new CvFileFacade();
      vec = fileFacade.getFolderRootPath(individualId, folderID, dataSource);
      if (vec != null) {
        Collections.reverse(vec);
        if (scope.equals("ALL")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "All Files"));
        } else if (scope.equals("MY")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_USER")) {
              remove.add(current);
            } else if (current.getName().equals(userObject.getLoginName())) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "My Files"));
        } else if (scope.equals("PUBLIC")) {
          Iterator iter = vec.iterator();
          while (iter.hasNext()) {
            DDNameValue current = (DDNameValue) iter.next();
            if (current.getName().equals("CV_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("CVFS_ROOT")) {
              remove.add(current);
            } else if (current.getName().equals("Public Folders")) {
              rootId = current.getId();
              remove.add(current);
            }
          }
          iter = remove.iterator();
          while (iter.hasNext()) {
            vec.remove(iter.next());
          }
          vec.add(0, new DDNameValue(rootId, "Public Folders"));
        }
        request.setAttribute("breadCrumbs", vec);
      }
View Full Code Here


      // sense to make that change now. Also, if you make a change here,
      // you must make sure the attachment handling code in SendHandler
      // reflects your changes.
      ArrayList attachmentList = (ArrayList)messageVO.getAttachedFiles();
      ArrayList attachmentFileIDs = new ArrayList();
      Iterator iter = attachmentList.iterator();
      ArrayList attachments = new ArrayList();
      int i = 0;
      while (iter.hasNext()) {
        CvFileVO fileVO = (CvFileVO)iter.next();
        int fileID = fileVO.getFileId();
        String fileName = fileVO.getName();
        attachments.add(new DDNameValue(fileID+"#"+fileName,fileName));
      }
View Full Code Here

   * @return Comma-delimited String of addresses.
   */
  private String appendAddresses(ArrayList addressList)
  {
    StringBuffer addresses = new StringBuffer();
    Iterator iter = addressList.iterator();
    while (iter.hasNext()) {
      InternetAddress address = (InternetAddress)iter.next();
      addresses.append(address.toString());
      if (iter.hasNext()) {
        addresses.append(", ");
      }
    }
    return(addresses.toString());
  }   // end appendAddresses(ArrayList)
View Full Code Here

            dynaForm.setWebsite(primaryAdd.getWebsite());
          }
        }
       
        Collection mocList = entityVO.getMOC();
        Iterator iterator = mocList.iterator();
        while (iterator.hasNext()) {
          MethodOfContactVO moc  = (MethodOfContactVO) iterator.next();
          if (moc.getMocType() == 1 && moc.getIsPrimary().equalsIgnoreCase("YES")) // this is for email
          {
            dynaForm.setEmail(moc.getContent());
          } else if (moc.getMocType() == 4) {
            dynaForm.setPhone(moc.getContent());
View Full Code Here

  public ThreadList setLinksfunction(ThreadList DL)
  {

    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
        ListElement ele = (ListElement)DL.get(str);
        sm = (StringMember)ele.get("Title");
        sm.setRequestURL("/customer/view_thread.do?rowId=" + ele.getElementID() + "&listId=" + DL.getListID()); //sets the URL for this member
        sm = (StringMember)ele.get("CreatedBy");
View Full Code Here

  }

  public TimeSlipList setTimeSlipLinks(TimeSlipList DL, int ticketId)
  {
    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    while (it.hasNext()) {
      String str = (String)it.next();
      StringMember sm = null;
      ListElement ele = (ListElement)DL.get(str);

      IntMember im = (IntMember)ele.get("ID");
      im.setRequestURL("openWindow('/centraview/customer/ViewTimeSlipDetail.do?rowId=" + ((Integer)im.getMemberValue()).intValue()
View Full Code Here

  }

  public FileList setLinksFunction(FileList list)
  {
    Set listkey = list.keySet();
    Iterator iter = listkey.iterator();
    while (iter.hasNext()) {
      String key = (String)iter.next();
      ListElement row = (ListElement)list.get(key);
      StringMember created = (StringMember)row.get("CreatedBy");
      created.setLinkEnabled(false);
    }
    return(list);
View Full Code Here

  public ExpenseList setExpenseLinks(ExpenseList DL, int ticketId)
  {
    String url = null;
    Set listkey = DL.keySet();
    Iterator it = listkey.iterator();
    while (it.hasNext()) {
      try {
        String str = (String)it.next();
        StringMember sm = null;
        ListElement ele = (ListElement)DL.get(str);
        IntMember intExpenseID = (IntMember)ele.get("ExpenseID");
        int expID = 0;
View Full Code Here


  public FAQList setLinksfunction( FAQList DL ) {

    Set listkey = DL.keySet();
    Iterator it =  listkey.iterator();
    while( it.hasNext() ) {
      try {
        String str = ( String )it.next();
        StringMember sm = null;
        ListElement ele  = ( ListElement )DL.get( str );
        sm = ( StringMember )ele.get("Title" );
        sm.setRequestURL("goTo('/centraview/ViewFaq.do?"+Constants.TYPEOFOPERATION+"=EDIT&rowId="+ele.getElementID()+"&listId="+DL.getListID()+"')");//sets the URL for this member
View Full Code Here

   * @return Comma-delimited String of addresses.
   */
  private String appendCcAddresses(ArrayList addressList)
  {
    StringBuffer addresses = new StringBuffer();
    Iterator iter = addressList.iterator();
    while (iter.hasNext()) {
      InternetAddress address = (InternetAddress) iter.next();
      addresses.append(address.toString());
      if (iter.hasNext()) {
        addresses.append(", ");
      }
    }
    return (addresses.toString());
  } // end appendCcAddresses(ArrayList)
View Full Code Here

TOP

Related Classes of java.util.Iterator

Copyright © 2015 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.