Package org.sonatype.nexus.proxy

Examples of org.sonatype.nexus.proxy.RepositoryNotAvailableException


    if (log.isDebugEnabled()) {
      log.debug(getId() + ".retrieveItem() :: " + request.toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    request.addProcessedRepository(getId());

    maintainNotFoundCache(request);
View Full Code Here


    if (log.isDebugEnabled()) {
      log.debug(getId() + ".copyItem() :: " + from.toString() + " --> " + to.toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    maintainNotFoundCache(from);

    final RepositoryItemUid fromUid = createUid(from.getRequestPath());
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug(getId() + ".moveItem() :: " + from.toString() + " --> " + to.toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    copyItem(fromTask, from, to);

    deleteItem(fromTask, from);
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug(getId() + ".deleteItem() :: " + request.toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    maintainNotFoundCache(request);

    final RepositoryItemUid uid = createUid(request.getRequestPath());
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug(getId() + ".storeItem() :: " + item.getRepositoryItemUid().toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    final RepositoryItemUid uid = createUid(item.getPath());

    // replace UID to own one
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug(getId() + ".list() :: " + request.toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    request.addProcessedRepository(getId());

    StorageItem item = retrieveItem(fromTask, request);
View Full Code Here

    if (log.isDebugEnabled()) {
      log.debug(getId() + ".list() :: " + coll.getRepositoryItemUid().toString());
    }

    if (!getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    maintainNotFoundCache(coll.getResourceStoreRequest());

    Collection<StorageItem> items = doListItems(new ResourceStoreRequest(coll));
View Full Code Here

   */
  protected void checkConditions(ResourceStoreRequest request, Action action)
      throws ItemNotFoundException, IllegalOperationException, AccessDeniedException
  {
    if (!this.getLocalStatus().shouldServiceRequest()) {
      throw new RepositoryNotAvailableException(this);
    }

    // check for writing to read only repo
    // Readonly is ALWAYS read only
    if (RepositoryWritePolicy.READ_ONLY.equals(getWritePolicy()) && !isActionAllowedReadOnly(action)) {
View Full Code Here

TOP

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

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.