Package org.sonatype.nexus.proxy.access

Examples of org.sonatype.nexus.proxy.access.Action


    final RepositoryItemUidLock uidUploaderLock = uploaderUid.getLock();

    uidUploaderLock.lock(Action.create);

    final Action action = getResultingActionOnWrite(item.getResourceStoreRequest());

    try {
      // NEXUS-4550: we are shared-locking the actual UID (to not prevent downloaders while
      // we save to temporary location. But this depends on actual LS backend actually...)
      // but we exclusive lock uploaders to serialize them!
View Full Code Here


      final RepositoryItemUidLock itemLock = item.getRepositoryItemUid().getLock();

      itemLock.lock(Action.create);

      final Action action;

      try {
        action = getResultingActionOnWrite(item.getResourceStoreRequest());

        getLocalStorage().storeItem(this, item);
View Full Code Here

        return false;
      }
    }
    final String action = getHttpMethodAction(request);
    try {
      final Action nxAction = Action.valueOf(action);
      final ResourceStoreRequest storeRequest = getResourceStoreRequest(request, false);
      return storeRequest != null && rootRouter.authorizePath(storeRequest, nxAction);
    }
    catch (IllegalArgumentException e) { // Enum.valueOf
      log.warn(formatMessage(request, "Cannot translate Shiro action '{}' to Nexus action"), action);
View Full Code Here

    if (securitySystem.getAnonymousUsername().equals(subject.getPrincipal())) {
      return;
    }

    final Action action = Action.valueOf(getHttpMethodAction(request));

    final ClientInfo clientInfo =
        new ClientInfo(String.valueOf(subject.getPrincipal()),
            RemoteIPFinder.findIP((HttpServletRequest) request), "n/a");
    final ResourceInfo resInfo =
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.access.Action

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.