diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-19 15:21:20 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-19 15:21:20 +0000 |
commit | e92fede1556b025a9db90d334d77481450e119bf (patch) | |
tree | 04bd05151354ceaf86c6a84f8e83704302bbce32 /archiva-modules/plugins/metadata-store-file/src | |
parent | 58afcb111487f09821d20ce25015352ee5140b65 (diff) | |
download | archiva-e92fede1556b025a9db90d334d77481450e119bf.tar.gz archiva-e92fede1556b025a9db90d334d77481450e119bf.zip |
fix all RepositoryManager implementations
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1423879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/plugins/metadata-store-file/src')
-rw-r--r-- | archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java index 91f148665..0e62fe375 100644 --- a/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java +++ b/archiva-modules/plugins/metadata-store-file/src/main/java/org/apache/archiva/metadata/repository/file/FileMetadataRepository.java @@ -309,6 +309,13 @@ public class FileMetadataRepository return facets; } + public boolean hasMetadataFacet( String repositoryId, String facetId ) + throws MetadataRepositoryException + { + // TODO could be improved a bit + return !getMetadataFacets( repositoryId, facetId ).isEmpty(); + } + private void recurse( List<String> facets, String prefix, File directory ) { File[] list = directory.listFiles(); |