@Service public class DefaultRepositoryCommonValidator extends Object implements RepositoryCommonValidator
Modifier and Type | Field and Description |
---|---|
private ArchivaConfiguration |
archivaConfiguration |
private org.apache.archiva.redback.components.registry.Registry |
registry |
REPOSITORY_ID_VALID_EXPRESSION, REPOSITORY_NAME_VALID_EXPRESSION
Constructor and Description |
---|
DefaultRepositoryCommonValidator() |
Modifier and Type | Method and Description |
---|---|
void |
basicValidation(AbstractRepository abstractRepository,
boolean update) |
ArchivaConfiguration |
getArchivaConfiguration() |
org.apache.archiva.redback.components.registry.Registry |
getRegistry() |
String |
removeExpressions(String directory)
replace some interpolations ${appserver.base} with correct values
|
void |
setArchivaConfiguration(ArchivaConfiguration archivaConfiguration) |
void |
setRegistry(org.apache.archiva.redback.components.registry.Registry registry) |
void |
validateManagedRepository(ManagedRepository managedRepository)
validate cronExpression and location format
|
@Inject private ArchivaConfiguration archivaConfiguration
@Inject @Named(value="commons-configuration") private org.apache.archiva.redback.components.registry.Registry registry
public DefaultRepositoryCommonValidator()
public void basicValidation(AbstractRepository abstractRepository, boolean update) throws RepositoryAdminException
basicValidation
in interface RepositoryCommonValidator
abstractRepository
- update
- in update mode if yes already exists won't be checkRepositoryAdminException
public void validateManagedRepository(ManagedRepository managedRepository) throws RepositoryAdminException
validateManagedRepository
in interface RepositoryCommonValidator
managedRepository
- RepositoryAdminException
public String removeExpressions(String directory)
removeExpressions
in interface RepositoryCommonValidator
directory
- public ArchivaConfiguration getArchivaConfiguration()
public void setArchivaConfiguration(ArchivaConfiguration archivaConfiguration)
public org.apache.archiva.redback.components.registry.Registry getRegistry()
public void setRegistry(org.apache.archiva.redback.components.registry.Registry registry)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.