Package org.sonatype.nexus.proxy.item

Examples of org.sonatype.nexus.proxy.item.RepositoryItemUidLock.unlock()


      }

      return false;
    }
    finally {
      uidLock.unlock();
    }
  }

  public Attributes getAttributes(final RepositoryItemUid uid)
      throws IOException
View Full Code Here


      }

      return doGetAttributes(uid);
    }
    finally {
      uidLock.unlock();
    }
  }

  public void putAttributes(final RepositoryItemUid uid, Attributes attributes)
      throws IOException
View Full Code Here

        // TODO: what here? Is local storage unsuitable for storing attributes?
        log.error("Got UnsupportedStorageOperationException during store of UID=" + uid.toString(), ex);
      }
    }
    finally {
      uidLock.unlock();
    }
  }

  // ==
View Full Code Here

        throw new LocalStorageException(String.format(
            "Got exception during storing on path \"%s\" (while moving to final destination)",
            item.getRepositoryItemUid().toString()), e);
      }
      finally {
        uidLock.unlock();
      }
    }
    else {
      // we have no content, we talk about directory
      try {
View Full Code Here

              break;
            }
            entries.addAll(memberEntrySource.readEntries());
          }
          finally {
            lock.unlock();
          }
        }
      }
    }
    if (allMembersHavePublished) {
View Full Code Here

          if (changed) {
            publish(mavenHostedRepository, prefixSource);
          }
        }
        finally {
          lock.unlock();
        }
        return changed;
      }
    }
    finally {
View Full Code Here

        }
        return changed;
      }
    }
    finally {
      lock.unlock();
    }
    return false;
  }

  @Override
View Full Code Here

          if (changed) {
            publish(mavenHostedRepository, prefixSource);
          }
        }
        finally {
          lock.unlock();
        }
        return changed;
      }
    }
    finally {
View Full Code Here

        }
        return changed;
      }
    }
    finally {
      lock.unlock();
    }
    return false;
  }

  // ==
View Full Code Here

      }

      throw ex;
    }
    finally {
      uidLock.unlock();
    }
  }

  @Override
  public void copyItem(boolean fromTask, ResourceStoreRequest from, ResourceStoreRequest to)
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.