@Service(value="repositoryGroupAdmin#default") public class DefaultRepositoryGroupAdmin extends AbstractRepositoryAdmin implements RepositoryGroupAdmin
Modifier and Type | Field and Description |
---|---|
private File |
groupsDirectory |
private org.slf4j.Logger |
log |
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private MergedRemoteIndexesScheduler |
mergedRemoteIndexesScheduler |
private static Pattern |
REPO_GROUP_ID_PATTERN |
Constructor and Description |
---|
DefaultRepositoryGroupAdmin() |
getArchivaConfiguration, getAuditListeners, getModelMapper, getRegistry, getRepositoryCommonValidator, saveConfiguration, setArchivaConfiguration, setAuditListeners, setRegistry, setRepositoryCommonValidator, triggerAuditEvent
private org.slf4j.Logger log
private static final Pattern REPO_GROUP_ID_PATTERN
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
@Inject private MergedRemoteIndexesScheduler mergedRemoteIndexesScheduler
private File groupsDirectory
public DefaultRepositoryGroupAdmin()
@PostConstruct public void initialize()
public File getMergedIndexDirectory(String repositoryGroupId)
getMergedIndexDirectory
in interface RepositoryGroupAdmin
public List<RepositoryGroup> getRepositoriesGroups() throws RepositoryAdminException
getRepositoriesGroups
in interface RepositoryGroupAdmin
RepositoryAdminException
public RepositoryGroup getRepositoryGroup(String repositoryGroupId) throws RepositoryAdminException
getRepositoryGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
public Boolean addRepositoryGroup(RepositoryGroup repositoryGroup, AuditInformation auditInformation) throws RepositoryAdminException
addRepositoryGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
public Boolean deleteRepositoryGroup(String repositoryGroupId, AuditInformation auditInformation) throws RepositoryAdminException
deleteRepositoryGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
public Boolean updateRepositoryGroup(RepositoryGroup repositoryGroup, AuditInformation auditInformation) throws RepositoryAdminException
updateRepositoryGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
private Boolean updateRepositoryGroup(RepositoryGroup repositoryGroup, AuditInformation auditInformation, boolean triggerAuditEvent) throws RepositoryAdminException
RepositoryAdminException
public Boolean addRepositoryToGroup(String repositoryGroupId, String repositoryId, AuditInformation auditInformation) throws RepositoryAdminException
addRepositoryToGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
public Boolean deleteRepositoryFromGroup(String repositoryGroupId, String repositoryId, AuditInformation auditInformation) throws RepositoryAdminException
deleteRepositoryFromGroup
in interface RepositoryGroupAdmin
RepositoryAdminException
public Map<String,RepositoryGroup> getRepositoryGroupsAsMap() throws RepositoryAdminException
getRepositoryGroupsAsMap
in interface RepositoryGroupAdmin
RepositoryAdminException
public Map<String,List<String>> getGroupToRepositoryMap() throws RepositoryAdminException
getGroupToRepositoryMap
in interface RepositoryGroupAdmin
RepositoryAdminException
public Map<String,List<String>> getRepositoryToGroupMap() throws RepositoryAdminException
getRepositoryToGroupMap
in interface RepositoryGroupAdmin
RepositoryAdminException
public Boolean validateRepositoryGroup(RepositoryGroup repositoryGroup, boolean updateMode) throws RepositoryAdminException
RepositoryAdminException
private void validateManagedRepositoriesExists(List<String> managedRepositoriesIds) throws RepositoryAdminException
RepositoryAdminException
public ManagedRepositoryAdmin getManagedRepositoryAdmin()
public void setManagedRepositoryAdmin(ManagedRepositoryAdmin managedRepositoryAdmin)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.