This project has retired. For details please refer to its Attic page.
AdministrationServiceImpl

org.apache.archiva.web.xmlrpc.services
Class AdministrationServiceImpl

Package class diagram package AdministrationServiceImpl
java.lang.Object
  extended by org.apache.archiva.web.xmlrpc.services.AdministrationServiceImpl
All Implemented Interfaces:
AdministrationService

public class AdministrationServiceImpl
extends java.lang.Object
implements AdministrationService

AdministrationServiceImpl


Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
AdministrationServiceImpl(ArchivaConfiguration archivaConfig, RepositoryContentConsumers repoConsumersUtil, DatabaseConsumers dbConsumersUtil, RepositoryContentFactory repoFactory, ArtifactDAO artifactDAO, ArchivaTaskScheduler taskScheduler, java.util.Collection<RepositoryListener> listeners)
           
 
Method Summary
 java.lang.Boolean configureDatabaseConsumer(java.lang.String consumerId, boolean enable)
          Configures (enable or disable) database consumer.
 java.lang.Boolean configureRepositoryConsumer(java.lang.String repoId, java.lang.String consumerId, boolean enable)
          Configures (enable or disable) repository consumer.
 java.lang.Boolean deleteArtifact(java.lang.String repoId, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
          Deletes given artifact from the specified repository.
 java.lang.Boolean executeDatabaseScanner()
          Executes the database scanner.
 java.lang.Boolean executeRepositoryScanner(java.lang.String repoId)
          Executes repository scanner on the given repository.
 java.util.List<java.lang.String> getAllDatabaseConsumers()
          Gets all available database consumers.
 java.util.List<ManagedRepository> getAllManagedRepositories()
          Gets all managed repositories.
 java.util.List<RemoteRepository> getAllRemoteRepositories()
          Gets all remote repositories.
 java.util.List<java.lang.String> getAllRepositoryConsumers()
          Gets all available repository consumers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.slf4j.Logger log
Constructor Detail

AdministrationServiceImpl

public AdministrationServiceImpl(ArchivaConfiguration archivaConfig,
                                 RepositoryContentConsumers repoConsumersUtil,
                                 DatabaseConsumers dbConsumersUtil,
                                 RepositoryContentFactory repoFactory,
                                 ArtifactDAO artifactDAO,
                                 ArchivaTaskScheduler taskScheduler,
                                 java.util.Collection<RepositoryListener> listeners)
Method Detail

configureDatabaseConsumer

public java.lang.Boolean configureDatabaseConsumer(java.lang.String consumerId,
                                                   boolean enable)
                                            throws java.lang.Exception
Description copied from interface: AdministrationService
Configures (enable or disable) database consumer.

Specified by:
configureDatabaseConsumer in interface AdministrationService
Parameters:
consumerId - id of the database consumer
enable - flag whether to enable or disable the specified consumer
Returns:
Throws:
java.lang.Exception
See Also:
AdministrationService.configureDatabaseConsumer(String, boolean)

configureRepositoryConsumer

public java.lang.Boolean configureRepositoryConsumer(java.lang.String repoId,
                                                     java.lang.String consumerId,
                                                     boolean enable)
                                              throws java.lang.Exception
Description copied from interface: AdministrationService
Configures (enable or disable) repository consumer.

Specified by:
configureRepositoryConsumer in interface AdministrationService
Returns:
Throws:
java.lang.Exception
See Also:
AdministrationService.configureRepositoryConsumer(String, String, boolean)

deleteArtifact

public java.lang.Boolean deleteArtifact(java.lang.String repoId,
                                        java.lang.String groupId,
                                        java.lang.String artifactId,
                                        java.lang.String version)
                                 throws java.lang.Exception
Description copied from interface: AdministrationService
Deletes given artifact from the specified repository.

Specified by:
deleteArtifact in interface AdministrationService
Parameters:
repoId - id of the repository where the artifact to be deleted resides
groupId - groupId of the artifact to be deleted
artifactId - artifactId of the artifact to be deleted
version - version of the artifact to be deleted
Returns:
Throws:
java.lang.Exception
See Also:
AdministrationService.deleteArtifact(String, String, String, String)

executeDatabaseScanner

public java.lang.Boolean executeDatabaseScanner()
                                         throws java.lang.Exception
Description copied from interface: AdministrationService
Executes the database scanner.

Specified by:
executeDatabaseScanner in interface AdministrationService
Returns:
Throws:
java.lang.Exception
See Also:
AdministrationService.executeDatabaseScanner()

executeRepositoryScanner

public java.lang.Boolean executeRepositoryScanner(java.lang.String repoId)
                                           throws java.lang.Exception
Description copied from interface: AdministrationService
Executes repository scanner on the given repository.

Specified by:
executeRepositoryScanner in interface AdministrationService
Parameters:
repoId - id of the repository to be scanned
Returns:
Throws:
java.lang.Exception
See Also:
AdministrationService.executeRepositoryScanner(String)

getAllDatabaseConsumers

public java.util.List<java.lang.String> getAllDatabaseConsumers()
Description copied from interface: AdministrationService
Gets all available database consumers.

Specified by:
getAllDatabaseConsumers in interface AdministrationService
Returns:
See Also:
AdministrationService.getAllDatabaseConsumers()

getAllRepositoryConsumers

public java.util.List<java.lang.String> getAllRepositoryConsumers()
Description copied from interface: AdministrationService
Gets all available repository consumers.

Specified by:
getAllRepositoryConsumers in interface AdministrationService
Returns:
See Also:
AdministrationService.getAllRepositoryConsumers()

getAllManagedRepositories

public java.util.List<ManagedRepository> getAllManagedRepositories()
Description copied from interface: AdministrationService
Gets all managed repositories.

Specified by:
getAllManagedRepositories in interface AdministrationService
Returns:
See Also:
AdministrationService.getAllManagedRepositories()

getAllRemoteRepositories

public java.util.List<RemoteRepository> getAllRemoteRepositories()
Description copied from interface: AdministrationService
Gets all remote repositories.

Specified by:
getAllRemoteRepositories in interface AdministrationService
Returns:
See Also:
AdministrationService.getAllRemoteRepositories()