Package lotus.domino

Examples of lotus.domino.Session.createName()


      if (null != profile) {
        Session session = (Session) resolveVariable("sessionAsSigner");
        Database nab = session.getDatabase(this.NabServer, this.NabFilePath);
       
        if (null != nab) {
          String userAbbrev = session.createName(profile.getItemValueString("User")).getAbbreviated();
          View VIMPeople = nab.getView("($VIMPeople)");
         
          Document nabEntry = VIMPeople.getDocumentByKey(userAbbrev, true);
          if (null != nabEntry) {
            XSPContext context = (XSPContext) resolveVariable("context");
View Full Code Here


            XSPContext context = (XSPContext) resolveVariable("context");

            profile.replaceItemValue("PhotoURL",
                context.getUrl().getScheme() + "://" + context.getUrl().getHost() + '/' + database.getFilePath() +
                "/api.xsp?method=getmypic&id=" +
                UNIDEncoder.encode(session.createName(profile.getItemValueString("User")).getCanonical()) + "&size=" +
                this.DefaultSize + "&format=" + this.DefaultFormat);
           
            if (this.StoreProfilesInNab == "Yes") {
              // If we're synching w/ the NAB, Email Address should not be pushed to nab -- it should only get pulled
              profile.replaceItemValue("InternetAddress", nabEntry.getItemValueString("InternetAddress"));
View Full Code Here

      getLotusId(db);
      Name name = null;
      int i = 0;
      try {
        for (i = 0; i <= 100000; i++) {
          name = session.createName(UUID.randomUUID().toString());
          getLotusId(name);
          DateTime dt = session.createDateTime(new Date());
          getLotusId(dt);
          DateTime end = session.createDateTime(new Date());
          getLotusId(end);
View Full Code Here

  }
 
  public static Name getCurrentUser() {
    Session session = getSession();
    try {
      return session.createName(session.getEffectiveUserName());
    } catch (NotesException e) {
      e.printStackTrace();
      return null;
    }     
  }
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.