Package com.ibm.xsp.acl

Examples of com.ibm.xsp.acl.NoAccessSignal


    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());
      }
    }
    DominoDocument dominoDoc = DominoDocument.wrap(getDatabaseName(), db, getParentId(), getFormName(), getComputeWithForm(),
        getConcurrencyMode(), isAllowDeletedDocs(), getSaveLinksAs(), getWebQuerySaveAgent());
View Full Code Here


        }
      } else {
        // If no NAB is avail, request authentication
        // We force the authetication here, but it does not work outside of basic authentication
        // Moreover, the page is not refreshed afterwards to show the new user.
        throw new NoAccessSignal();
      }

      return null;
    }
View Full Code Here

TOP

Related Classes of com.ibm.xsp.acl.NoAccessSignal

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.