Package org.sonatype.nexus.proxy

Examples of org.sonatype.nexus.proxy.AccessDeniedException


  {
    try {
      checkConditions(request, getResultingActionOnWrite(request));
    }
    catch (ItemNotFoundException e) {
      throw new AccessDeniedException(request, e.getMessage());
    }

    DefaultStorageFileItem fItem =
        new DefaultStorageFileItem(this, request, true, true, new PreparedContentLocator(is,
            getMimeSupport().guessMimeTypeFromPath(getMimeRulesSource(), request.getRequestPath()),
View Full Code Here


  {
    try {
      checkConditions(request, getResultingActionOnWrite(request));
    }
    catch (ItemNotFoundException e) {
      throw new AccessDeniedException(request, e.getMessage());
    }

    DefaultStorageCollectionItem coll = new DefaultStorageCollectionItem(this, request, true, true);

    if (userAttributes != null) {
View Full Code Here

    //only bother checking item authorizer if there is no flag in request stating authorization
    //has been taken care of
    if (!request.getRequestContext().containsKey(AccessManager.REQUEST_AUTHORIZED)
        && !nexusItemAuthorizer.authorizePath(repository, request, action)) {
      // deny the access
      throw new AccessDeniedException("Access denied on repository ID='" + repository.getId() + "', path='"
          + request.getRequestPath() + "', action='" + action + "'!");
    }
  }
View Full Code Here

      throws NoSuchRepositoryException, IOException, ConfigurationException, AccessDeniedException
  {
    Repository repository = repositoryRegistry.getRepository(id);

    if (!force && !repository.isUserManaged()) {
      throw new AccessDeniedException("Not allowed to delete non-user-managed repository '" + id + "'.");
    }

    // put out of service so wont be accessed any longer
    repository.setLocalStatus(LocalStatus.OUT_OF_SERVICE);
    // disable indexing for same purpose
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.AccessDeniedException

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.