* @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.
log.debug( "Remote repo" );
return remoteRepositories.get( repoId );
}
- else if ( groupHandler.has( repoId ) )
+ else if ( groupHandler.hasRepository( repoId ) )
{
return groupHandler.get( repoId );
}
@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
@Override
public boolean hasRepositoryGroup( String groupId )
{
- return groupHandler.has( groupId );
+ return groupHandler.hasRepository( groupId );
}
protected void saveConfiguration( Configuration configuration ) throws IndeterminateConfigurationException, RegistryException
return;
}
final String id = repositoryGroup.getId( );
- if ( groupHandler.has( id ) )
+ if ( groupHandler.hasRepository( id ) )
{
rwLock.writeLock( ).lock( );
try
return;
}
final String id = repositoryGroup.getId( );
- if ( groupHandler.has( id ) )
+ if ( groupHandler.hasRepository( id ) )
{
rwLock.writeLock( ).lock( );
try