public Collection < ? extends RepositoryResource > getAllResourcesWithDupes ( ) throws RepositoryBackendException { Collection < RepositoryResource > resources = cycleThroughRepositoriesWithDupes ( new RepositoryInvoker < RepositoryResource > ( ) { @ SuppressWarnings ( "unchecked" ) @ Override public Collection < RepositoryResource > performActionOnRepository ( RepositoryConnection connection ) throws RepositoryBackendException { return ( Collection < RepositoryResource > ) connection . getAllResourcesWithDupes ( ) ; } } ) ; return resources ; }
This method gets all the resources in this list of repositories this list may contain dupes if the same asset is found in multiple repositories .