Examples of queryAccessPrivileges()


Examples of lotus.domino.Database.queryAccessPrivileges()

    Database db = openDatabase();
    String server = com.ibm.xsp.model.domino.DominoUtils.getCurrentDatabase().getServer();

    if (!(StringUtil.isEmpty(server))) {
      String currentUser = com.ibm.xsp.model.domino.DominoUtils.getCurrentSession().getEffectiveUserName();
      int i = db.queryAccessPrivileges(currentUser);
      if (((i & Database.DBACL_CREATE_DOCS) == 0) && ((i & Database.DBACL_WRITE_PUBLIC_DOCS) == 0)) {
        throw new NoAccessSignal("User " + currentUser + " is has not enough privileges to create documents in "
            + getDatabaseName());
      }
    }
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.