| | |
| | | public String getRepoArchiveList(@QueryParam("id") String id, @QueryParam("force") boolean force, |
| | | @QueryParam("prettyPrinter") boolean prettyPrinter) { |
| | | if (force) { |
| | | ButlerCache.getInstance().clearRepoArchicesCacheAccess(); |
| | | ButlerCache.getInstance().clearRepoCacheAccess(); |
| | | } |
| | | Repository repository = ButlerCache.getInstance().getRepositoryArchives(id); |
| | | return JsonUtils.toJson(repository, prettyPrinter); |
| | |
| | | public String getList(@QueryParam("force") boolean force, @QueryParam("prettyPrinter") boolean prettyPrinter) { |
| | | if (force) { |
| | | ButlerCache.getInstance().clearRepoCacheAccess(); |
| | | ButlerCache.getInstance().clearRepoArchicesCacheAccess(); |
| | | } |
| | | List<Repository> repositories = ButlerCache.getInstance().getAllRepositories(); |
| | | if (CollectionUtils.isEmpty(repositories)) { |