diff options
Diffstat (limited to 'archiva-modules/archiva-base')
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; + } |