@Named @Singleton public class UploadManagerImpl extends org.sonatype.goodies.common.ComponentSupport implements UploadManager
UploadManager
implementation.UploadManager.UIUploadEvent
Constructor and Description |
---|
UploadManagerImpl(Map<String,UploadHandler> uploadHandlers,
UploadComponentMultipartHelper multipartHelper,
UploadProcessor uploadComponentProcessor,
org.sonatype.nexus.common.event.EventManager eventManager,
Set<ComponentUploadExtension> componentsUploadExtensions) |
Modifier and Type | Method and Description |
---|---|
Collection<UploadDefinition> |
getAvailableDefinitions()
Get the list of
UploadDefinitions available in this instance. |
UploadDefinition |
getByFormat(String format)
Get the
UploadDefinition for the repository format. |
org.sonatype.nexus.repository.view.Content |
handle(ImportFileConfiguration importFileConfiguration)
Import a file and its attributes into a repository.
|
UploadResponse |
handle(org.sonatype.nexus.repository.Repository repository,
javax.servlet.http.HttpServletRequest request)
Adds a component to the repository at the appropriate location.
|
@Inject public UploadManagerImpl(Map<String,UploadHandler> uploadHandlers, UploadComponentMultipartHelper multipartHelper, UploadProcessor uploadComponentProcessor, org.sonatype.nexus.common.event.EventManager eventManager, Set<ComponentUploadExtension> componentsUploadExtensions)
public Collection<UploadDefinition> getAvailableDefinitions()
UploadManager
UploadDefinitions
available in this instance.getAvailableDefinitions
in interface UploadManager
public UploadResponse handle(org.sonatype.nexus.repository.Repository repository, javax.servlet.http.HttpServletRequest request) throws IOException
UploadManager
handle
in interface UploadManager
repository
- the Repository
to add the component torequest
- the http request containing the multipart uploadIOException
public UploadDefinition getByFormat(String format)
UploadManager
UploadDefinition
for the repository format.getByFormat
in interface UploadManager
public org.sonatype.nexus.repository.view.Content handle(ImportFileConfiguration importFileConfiguration) throws IOException
UploadManager
handle
in interface UploadManager
IOException
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.