mirror of https://github.com/apache/archiva.git
Renaming method of repository handler
This commit is contained in:
parent
678d0c98ea
commit
f7e0eea716
|
@ -219,7 +219,7 @@ public interface RepositoryHandler<R extends Repository, C>
|
|||
* @param id the repository identifier
|
||||
* @return <code>true</code>, if it is registered, otherwise <code>false</code>
|
||||
*/
|
||||
boolean has( String id );
|
||||
boolean hasRepository( String id );
|
||||
|
||||
/**
|
||||
* Initializes the handler. This method must be called before using the repository handler.
|
||||
|
|
|
@ -565,7 +565,7 @@ public class ArchivaRepositoryRegistry implements ConfigurationListener, EventHa
|
|||
log.debug( "Remote repo" );
|
||||
return remoteRepositories.get( repoId );
|
||||
}
|
||||
else if ( groupHandler.has( repoId ) )
|
||||
else if ( groupHandler.hasRepository( repoId ) )
|
||||
{
|
||||
return groupHandler.get( repoId );
|
||||
}
|
||||
|
@ -639,7 +639,7 @@ public class ArchivaRepositoryRegistry implements ConfigurationListener, EventHa
|
|||
@Override
|
||||
public boolean hasRepository( String repoId )
|
||||
{
|
||||
return this.managedRepositories.containsKey( repoId ) || this.remoteRepositories.containsKey( repoId ) || groupHandler.has( repoId );
|
||||
return this.managedRepositories.containsKey( repoId ) || this.remoteRepositories.containsKey( repoId ) || groupHandler.hasRepository( repoId );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -657,7 +657,7 @@ public class ArchivaRepositoryRegistry implements ConfigurationListener, EventHa
|
|||
@Override
|
||||
public boolean hasRepositoryGroup( String groupId )
|
||||
{
|
||||
return groupHandler.has( groupId );
|
||||
return groupHandler.hasRepository( groupId );
|
||||
}
|
||||
|
||||
protected void saveConfiguration( Configuration configuration ) throws IndeterminateConfigurationException, RegistryException
|
||||
|
@ -1293,7 +1293,7 @@ public class ArchivaRepositoryRegistry implements ConfigurationListener, EventHa
|
|||
return;
|
||||
}
|
||||
final String id = repositoryGroup.getId( );
|
||||
if ( groupHandler.has( id ) )
|
||||
if ( groupHandler.hasRepository( id ) )
|
||||
{
|
||||
rwLock.writeLock( ).lock( );
|
||||
try
|
||||
|
@ -1315,7 +1315,7 @@ public class ArchivaRepositoryRegistry implements ConfigurationListener, EventHa
|
|||
return;
|
||||
}
|
||||
final String id = repositoryGroup.getId( );
|
||||
if ( groupHandler.has( id ) )
|
||||
if ( groupHandler.hasRepository( id ) )
|
||||
{
|
||||
rwLock.writeLock( ).lock( );
|
||||
try
|
||||
|
|
|
@ -606,7 +606,7 @@ public class RepositoryGroupHandler
|
|||
return this.validator.applyForUpdate( repository );
|
||||
}
|
||||
@Override
|
||||
public boolean has( String id )
|
||||
public boolean hasRepository( String id )
|
||||
{
|
||||
return repositoryGroups.containsKey( id );
|
||||
}
|
||||
|
|
|
@ -221,7 +221,7 @@ implements RepositoryHandler<ManagedRepository, ManagedRepositoryConfiguration>
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean has( String id )
|
||||
public boolean hasRepository( String id )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ class RepositoryGroupHandlerTest
|
|||
}
|
||||
|
||||
@Test
|
||||
void initialize( )
|
||||
void activateRepository( )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue