From: Joakim Erdfelt Date: Fri, 19 Oct 2007 16:13:49 +0000 (+0000) Subject: Updating javadoc. X-Git-Tag: archiva-1.0-beta-3~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53b29620d5760792f4b2d3fb4ed34facbbac14f8;p=archiva.git Updating javadoc. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@586517 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/RepositoryContentConsumers.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/RepositoryContentConsumers.java index 6e0138dac..e51fb354c 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/RepositoryContentConsumers.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/scanner/RepositoryContentConsumers.java @@ -65,18 +65,50 @@ public class RepositoryContentConsumers */ private List availableInvalidConsumers; + /** + *

+ * Get the list of Ids associated with those {@link KnownRepositoryContentConsumer} that have + * been selected in the configuration to execute. + *

+ * + *

+ * NOTE: This list can be larger and contain entries that might not exist or be available + * in the classpath, or as a component. + *

+ * + * @return the list of consumer ids that have been selected by the configuration. + */ public List getSelectedKnownConsumerIds() { RepositoryScanningConfiguration scanning = archivaConfiguration.getConfiguration().getRepositoryScanning(); return scanning.getKnownContentConsumers(); } + /** + *

+ * Get the list of Ids associated with those {@link InvalidRepositoryContentConsumer} that have + * been selected in the configuration to execute. + *

+ * + *

+ * NOTE: This list can be larger and contain entries that might not exist or be available + * in the classpath, or as a component. + *

+ * + * @return the list of consumer ids that have been selected by the configuration. + */ public List getSelectedInvalidConsumerIds() { RepositoryScanningConfiguration scanning = archivaConfiguration.getConfiguration().getRepositoryScanning(); return scanning.getInvalidContentConsumers(); } + /** + * Get the map of {@link String} ids to {@link KnownRepositoryContentConsumer} implementations, + * for those consumers that have been selected according to the active configuration. + * + * @return the map of String ids to {@link KnownRepositoryContentConsumer} objects. + */ public Map getSelectedKnownConsumersMap() { Map consumerMap = new HashMap(); @@ -94,6 +126,12 @@ public class RepositoryContentConsumers return consumerMap; } + /** + * Get the map of {@link String} ids to {@link InvalidRepositoryContentConsumer} implementations, + * for those consumers that have been selected according to the active configuration. + * + * @return the map of String ids to {@link InvalidRepositoryContentConsumer} objects. + */ public Map getSelectedInvalidConsumersMap() { Map consumerMap = new HashMap(); @@ -111,6 +149,13 @@ public class RepositoryContentConsumers return consumerMap; } + /** + * Get the list of {@link KnownRepositoryContentConsumer} objects that are + * selected according to the active configuration. + * + * @return the list of {@link KnownRepositoryContentConsumer} that have been selected + * by the active configuration. + */ public List getSelectedKnownConsumers() { List ret = new ArrayList(); @@ -128,6 +173,13 @@ public class RepositoryContentConsumers return ret; } + /** + * Get the list of {@link InvalidRepositoryContentConsumer} objects that are + * selected according to the active configuration. + * + * @return the list of {@link InvalidRepositoryContentConsumer} that have been selected + * by the active configuration. + */ public List getSelectedInvalidConsumers() { List ret = new ArrayList(); @@ -145,26 +197,65 @@ public class RepositoryContentConsumers return ret; } + /** + * Get the list of {@link KnownRepositoryContentConsumer} objects that are + * available and present in the classpath and as components in the IoC. + * + * @return the list of all available {@link KnownRepositoryContentConsumer} present in the classpath + * and as a component in the IoC. + */ public List getAvailableKnownConsumers() { return availableKnownConsumers; } + /** + * Get the list of {@link InvalidRepositoryContentConsumer} objects that are + * available and present in the classpath and as components in the IoC. + * + * @return the list of all available {@link InvalidRepositoryContentConsumer} present in the classpath + * and as a component in the IoC. + */ public List getAvailableInvalidConsumers() { return availableInvalidConsumers; } + /** + * Set the list of {@link KnownRepositoryContentConsumer} objects that are + * available. + * + * NOTE: This is an override for the base functionality as a component, this + * is used by archiva-cli and the unit testing framework. + * + * @return the list of available {@link KnownRepositoryContentConsumer}. + */ public void setAvailableKnownConsumers( List availableKnownConsumers ) { this.availableKnownConsumers = availableKnownConsumers; } + /** + * Set the list of {@link InvalidRepositoryContentConsumer} objects that are + * available. + * + * NOTE: This is an override for the base functionality as a component, this + * is used by archiva-cli and the unit testing framework. + * + * @return the list of available {@link InvalidRepositoryContentConsumer}. + */ public void setAvailableInvalidConsumers( List availableInvalidConsumers ) { this.availableInvalidConsumers = availableInvalidConsumers; } + /** + * A convienence method to execute all of the active selected consumers for a + * particular arbitrary file. + * + * @param repository the repository configuration to use. + * @param localFile the local file to execute the consumers against. + */ public void executeConsumers( ManagedRepositoryConfiguration repository, File localFile ) { // Run the repository consumers