@Service(value="managedRepositoryAdmin#default") public class DefaultManagedRepositoryAdmin extends AbstractRepositoryAdmin implements ManagedRepositoryAdmin
Modifier and Type | Field and Description |
---|---|
protected org.apache.archiva.redback.role.RoleManager |
roleManager |
static String |
STAGE_REPO_ID_END |
REPOSITORY_LOCATION_VALID_EXPRESSION
Constructor and Description |
---|
DefaultManagedRepositoryAdmin() |
convertUriToString, getArchivaConfiguration, getAuditListeners, getModelMapper, getRegistry, getRepositoryCommonValidator, saveConfiguration, setArchivaConfiguration, setAuditListeners, setBaseRepoAttributes, setBaseRepoAttributes, setRegistry, setRepositoryCommonValidator, triggerAuditEvent
public static final String STAGE_REPO_ID_END
@Inject protected org.apache.archiva.redback.role.RoleManager roleManager
public DefaultManagedRepositoryAdmin()
@PostConstruct public void initialize() throws RepositoryAdminException, org.apache.archiva.redback.role.RoleManagerException
RepositoryAdminException
org.apache.archiva.redback.role.RoleManagerException
@PreDestroy public void shutdown() throws RepositoryAdminException
RepositoryAdminException
public List<ManagedRepository> getManagedRepositories() throws RepositoryAdminException
getManagedRepositories
in interface ManagedRepositoryAdmin
RepositoryAdminException
public Map<String,ManagedRepository> getManagedRepositoriesAsMap() throws RepositoryAdminException
getManagedRepositoriesAsMap
in interface ManagedRepositoryAdmin
RepositoryAdminException
public ManagedRepository getManagedRepository(String repositoryId) throws RepositoryAdminException
getManagedRepository
in interface ManagedRepositoryAdmin
RepositoryAdminException
public Boolean addManagedRepository(ManagedRepository managedRepository, boolean needStageRepo, AuditInformation auditInformation) throws RepositoryAdminException
addManagedRepository
in interface ManagedRepositoryAdmin
RepositoryAdminException
public Boolean deleteManagedRepository(String repositoryId, AuditInformation auditInformation, boolean deleteContent) throws RepositoryAdminException
deleteManagedRepository
in interface ManagedRepositoryAdmin
RepositoryAdminException
public Boolean updateManagedRepository(ManagedRepository managedRepository, boolean needStageRepo, AuditInformation auditInformation, boolean resetStats) throws RepositoryAdminException
updateManagedRepository
in interface ManagedRepositoryAdmin
RepositoryAdminException
protected void addRepository(ManagedRepositoryConfiguration repository, Configuration configuration) throws RepositoryAdminException, IOException
RepositoryAdminException
IOException
public Boolean scanRepository(String repositoryId, boolean fullScan)
protected void removeRepositoryRoles(ManagedRepositoryConfiguration existingRepository) throws org.apache.archiva.redback.role.RoleManagerException
org.apache.archiva.redback.role.RoleManagerException
public org.apache.archiva.redback.role.RoleManager getRoleManager()
public void setRoleManager(org.apache.archiva.redback.role.RoleManager roleManager)
public RepositoryStatisticsManager getRepositoryStatisticsManager()
public void setRepositoryStatisticsManager(RepositoryStatisticsManager repositoryStatisticsManager)
public RepositorySessionFactory getRepositorySessionFactory()
public void setRepositorySessionFactory(RepositorySessionFactory repositorySessionFactory)
public RepositoryArchivaTaskScheduler getRepositoryTaskScheduler()
public void setRepositoryTaskScheduler(RepositoryArchivaTaskScheduler repositoryTaskScheduler)
public RepositoryRegistry getRepositoryRegistry()
public void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.