public abstract class AbstractRestService extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
AbstractRestService.ModelMapperHolder |
private static class |
AbstractRestService.SearchResultHitMap |
Modifier and Type | Field and Description |
---|---|
protected ArchivaAdministration |
archivaAdministration |
private List<AuditListener> |
auditListeners |
protected org.apache.archiva.redback.configuration.UserConfiguration |
config |
protected javax.servlet.http.HttpServletRequest |
httpServletRequest |
protected javax.servlet.http.HttpServletResponse |
httpServletResponse |
protected org.slf4j.Logger |
log |
protected ManagedRepositoryAdmin |
managedRepositoryAdmin |
protected ProxyConnectorAdmin |
proxyConnectorAdmin |
protected RepositoryContentFactory |
repositoryContentFactory |
protected RepositorySessionFactory |
repositorySessionFactory
FIXME: this could be multiple implementations and needs to be configured.
|
protected RepositoryArchivaTaskScheduler |
repositoryTaskScheduler |
protected UserRepositories |
userRepositories |
Constructor and Description |
---|
AbstractRestService() |
Modifier and Type | Method and Description |
---|---|
protected List<Artifact> |
buildArtifacts(Collection<ArtifactMetadata> artifactMetadatas,
String repositoryId) |
protected Boolean |
doScanRepository(String repositoryId,
boolean fullScan) |
protected String |
getArtifactUrl(Artifact artifact) |
protected String |
getArtifactUrl(Artifact artifact,
String repositoryId) |
protected AuditInformation |
getAuditInformation() |
List<AuditListener> |
getAuditListeners() |
protected String |
getBaseUrl() |
protected <T> Map<String,T> |
getBeansOfType(org.springframework.context.ApplicationContext applicationContext,
Class<T> clazz) |
protected org.modelmapper.ModelMapper |
getModelMapper() |
protected List<String> |
getObservableRepos() |
protected String |
getPrincipal() |
void |
setAuditListeners(List<AuditListener> auditListeners) |
protected void |
triggerAuditEvent(String repositoryId,
String filePath,
String action) |
protected final org.slf4j.Logger log
@Inject private List<AuditListener> auditListeners
@Inject protected UserRepositories userRepositories
@Inject @Named(value="repositorySessionFactory") protected RepositorySessionFactory repositorySessionFactory
@Inject protected ArchivaAdministration archivaAdministration
@Inject protected ProxyConnectorAdmin proxyConnectorAdmin
@Inject protected ManagedRepositoryAdmin managedRepositoryAdmin
@Inject protected RepositoryContentFactory repositoryContentFactory
@Inject @Named(value="archivaTaskScheduler#repository") protected RepositoryArchivaTaskScheduler repositoryTaskScheduler
@Inject @Named(value="userConfiguration#default") protected org.apache.archiva.redback.configuration.UserConfiguration config
@Context protected javax.servlet.http.HttpServletRequest httpServletRequest
@Context protected javax.servlet.http.HttpServletResponse httpServletResponse
public AbstractRestService()
protected AuditInformation getAuditInformation()
public List<AuditListener> getAuditListeners()
public void setAuditListeners(List<AuditListener> auditListeners)
protected List<String> getObservableRepos()
protected String getPrincipal()
protected String getBaseUrl() throws RepositoryAdminException
RepositoryAdminException
protected <T> Map<String,T> getBeansOfType(org.springframework.context.ApplicationContext applicationContext, Class<T> clazz)
protected void triggerAuditEvent(String repositoryId, String filePath, String action)
protected String getArtifactUrl(Artifact artifact) throws ArchivaRestServiceException
artifact
- ArchivaRestServiceException
protected String getArtifactUrl(Artifact artifact, String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
protected List<Artifact> buildArtifacts(Collection<ArtifactMetadata> artifactMetadatas, String repositoryId) throws ArchivaRestServiceException
ArchivaRestServiceException
protected Boolean doScanRepository(String repositoryId, boolean fullScan)
protected org.modelmapper.ModelMapper getModelMapper()
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.