Package java.util

Examples of java.util.ArrayList.addAll()


   * @return
   * @throws HibernateException
   */
  public static List listCatalogs(SiteBean site, SessionUserObject user, boolean maintain) {
    List catalogs = new ArrayList();
    catalogs.addAll(site.getCatalogs());
    List perms = null;
    if(user != null){
      Query q = getSession().getNamedQuery("USER_PERMS");
      q.setInteger(0, user.getId());
      perms = q.list();
View Full Code Here


     */
    public synchronized List getAllResources() throws IOException {
        update();

        ArrayList allResources = new ArrayList();
        allResources.addAll(resources.values());

        for (int i = 0; i < repositories.length; i++) {
            allResources.addAll(repositories[i].getAllResources());
        }

View Full Code Here

        ArrayList allResources = new ArrayList();
        allResources.addAll(resources.values());

        for (int i = 0; i < repositories.length; i++) {
            allResources.addAll(repositories[i].getAllResources());
        }

        return allResources;
    }
View Full Code Here

      Mail remote = (Mail)CVUtility.setupEJB("Mail", "com.centraview.mail.MailHome", dataSource);

      ArrayList accountIDList = remote.getUserAccountList(individualID);

      // also adding delegated accounts 
      accountIDList.addAll(remote.getDelegatedAccountList(individualID));

      ArrayList accountList = new ArrayList();    // this, we're sending to the form
      if (accountIDList.size() > 0) {
        MailUtils mailUtils = new MailUtils();
        // get the details of each account
View Full Code Here

        // collect the Account List and set it to the dynaActionForm.
        Mail mailRemote = mailHome.create();
        mailRemote.setDataSource(dataSource);
        ArrayList accountIDList = mailRemote.getUserAccountList(individualID);
        // also adding delegated accounts
        accountIDList.addAll(mailRemote.getDelegatedAccountList(individualID));
        ArrayList accountList = new ArrayList(); // this, we're sending to the
                                                  // form
        if (accountIDList.size() > 0) {
          // get the details of each account
          Iterator iter = accountIDList.iterator();
View Full Code Here

        individualIds.put(individualid, individualid);
        dynaform.set("toIndividuals", individualIds);
      } else if (entitysavedsearch.equals("INDIVIDUAL")) {
        String individualSearchId = (String) dynaform.get("individualSearchId");
        ArrayList results = new ArrayList();
        results.addAll(remoteAdvancedSearch.performSearch(individualID, Integer.parseInt(individualSearchId), "ADVANCE", null));
        HashMap individualIds = new HashMap();
        for (int i = 0; i < results.size(); i++) {
          Number resultId = (Number) results.get(i);
          // I stuck the key and value in to this hashmap as the same string
          // as that is how the rest of print templates is written and I
View Full Code Here

        // this is when an entity saved search is selected, and we need to
        // get the individualid's of the primary contacts for the found set
        // of entities.
        String entitySearchId = (String) dynaform.get("entityId");
        ArrayList results = new ArrayList();
        results.addAll(remoteAdvancedSearch.performSearch(individualID, Integer.parseInt(entitySearchId), "ADVANCE", null));
        // results contains our collection of entity ids.
        Collection contactID = PTRemote.getContactsForEntity(results, true);
        Iterator contactIdIterator = contactID.iterator();
        HashMap individualIds = new HashMap();
        while (contactIdIterator.hasNext()) {
View Full Code Here

      } else if (entitysavedsearch.equals("ENTITY") && savedsearch1.equals("ALL")) {
        // This is exactly the same as above, except we are getting all
        // individuals instead of just primary contacts.
        String entitySearchId = (String) dynaform.get("entityId");
        ArrayList results = new ArrayList();
        results.addAll(remoteAdvancedSearch.performSearch(individualID, Integer.parseInt(entitySearchId), "ADVANCE", null));
        // results contains our collection of entity ids.
        Collection contactID = PTRemote.getContactsForEntity(results, false);
        Iterator contactIdIterator = contactID.iterator();
        HashMap individualIds = new HashMap();
        while (contactIdIterator.hasNext()) {
View Full Code Here

      Mail remote = home.create();
      remote.setDataSource(dataSource);
      TreeMap folderList = new TreeMap();
      ArrayList accountList = remote.getUserAccountList(individualID);
      // also adding delegated accounts
      accountList.addAll(remote.getDelegatedAccountList(individualID));

      for (int i = 0; i < accountList.size(); i++) {
        int accountID = ((Number) accountList.get(i)).intValue();

        MailAccountVO mailAccountVO = remote.getMailAccountVO(accountID);
View Full Code Here

          HashMap row = (HashMap)iter.next();
          validFields.add(row);
        }
      }
      // add the list of custom fields to the valid fields arraylist
      validFields.addAll(this.getValidCustomFields("Both"));
    }catch(Exception e){
      System.out.println("[Exception][ImportUtils] Exception thrown in getValidFields(): " + e);
      e.printStackTrace();
    }finally{
      cvdal.destroy();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.