Package org.openntf.domino

Examples of org.openntf.domino.Name


      for (Form form : forms) {
        // System.out.println("Form : " + form.getName() + " (" + DominoUtils.getUnidFromNotesUrl(form.getNotesURL()) + ")");
        Document d = form.getDocument();
        Vector v = d.getItemValue("$UpdatedBy");

        Name n = db.getParent().createName((String) v.get(0));
        String cn = n.getCommon();
        nameCount++;
        docCount++;
        // System.out.println("Last Editor: " + n);
      }
      System.out.println("ENDING ITERATION of Forms");
View Full Code Here


      for (Document doc : dc) {
        docCount++;
        Vector v = doc.getItemValue("$UpdatedBy");
        for (Object o : v) {
          if (o instanceof String) {
            Name n = s.createName((String) o);
            String cn = n.getCommon();
            nameCount++;
          }
        }
        if (docCount % 1000 == 0) {
          secondReference.add(db.getDocumentByID(doc.getNoteID()));
        }
        if (docCount % 2000 == 0) {
          thirdReference.add(doc);
        }

        DateTime toxic = doc.getLastModified();
        String busyWork = toxic.getGMTTime();
        DateTime toxic2 = doc.getLastModified();
        String busyWork2 = toxic2.getDateOnly();
        // System.out.println("LastMod: " + toxic.getGMTTime());
        dateCount++;
      }
      System.out.println("REPEATING ITERATION of Documents");
      for (Document doc : dc) {
        docCount++;
        Vector v = doc.getItemValue("$UpdatedBy");
        for (Object o : v) {
          if (o instanceof String) {
            Name n = s.createName((String) o);
            String cn = n.getCommon();
            nameCount++;
          }
        }
        if (docCount % 1000 == 0) {
          secondReference.add(db.getDocumentByID(doc.getNoteID()));
View Full Code Here

      Session s = Factory.getSessionFullAccess();
      //      this.setup(s);
      RunContext rc = Factory.getRunContext();
      //      System.out.println("RunContext: " + rc.toString());
      Name sname = s.getUserNameObject();
      DateFormat df = new SimpleDateFormat("yyyyMMddhhmmss");
      //      System.out.println(df.format(new Date()) + " Name: " + sname.getCanonical());
      Database db = s.getDatabase(server, dbPath);

      if (INCLUDE_FORMS) {
View Full Code Here

          DateTime toxic = database.getCreated();
          dateCount++;

          for (ACLEntry entry : database.getACL()) {
            Name entryName = entry.getNameObject();
            nameCount++;
          }

          // if (database.getAllDocuments().getCount() > 0) {
          for (Document doc : database.getAllDocuments()) {
View Full Code Here

public class NewNameBean implements Serializable {
  private static final long serialVersionUID = 1L;

  public void getGroups() {
    Session currSess = Factory.getSession();
    Name currName = currSess.createName(currSess.getEffectiveUserName());
    ExtLibUtil.getViewScope().put("javaTest", currName.getGroups(currSess.getServerName()));
  }
View Full Code Here

  }

  public void getNameParts() {
    StringBuilder sb = new StringBuilder();
    Session currSess = Factory.getSession();
    Name currName = currSess.createName(currSess.getEffectiveUserName());
    sb.append("Abbreviated: " + currName.getNamePart(Key.Abbreviated));
    sb.append("<br/>Addr821: " + currName.getNamePart(Key.Addr821));
    sb.append("<br/>Addr822Comment1: " + currName.getNamePart(Key.Addr822Comment1));
    sb.append("<br/>Addr822Comment2: " + currName.getNamePart(Key.Addr822Comment2));
    sb.append("<br/>Addr822Comment3: " + currName.getNamePart(Key.Addr822Comment3));
    sb.append("<br/>Addr822 Local Part: " + currName.getNamePart(Key.Addr822LocalPart));
    sb.append("<br/>Addr822 Phrase: " + currName.getNamePart(Key.Addr822Phrase));
    sb.append("<br/>ADMD: " + currName.getNamePart(Key.ADMD));
    sb.append("<br/>Canonical: " + currName.getNamePart(Key.Canonical));
    sb.append("<br/>Common: " + currName.getNamePart(Key.Common));
    sb.append("<br/>Country: " + currName.getNamePart(Key.Country));
    sb.append("<br/>Generation: " + currName.getNamePart(Key.Generation));
    sb.append("<br/>Given name: " + currName.getNamePart(Key.Given));
    sb.append("<br/>ID Prefix: " + currName.getNamePart(Key.IDprefix));
    sb.append("<br/>Initials: " + currName.getNamePart(Key.Initials));
    sb.append("<br/>Keyword: " + currName.getNamePart(Key.Keyword));
    sb.append("<br/>Language: " + currName.getNamePart(Key.Language));
    sb.append("<br/>Organization: " + currName.getNamePart(Key.Organization));
    sb.append("<br/>OUs: " + currName.getNamePart(Key.OrgUnit1) + ", " + currName.getNamePart(Key.OrgUnit2) + ", "
        + currName.getNamePart(Key.OrgUnit3) + ", " + currName.getNamePart(Key.OrgUnit4));
    sb.append("<br/>PRMD: " + currName.getNamePart(Key.PRMD));
    sb.append("<br/>Source String: " + currName.getNamePart(Key.SourceString));
    sb.append("<br/>Surname: " + currName.getNamePart(Key.Surname));
    ExtLibUtil.getViewScope().put("javaTest", sb.toString());
  }
View Full Code Here

      for (Form form : forms) {
        // System.out.println("Form : " + form.getName() + " (" + DominoUtils.getUnidFromNotesUrl(form.getNotesURL()) + ")");
        Document d = form.getDocument();
        Vector<Object> v = d.getItemValue("$UpdatedBy");

        Name n = db.getParent().createName((String) v.get(0));
        @SuppressWarnings("unused")
        String cn = n.getCommon();
        nameCount++;
        docCount++;
        // System.out.println("Last Editor: " + n);
      }
      System.out.println("ENDING ITERATION of Forms");
View Full Code Here

      // if (false) {
      long start = System.nanoTime();
      Session s = Factory.getSessionFullAccess();
      RunContext rc = Factory.getRunContext();
      System.out.println("RunContext: " + rc.toString());
      Name sname = s.getUserNameObject();
      DateFormat df = new SimpleDateFormat("yyyyMMddhhmmss");
      System.out.println(df.format(new Date()) + " Name: " + sname.getCanonical());
      db = s.getDatabase(server, dbPath);
      if (INCLUDE_FORMS) {
        iterateForms(db);
      }
      Set<Document> secondReference = new HashSet<Document>();
View Full Code Here

      for (Form form : forms) {
        // System.out.println("Form : " + form.getName() + " (" + DominoUtils.getUnidFromNotesUrl(form.getNotesURL()) + ")");
        Document d = form.getDocument();
        Vector v = d.getItemValue("$UpdatedBy");

        Name n = db.getParent().createName((String) v.get(0));
        String cn = n.getCommon();
        nameCount++;
        docCount++;
        // System.out.println("Last Editor: " + n);
      }
      System.out.println("ENDING ITERATION of Forms");
View Full Code Here

      for (Document doc : dc) {
        docCount++;
        Vector v = doc.getItemValue("$UpdatedBy");
        for (Object o : v) {
          if (o instanceof String) {
            Name n = s.createName((String) o);
            String cn = n.getCommon();
            nameCount++;
          }
        }
        if (docCount % 1000 == 0) {
          secondReference.add(db.getDocumentByID(doc.getNoteID()));
View Full Code Here

TOP

Related Classes of org.openntf.domino.Name

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.