@Service(value="fileUploadService#rest") public class DefaultFileUploadService extends AbstractRestService implements FileUploadService
config, httpServletResponse, proxyConnectorAdmin, repositoryRegistry, repositorySessionFactory, repositoryTaskScheduler, userRepositories
FILES_SESSION_KEY
Constructor and Description |
---|
DefaultFileUploadService() |
Modifier and Type | Method and Description |
---|---|
Boolean |
clearUploadedFiles() |
Boolean |
deleteFile(String fileName) |
List<FileMetadata> |
getSessionFileMetadatas() |
protected List<FileMetadata> |
getSessionFilesList() |
FileMetadata |
post(org.apache.cxf.jaxrs.ext.multipart.MultipartBody multipartBody) |
Boolean |
save(String repositoryId,
String groupId,
String artifactId,
String version,
String packaging,
boolean generatePom) |
protected void |
saveFile(String repositoryId,
FileMetadata fileMetadata,
boolean generatePom,
String groupId,
String artifactId,
String version,
String packaging) |
protected void |
savePomFile(String repositoryId,
FileMetadata fileMetadata,
String groupId,
String artifactId,
String version,
String packaging) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
public DefaultFileUploadService()
public FileMetadata post(org.apache.cxf.jaxrs.ext.multipart.MultipartBody multipartBody) throws ArchivaRestServiceException
post
in interface FileUploadService
ArchivaRestServiceException
protected List<FileMetadata> getSessionFilesList()
public Boolean deleteFile(String fileName) throws ArchivaRestServiceException
deleteFile
in interface FileUploadService
ArchivaRestServiceException
public Boolean clearUploadedFiles() throws ArchivaRestServiceException
clearUploadedFiles
in interface FileUploadService
ArchivaRestServiceException
public List<FileMetadata> getSessionFileMetadatas() throws ArchivaRestServiceException
getSessionFileMetadatas
in interface FileUploadService
ArchivaRestServiceException
public Boolean save(String repositoryId, String groupId, String artifactId, String version, String packaging, boolean generatePom) throws ArchivaRestServiceException
save
in interface FileUploadService
ArchivaRestServiceException
protected void savePomFile(String repositoryId, FileMetadata fileMetadata, String groupId, String artifactId, String version, String packaging) throws ArchivaRestServiceException
ArchivaRestServiceException
protected void saveFile(String repositoryId, FileMetadata fileMetadata, boolean generatePom, String groupId, String artifactId, String version, String packaging) throws ArchivaRestServiceException
ArchivaRestServiceException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.