Examples of NoAccessSignal


Examples of com.ibm.commons.runtime.NoAccessSignal

  protected void forceAuthentication(Args args) throws ClientServicesException {
    if (endpoint != null) {
      endpoint.authenticate(true);
    } else {
      String msg = StringUtil.format("Authorization needed for service {0}", getUrlPath(args));
      throw new NoAccessSignal(msg);
    }
  }
View Full Code Here

Examples of com.ibm.commons.runtime.NoAccessSignal

  protected void forceAuthentication(Args args) throws ClientServicesException {
    if (endpoint != null) {
      endpoint.authenticate(true);
    } else {
      throw new NoAccessSignal(StringUtil.format("Authorization needed for service {0}", getUrlPath(args)));
    }
  }
View Full Code Here

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

Examples of com.ibm.xsp.acl.NoAccessSignal

        }
      } 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
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.