public static CorpusConfigMap getCorpusConfigs ( ) { CorpusConfigMap corpusConfigurations = null ; try { corpusConfigurations = Helper . getAnnisWebResource ( ) . path ( "query" ) . path ( "corpora" ) . path ( "config" ) . get ( CorpusConfigMap . class ) ; } catch ( UniformInterfaceException | ClientHandlerException ex ) { UI . getCurrent ( ) . access ( new Runnable ( ) { @ Override public void run ( ) { if ( ! AnnisBaseUI . handleCommonError ( ex , "get corpus configurations" ) ) { new Notification ( ERROR_MESSAGE_CORPUS_PROPS_HEADER , ERROR_MESSAGE_CORPUS_PROPS , Notification . Type . WARNING_MESSAGE , true ) . show ( Page . getCurrent ( ) ) ; } } } ) ; } if ( corpusConfigurations == null ) { corpusConfigurations = new CorpusConfigMap ( ) ; } corpusConfigurations . put ( DEFAULT_CONFIG , getDefaultCorpusConfig ( ) ) ; return corpusConfigurations ; }
Loads the all available corpus configurations .