org.apache.archiva.rest.services
Class DefaultArchivaAdministrationService
java.lang.Object
org.apache.archiva.rest.services.AbstractRestService
org.apache.archiva.rest.services.DefaultArchivaAdministrationService
- All Implemented Interfaces:
- ArchivaAdministrationService
@Service(value="archivaAdministrationService#default")
public class DefaultArchivaAdministrationService
- extends AbstractRestService
- implements ArchivaAdministrationService
- Since:
- 1.4-M1
- Author:
- Olivier Lamy
Methods inherited from class org.apache.archiva.rest.services.AbstractRestService |
buildArtifacts, doScanRepository, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
archivaAdministration
@Inject
private ArchivaAdministration archivaAdministration
repositoryContent
@Inject
@Named(value="managedRepositoryContent#legacy")
private ManagedRepositoryContent repositoryContent
repoConsumerUtil
@Inject
private RepositoryContentConsumers repoConsumerUtil
DefaultArchivaAdministrationService
public DefaultArchivaAdministrationService()
getLegacyArtifactPaths
public List<LegacyArtifactPath> getLegacyArtifactPaths()
throws ArchivaRestServiceException
- Specified by:
getLegacyArtifactPaths
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
addLegacyArtifactPath
public void addLegacyArtifactPath(LegacyArtifactPath legacyArtifactPath)
throws ArchivaRestServiceException
- Specified by:
addLegacyArtifactPath
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
deleteLegacyArtifactPath
public Boolean deleteLegacyArtifactPath(String path)
throws ArchivaRestServiceException
- Specified by:
deleteLegacyArtifactPath
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
addFileTypePattern
public Boolean addFileTypePattern(String fileTypeId,
String pattern)
throws ArchivaRestServiceException
- Specified by:
addFileTypePattern
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
removeFileTypePattern
public Boolean removeFileTypePattern(String fileTypeId,
String pattern)
throws ArchivaRestServiceException
- Specified by:
removeFileTypePattern
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getFileType
public FileType getFileType(String fileTypeId)
throws ArchivaRestServiceException
- Specified by:
getFileType
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
addFileType
public void addFileType(FileType fileType)
throws ArchivaRestServiceException
- Specified by:
addFileType
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
removeFileType
public Boolean removeFileType(String fileTypeId)
throws ArchivaRestServiceException
- Specified by:
removeFileType
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
enabledKnownContentConsumer
public Boolean enabledKnownContentConsumer(String knownContentConsumer)
throws ArchivaRestServiceException
- Specified by:
enabledKnownContentConsumer
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
enabledKnownContentConsumers
public void enabledKnownContentConsumers(List<String> knownContentConsumers)
throws ArchivaRestServiceException
- Specified by:
enabledKnownContentConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
disabledKnownContentConsumer
public Boolean disabledKnownContentConsumer(String knownContentConsumer)
throws ArchivaRestServiceException
- Specified by:
disabledKnownContentConsumer
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
enabledInvalidContentConsumer
public Boolean enabledInvalidContentConsumer(String invalidContentConsumer)
throws ArchivaRestServiceException
- Specified by:
enabledInvalidContentConsumer
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
enabledInvalidContentConsumers
public void enabledInvalidContentConsumers(List<String> invalidContentConsumers)
throws ArchivaRestServiceException
- Specified by:
enabledInvalidContentConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
disabledInvalidContentConsumer
public Boolean disabledInvalidContentConsumer(String invalidContentConsumer)
throws ArchivaRestServiceException
- Specified by:
disabledInvalidContentConsumer
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getFileTypes
public List<FileType> getFileTypes()
throws ArchivaRestServiceException
- Specified by:
getFileTypes
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getKnownContentConsumers
public List<String> getKnownContentConsumers()
throws ArchivaRestServiceException
- Specified by:
getKnownContentConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getInvalidContentConsumers
public List<String> getInvalidContentConsumers()
throws ArchivaRestServiceException
- Specified by:
getInvalidContentConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getOrganisationInformation
public OrganisationInformation getOrganisationInformation()
throws ArchivaRestServiceException
- Specified by:
getOrganisationInformation
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
setOrganisationInformation
public void setOrganisationInformation(OrganisationInformation organisationInformation)
throws ArchivaRestServiceException
- Specified by:
setOrganisationInformation
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
registrationDisabled
public Boolean registrationDisabled()
throws ArchivaRestServiceException
- Specified by:
registrationDisabled
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getUiConfiguration
public UiConfiguration getUiConfiguration()
throws ArchivaRestServiceException
- Specified by:
getUiConfiguration
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
setUiConfiguration
public void setUiConfiguration(UiConfiguration uiConfiguration)
throws ArchivaRestServiceException
- Specified by:
setUiConfiguration
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getApplicationUrl
public String getApplicationUrl()
throws ArchivaRestServiceException
- Specified by:
getApplicationUrl
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getNetworkConfiguration
public NetworkConfiguration getNetworkConfiguration()
throws ArchivaRestServiceException
- Specified by:
getNetworkConfiguration
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
setNetworkConfiguration
public void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
throws ArchivaRestServiceException
- Specified by:
setNetworkConfiguration
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getKnownContentAdminRepositoryConsumers
public List<AdminRepositoryConsumer> getKnownContentAdminRepositoryConsumers()
throws ArchivaRestServiceException
- Specified by:
getKnownContentAdminRepositoryConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
getInvalidContentAdminRepositoryConsumers
public List<AdminRepositoryConsumer> getInvalidContentAdminRepositoryConsumers()
throws ArchivaRestServiceException
- Specified by:
getInvalidContentAdminRepositoryConsumers
in interface ArchivaAdministrationService
- Throws:
ArchivaRestServiceException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.