|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.archiva.repository.scanner.RepositoryContentConsumers
@Service(value="repositoryContentConsumers") public class RepositoryContentConsumers
RepositoryContentConsumerUtil
Field Summary | |
---|---|
private org.springframework.context.ApplicationContext |
applicationContext
|
private ArchivaAdministration |
archivaAdministration
|
private List<InvalidRepositoryContentConsumer> |
selectedInvalidConsumers
|
private List<KnownRepositoryContentConsumer> |
selectedKnownConsumers
|
Constructor Summary | |
---|---|
RepositoryContentConsumers(ArchivaAdministration archivaAdministration)
|
Method Summary | |
---|---|
void |
executeConsumers(ManagedRepository repository,
File localFile,
boolean updateRelatedArtifacts)
A convienence method to execute all of the active selected consumers for a particular arbitrary file. |
List<InvalidRepositoryContentConsumer> |
getAvailableInvalidConsumers()
Get the list of InvalidRepositoryContentConsumer objects that are
available and present in the classpath and as components in the IoC. |
List<KnownRepositoryContentConsumer> |
getAvailableKnownConsumers()
Get the list of KnownRepositoryContentConsumer objects that are
available and present in the classpath and as components in the IoC. |
List<String> |
getSelectedInvalidConsumerIds()
Get the list of Ids associated with those InvalidRepositoryContentConsumer that have
been selected in the configuration to execute. |
List<InvalidRepositoryContentConsumer> |
getSelectedInvalidConsumers()
Get the list of InvalidRepositoryContentConsumer objects that are
selected according to the active configuration. |
Map<String,InvalidRepositoryContentConsumer> |
getSelectedInvalidConsumersMap()
Get the map of String ids to InvalidRepositoryContentConsumer implementations,
for those consumers that have been selected according to the active configuration. |
List<String> |
getSelectedKnownConsumerIds()
Get the list of Ids associated with those KnownRepositoryContentConsumer that have
been selected in the configuration to execute. |
List<KnownRepositoryContentConsumer> |
getSelectedKnownConsumers()
Get the list of KnownRepositoryContentConsumer objects that are
selected according to the active configuration. |
Map<String,KnownRepositoryContentConsumer> |
getSelectedKnownConsumersMap()
Get the map of String ids to KnownRepositoryContentConsumer implementations,
for those consumers that have been selected according to the active configuration. |
protected Date |
getStartTime()
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setArchivaAdministration(ArchivaAdministration archivaAdministration)
|
void |
setSelectedInvalidConsumers(List<InvalidRepositoryContentConsumer> selectedInvalidConsumers)
|
void |
setSelectedKnownConsumers(List<KnownRepositoryContentConsumer> selectedKnownConsumers)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Inject private org.springframework.context.ApplicationContext applicationContext
private ArchivaAdministration archivaAdministration
private List<KnownRepositoryContentConsumer> selectedKnownConsumers
private List<InvalidRepositoryContentConsumer> selectedInvalidConsumers
Constructor Detail |
---|
@Inject public RepositoryContentConsumers(ArchivaAdministration archivaAdministration)
Method Detail |
---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public List<String> getSelectedKnownConsumerIds() throws RepositoryAdminException
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.
RepositoryAdminException
public List<String> getSelectedInvalidConsumerIds() throws RepositoryAdminException
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.
RepositoryAdminException
public Map<String,KnownRepositoryContentConsumer> getSelectedKnownConsumersMap() throws RepositoryAdminException
String
ids to KnownRepositoryContentConsumer
implementations,
for those consumers that have been selected according to the active configuration.
KnownRepositoryContentConsumer
objects.
RepositoryAdminException
public Map<String,InvalidRepositoryContentConsumer> getSelectedInvalidConsumersMap() throws RepositoryAdminException
String
ids to InvalidRepositoryContentConsumer
implementations,
for those consumers that have been selected according to the active configuration.
InvalidRepositoryContentConsumer
objects.
RepositoryAdminException
public List<KnownRepositoryContentConsumer> getSelectedKnownConsumers() throws RepositoryAdminException
KnownRepositoryContentConsumer
objects that are
selected according to the active configuration.
KnownRepositoryContentConsumer
that have been selected
by the active configuration.
RepositoryAdminException
public List<InvalidRepositoryContentConsumer> getSelectedInvalidConsumers() throws RepositoryAdminException
InvalidRepositoryContentConsumer
objects that are
selected according to the active configuration.
InvalidRepositoryContentConsumer
that have been selected
by the active configuration.
RepositoryAdminException
public List<KnownRepositoryContentConsumer> getAvailableKnownConsumers()
KnownRepositoryContentConsumer
objects that are
available and present in the classpath and as components in the IoC.
KnownRepositoryContentConsumer
present in the classpath
and as a component in the IoC.public List<InvalidRepositoryContentConsumer> getAvailableInvalidConsumers()
InvalidRepositoryContentConsumer
objects that are
available and present in the classpath and as components in the IoC.
InvalidRepositoryContentConsumer
present in the classpath
and as a component in the IoC.public void executeConsumers(ManagedRepository repository, File localFile, boolean updateRelatedArtifacts) throws RepositoryAdminException
repository
- the repository configuration to use.localFile
- the local file to execute the consumers against.updateRelatedArtifacts
- TODO
RepositoryAdminException
public void setSelectedKnownConsumers(List<KnownRepositoryContentConsumer> selectedKnownConsumers)
public void setSelectedInvalidConsumers(List<InvalidRepositoryContentConsumer> selectedInvalidConsumers)
protected Date getStartTime()
public void setArchivaAdministration(ArchivaAdministration archivaAdministration)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |