]> source.dussan.org Git - archiva.git/commitdiff
Renaming method of repository handler
authorMartin Stockhammer <martin_s@apache.org>
Sun, 11 Jul 2021 17:00:54 +0000 (19:00 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Sun, 11 Jul 2021 17:00:54 +0000 (19:00 +0200)
archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryHandler.java
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/base/ArchivaRepositoryRegistry.java
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/base/group/RepositoryGroupHandler.java
archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/base/managed/ManagedRepositoryHandler.java
archiva-modules/archiva-base/archiva-repository-layer/src/test/java/org/apache/archiva/repository/base/group/RepositoryGroupHandlerTest.java

index 058fd6543d227caf503e6d3f3585d322b75a304c..9ecc323c4e2aecc35b0e67237db0a1c60a9a5dc3 100644 (file)
@@ -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.
index 34a4f956c73276896158de795b68e00c9a8d960e..8eef5b2af8f373d92783cd812a6a24a740f689e7 100644 (file)
@@ -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
index 40365765cb553446f188eca4fc5938aceb15c37e..c97a59e1e275b0dc509640ef9d344bd422de7956 100644 (file)
@@ -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 );
     }
index 6cfb228ecad7c4c4ebcadfda56d37b20303ad98e..fee66b828d753ee4204568ab60ac0061975d7f6f 100644 (file)
@@ -221,7 +221,7 @@ implements RepositoryHandler<ManagedRepository, ManagedRepositoryConfiguration>
     }
 
     @Override
-    public boolean has( String id )
+    public boolean hasRepository( String id )
     {
         return false;
     }