* @return the list of patterns.
*/
public List<String> getFileTypePatterns( String id )
{
Configuration config = archivaConfiguration.getConfiguration();
Predicate selectedFiletype = new FiletypeSelectionPredicate( id );
RepositoryScanningConfiguration repositoryScanningConfiguration = config.getRepositoryScanning();
if ( repositoryScanningConfiguration != null )
{
FileType filetype =
(FileType) CollectionUtils.find( config.getRepositoryScanning().getFileTypes(), selectedFiletype );