@Service(value="dataValidatorService#rest") public class DefaultDataValidatorService extends Object implements DataValidatorService
Modifier and Type | Field and Description |
---|---|
private ManagedRepositoryAdmin |
managedRepositoryAdmin |
private NetworkProxyAdmin |
networkProxyAdmin |
private RemoteRepositoryAdmin |
remoteRepositoryAdmin |
private RepositoryGroupAdmin |
repositoryGroupAdmin |
Constructor and Description |
---|
DefaultDataValidatorService() |
Modifier and Type | Method and Description |
---|---|
private Boolean |
idExist(String id)
check if managedRepo, remoteRepo ou group exists with this id
|
Boolean |
managedRepositoryIdNotExists(String id) |
Boolean |
networkProxyIdNotExists(String id) |
Boolean |
remoteRepositoryIdNotExists(String id) |
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
@Inject private RemoteRepositoryAdmin remoteRepositoryAdmin
@Inject private NetworkProxyAdmin networkProxyAdmin
@Inject private RepositoryGroupAdmin repositoryGroupAdmin
public DefaultDataValidatorService()
public Boolean managedRepositoryIdNotExists(String id) throws ArchivaRestServiceException
managedRepositoryIdNotExists
in interface DataValidatorService
ArchivaRestServiceException
public Boolean remoteRepositoryIdNotExists(String id) throws ArchivaRestServiceException
remoteRepositoryIdNotExists
in interface DataValidatorService
ArchivaRestServiceException
public Boolean networkProxyIdNotExists(String id) throws ArchivaRestServiceException
networkProxyIdNotExists
in interface DataValidatorService
ArchivaRestServiceException
private Boolean idExist(String id) throws RepositoryAdminException
id
- RepositoryAdminException
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.