aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-api
diff options
context:
space:
mode:
authorMartin Stockhammer <martin_s@apache.org>2020-06-13 14:03:27 +0200
committerMartin Stockhammer <martin_s@apache.org>2020-06-13 14:03:27 +0200
commitb804db659977514037ea19b2cc473fcba9701a67 (patch)
tree88f66202015701f91ea9c218aeb8a1aa87192937 /archiva-modules/archiva-base/archiva-repository-api
parentbf95aca967b54c7b0fa24b52a038b5c4256947bb (diff)
downloadarchiva-b804db659977514037ea19b2cc473fcba9701a67.tar.gz
archiva-b804db659977514037ea19b2cc473fcba9701a67.zip
Adding layout method
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-api')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContent.java6
-rw-r--r--archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContentLayout.java1
2 files changed, 7 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContent.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContent.java
index f4ad5af12..4c06dab85 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContent.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContent.java
@@ -193,4 +193,10 @@ public interface ManagedRepositoryContent extends RepositoryContent
* @return <code>true</code>, if the layout is supported, otherwise <code>false</code>
*/
<T extends ManagedRepositoryContentLayout> boolean supportsLayout(Class<T> clazz);
+
+ /**
+ * Returns a list of supported layout classes
+ * @return
+ */
+ List<Class<? extends ManagedRepositoryContentLayout>> getSupportedLayouts( );
}
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContentLayout.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContentLayout.java
index 3bc4736b3..d53743d7a 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContentLayout.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ManagedRepositoryContentLayout.java
@@ -48,4 +48,5 @@ public interface ManagedRepositoryContentLayout
* @throws LayoutException if the conversion is not possible
*/
<T extends ContentItem> T adaptItem( Class<T> clazz, ContentItem item ) throws LayoutException;
+
}