org.apache.maven.archiva.repository.scanner
Class RepositoryContentConsumers

Package class diagram package RepositoryContentConsumers
java.lang.Object
  extended by org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers

public class RepositoryContentConsumers
extends java.lang.Object

RepositoryContentConsumerUtil


Constructor Summary
RepositoryContentConsumers()
           
 
Method Summary
 void executeConsumers(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository, java.io.File localFile)
          A convienence method to execute all of the active selected consumers for a particular arbitrary file.
 java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getAvailableInvalidConsumers()
          Get the list of InvalidRepositoryContentConsumer objects that are available and present in the classpath and as components in the IoC.
 java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getAvailableKnownConsumers()
          Get the list of KnownRepositoryContentConsumer objects that are available and present in the classpath and as components in the IoC.
 java.util.List<java.lang.String> getSelectedInvalidConsumerIds()
           Get the list of Ids associated with those InvalidRepositoryContentConsumer that have been selected in the configuration to execute.
 java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getSelectedInvalidConsumers()
          Get the list of InvalidRepositoryContentConsumer objects that are selected according to the active configuration.
 java.util.Map<java.lang.String,org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getSelectedInvalidConsumersMap()
          Get the map of String ids to InvalidRepositoryContentConsumer implementations, for those consumers that have been selected according to the active configuration.
 java.util.List<java.lang.String> getSelectedKnownConsumerIds()
           Get the list of Ids associated with those KnownRepositoryContentConsumer that have been selected in the configuration to execute.
 java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getSelectedKnownConsumers()
          Get the list of KnownRepositoryContentConsumer objects that are selected according to the active configuration.
 java.util.Map<java.lang.String,org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getSelectedKnownConsumersMap()
          Get the map of String ids to KnownRepositoryContentConsumer implementations, for those consumers that have been selected according to the active configuration.
protected  java.util.Date getStartTime()
           
 void setArchivaConfiguration(org.apache.maven.archiva.configuration.ArchivaConfiguration archivaConfiguration)
           
 void setAvailableInvalidConsumers(java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> availableInvalidConsumers)
          Set the list of InvalidRepositoryContentConsumer objects that are available.
 void setAvailableKnownConsumers(java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> availableKnownConsumers)
          Set the list of KnownRepositoryContentConsumer objects that are available.
 void setSelectedInvalidConsumers(java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> selectedInvalidConsumers)
           
 void setSelectedKnownConsumers(java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> selectedKnownConsumers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryContentConsumers

public RepositoryContentConsumers()
Method Detail

getSelectedKnownConsumerIds

public java.util.List<java.lang.String> getSelectedKnownConsumerIds()

Get the list of Ids associated with those 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.

Returns:
the list of consumer ids that have been selected by the configuration.

getSelectedInvalidConsumerIds

public java.util.List<java.lang.String> getSelectedInvalidConsumerIds()

Get the list of Ids associated with those 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.

Returns:
the list of consumer ids that have been selected by the configuration.

getSelectedKnownConsumersMap

public java.util.Map<java.lang.String,org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getSelectedKnownConsumersMap()
Get the map of String ids to KnownRepositoryContentConsumer implementations, for those consumers that have been selected according to the active configuration.

Returns:
the map of String ids to KnownRepositoryContentConsumer objects.

getSelectedInvalidConsumersMap

public java.util.Map<java.lang.String,org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getSelectedInvalidConsumersMap()
Get the map of String ids to InvalidRepositoryContentConsumer implementations, for those consumers that have been selected according to the active configuration.

Returns:
the map of String ids to InvalidRepositoryContentConsumer objects.

getSelectedKnownConsumers

public java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getSelectedKnownConsumers()
Get the list of KnownRepositoryContentConsumer objects that are selected according to the active configuration.

Returns:
the list of KnownRepositoryContentConsumer that have been selected by the active configuration.

getSelectedInvalidConsumers

public java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getSelectedInvalidConsumers()
Get the list of InvalidRepositoryContentConsumer objects that are selected according to the active configuration.

Returns:
the list of InvalidRepositoryContentConsumer that have been selected by the active configuration.

getAvailableKnownConsumers

public java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> getAvailableKnownConsumers()
Get the list of KnownRepositoryContentConsumer objects that are available and present in the classpath and as components in the IoC.

Returns:
the list of all available KnownRepositoryContentConsumer present in the classpath and as a component in the IoC.

getAvailableInvalidConsumers

public java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> getAvailableInvalidConsumers()
Get the list of InvalidRepositoryContentConsumer objects that are available and present in the classpath and as components in the IoC.

Returns:
the list of all available InvalidRepositoryContentConsumer present in the classpath and as a component in the IoC.

setAvailableKnownConsumers

public void setAvailableKnownConsumers(java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> availableKnownConsumers)
Set the list of 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.


setAvailableInvalidConsumers

public void setAvailableInvalidConsumers(java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> availableInvalidConsumers)
Set the list of 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.


executeConsumers

public void executeConsumers(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository,
                             java.io.File localFile)
A convienence method to execute all of the active selected consumers for a particular arbitrary file.

Parameters:
repository - the repository configuration to use.
localFile - the local file to execute the consumers against.

setSelectedKnownConsumers

public void setSelectedKnownConsumers(java.util.List<org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer> selectedKnownConsumers)

setSelectedInvalidConsumers

public void setSelectedInvalidConsumers(java.util.List<org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer> selectedInvalidConsumers)

getStartTime

protected java.util.Date getStartTime()

setArchivaConfiguration

public void setArchivaConfiguration(org.apache.maven.archiva.configuration.ArchivaConfiguration archivaConfiguration)