Changeset 4019


Ignore:
Timestamp:
11/14/13 15:18:45 (11 years ago)
Author:
keeloo
Message:

Added language filter parameter (array)

Location:
vlo/trunk/vlo_importer
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_importer/nbactions.xml

    r3203 r4019  
    3737            </properties>
    3838        </action>
     39        <action>
     40            <actionName>CUSTOM-build - skip tests</actionName>
     41            <displayName>build - skip tests</displayName>
     42            <goals>
     43                <goal>install</goal>
     44            </goals>
     45            <properties>
     46                <skipTests>true</skipTests>
     47            </properties>
     48        </action>
     49       
    3950           
    4051</actions>
  • vlo/trunk/vlo_importer/pom.xml

    r4004 r4019  
    1212    <packaging>jar</packaging>
    1313
    14     <version>2.17</version>
     14    <version>2.18</version>
    1515    <name>vlo_importer</name>
    1616    <description></description>
  • vlo/trunk/vlo_importer/src/main/bin/vlo_solr_importer.sh

    r4004 r4019  
    2424# take preference over a specification as a property.
    2525
    26 $JAVA -Xmx1024M -cp .:vlo_importer-2.17-importer.jar eu.clarin.cmdi.vlo.importer.MetadataImporter
     26$JAVA -Xmx1024M -cp .:vlo_importer-2.18-importer.jar eu.clarin.cmdi.vlo.importer.MetadataImporter
  • vlo/trunk/vlo_importer/src/main/java/eu/clarin/cmdi/vlo/config/VloConfig.java

    r3819 r4019  
    161161    private static boolean deleteAllFirst = false;
    162162   
     163    @Element
     164    private static int facetOverviewLength = 0;
     165   
    163166    @Element
    164167    private static int maxDocsInList = 0;
     
    190193    @Element
    191194    private static String vloHomeLink = "";
     195   
     196    @Element
     197    private static String helpUrl = "";
    192198   
    193199    @Element
     
    245251    private static String[] facetFields = {"", "", ""};
    246252   
     253    @ElementArray(entry = "languageFilter")
     254    private static String[] languageFilters = {"", "", ""};
     255   
    247256    @Element
    248257    private static String countryComponentUrl = "";
     
    260269    private static String FederatedContentSearchUrl = " ";
    261270   
    262     @Element
     271    @Element(required = false)
    263272    private static String reverseProxyPrefix = "";
    264273   
    265     @Element
    266     private static Boolean expectReverseProxy = false;
     274    @Element(required = false)
     275    private static String cqlEndpointFilter = "";
     276
     277    @Element(required = false)
     278    private static String cqlEndpointAlternative= "";
    267279
    268280    /**
     
    547559    public static void setVloHomeLink(String param) {
    548560        vloHomeLink = param;
     561    }
     562
     563    /**
     564     * Get the value of the helpUrl parameter<br><br>
     565     *
     566     * For a description of the parameter, refer to the general VLO
     567     * documentation.
     568     *
     569     * @return the value
     570     */
     571    public static String getHelpUrl() {
     572        return helpUrl;
     573    }
     574
     575    /**
     576     * Set the value of the helpUrl parameter<br><br>
     577     *
     578     * For a description of the parameter, refer to the general VLO
     579     * documentation.
     580     *
     581     * @param param the value
     582     */
     583    public static void setHelpUrl(String param) {
     584        helpUrl = param;
    549585    }
    550586
     
    771807    }
    772808   
    773 
    774809    /**
    775810     * Get the value of the FacetFields parameter<br><br>
     
    795830        facetFields = param;
    796831    }
     832   
     833    /**
     834     * Get the value of the languageFields parameter<br><br>
     835     *
     836     * For a description of the parameter, refer to the general VLO
     837     * documentation.
     838     *
     839     * @return the value
     840     */
     841    public static String[] getLanguageFilters() {
     842        return languageFilters;
     843    }
     844
     845    /**
     846     * Set the value of the languageFilters parameter<br><br>
     847     *
     848     * For a description of the parameter, refer to the general VLO
     849     * documentation.
     850     *
     851     * @param param the value, a list of language filters
     852     */
     853    public static void setLanguageFilters(String[] param) {
     854        languageFilters = param;
     855    }
     856   
     857    /**
     858     * Get the value of the getFacetOverviewLength parameter<br><br>
     859     *
     860     * For a description of the parameter, refer to the general VLO
     861     * documentation.
     862     *
     863     * @return the value
     864     */
     865    public static int getFacetOverviewLength() {
     866        return facetOverviewLength;
     867    }
     868
     869    /**
     870     * Set the value of the setFacetOverviewLength parameter<br><br>
     871     *
     872     * For a description of the parameter, refer to the general VLO
     873     * documentation.
     874     *
     875     * @param param the value
     876     */
     877    public void setFacetOverviewLength(Integer param) {
     878        facetOverviewLength = param;
     879    }
    797880
    798881    /**
     
    9171000   
    9181001    /**
    919      * Get the value of the expectReverseProxy parameter<br><br>
    920      *
    921      * For a description of the parameter, refer to the general VLO
    922      * documentation.
    923      *
    924      * @return the value
    925      */
    926     public static Boolean getExpectReverseProxy() {
    927         return expectReverseProxy;
    928     }
    929 
    930     /**
    931      * Set the value of the expectReverseProxy parameter<br><br>
    932      *
    933      * For a description of the parameter, refer to the general VLO
    934      * documentation.
    935      *
    936      * @param param the value
    937      */
    938     public static void setExpectReverseProxy(Boolean param) {
    939         expectReverseProxy = param;
    940     }
    941 
     1002     * Get the value of the cqlEndpointFilter parameter<br><br>
     1003     *
     1004     * For a description of the parameter, refer to the general VLO
     1005     * documentation.
     1006     *
     1007     * @return the value
     1008     */
     1009    public static String getCqlEndpointFilter() {
     1010        return cqlEndpointFilter;
     1011    }
     1012
     1013    /**
     1014     * Set the value of the cqlEndpointFilter parameter<br><br>
     1015     *
     1016     * For a description of the parameter, refer to the general VLO
     1017     * documentation.
     1018     *
     1019     * @param param the value
     1020     */
     1021    public static void setCqlEndpointFilter(String param) {
     1022        cqlEndpointFilter = param;
     1023    }
     1024   
     1025    /**
     1026     * Get the value of the cqlEndpointAlternative parameter<br><br>
     1027     *
     1028     * For a description of the parameter, refer to the general VLO
     1029     * documentation.
     1030     *
     1031     * @return the value
     1032     */
     1033    public static String getCqlEndpointAlternative() {
     1034        return cqlEndpointAlternative;
     1035    }
     1036
     1037    /**
     1038     * Set the value of the cqlEndpointAlternative parameter<br><br>
     1039     *
     1040     * For a description of the parameter, refer to the general VLO
     1041     * documentation.
     1042     *
     1043     * @param param the value
     1044     */
     1045    public static void setCqlEndpointAlternative(String param) {
     1046        cqlEndpointAlternative = param;
     1047    }
    9421048}
  • vlo/trunk/vlo_importer/src/main/resources/VloConfig.xml

    r3935 r4019  
    4444        </DataRoot>
    4545    </dataRoots>
    46    
     46    
    4747    <vloHomeLink>http://www.clarin.eu/vlo</vloHomeLink>
     48   
     49    <helpUrl>http://www.clarin.eu/vlo</helpUrl>
    4850   
    4951    <solrUrl>http://localhost:8084/vlo_solr/</solrUrl>
     
    7577    </facetFields>
    7678   
     79    <languageFilters length="3">
     80        <languageFilter>filterOne</languageFilter>
     81        <languageFilter>filterTwo</languageFilter>
     82        <languageFilter>filterThree</languageFilter>
     83    </languageFilters>
     84   
     85    <facetOverviewLength>30</facetOverviewLength>
     86   
    7787    <countryComponentUrl>http://catalog.clarin.eu/ds/ComponentRegistry/rest/registry/components/clarin.eu:cr1:c_1271859438104/xml</countryComponentUrl>
    7888   
     
    8797    <silToISO639CodesUrl>http://www.clarin.eu/cmd/xslt/sil_to_iso6393.xml</silToISO639CodesUrl>
    8898   
     99    <reverseProxyPrefix></reverseProxyPrefix>
     100   
    89101    <FederatedContentSearchUrl>http://weblicht.sfs.uni-tuebingen.de/Aggregator/</FederatedContentSearchUrl>
    90102   
    91     <expectReverseProxy>false</expectReverseProxy>
     103    <cqlEndpointFilter>http://cqlservlet.mpi.nl/</cqlEndpointFilter>
    92104   
    93     <reverseProxyPrefix>vlodev/</reverseProxyPrefix>
     105    <cqlEndpointAlternative>http://cqlservlet.mpi.nl/</cqlEndpointAlternative>
    94106</VloConfig>
  • vlo/trunk/vlo_importer/src/test/java/eu/clarin/cmdi/vlo/config/VloConfigTest.java

    r3935 r4019  
    180180    }
    181181   
    182         /**
     182    /**
    183183     * Test the getMaxFileSize method
    184184     */
     
    323323    public void testSetVloHomeLink() {
    324324       
    325         System.out.println("setSetVloHomeLink");
     325        System.out.println("setVloHomeLink");
    326326       
    327327        String param = "http://www.clarin.eu/vlo";
     
    330330
    331331        String result = VloConfig.getVloHomeLink();
     332       
     333        assertEquals(param, result);
     334    }
     335
     336    /**
     337     * Test the getHelpUrl method
     338     */
     339    @Test
     340    public void testGetHelpUrl() {
     341       
     342        System.out.println("getHelpUrl");
     343       
     344        String expResult = "http://www.clarin.eu/vlo";
     345        String result = VloConfig.getHelpUrl();
     346       
     347        assertEquals(expResult, result);
     348    }
     349
     350    /**
     351     * Test the setHelpUrl method
     352     */
     353    @Test
     354    public void testSetHelpUrl() {
     355       
     356        System.out.println("setHelpUrl");
     357       
     358        String param = "http://www.clarin.eu/vlo";
     359       
     360        VloConfig.setHelpUrl(param);
     361
     362        String result = VloConfig.getHelpUrl();
    332363       
    333364        assertEquals(param, result);
     
    789820        assertEquals(param, result);
    790821    }
    791 
     822   
     823    /**
     824     * Test the getReverseProxyPrefix method
     825     */
     826    @Test
     827    public void testReverseProxyPrefix() {
     828       
     829        System.out.println("getReverseProxyPrefix");
     830       
     831        String expResult = "";
     832        String result = VloConfig.getReverseProxyPrefix();
     833       
     834        assertEquals(expResult, result);
     835    }
     836
     837    /**
     838     * Test the setReverseProxyPrefix method
     839     */
     840    @Test
     841    public void testSetReverseProxyPrefix() {
     842       
     843        System.out.println("setReverseProxyPrefix");
     844       
     845        String param = "vlodev/";
     846       
     847        VloConfig.setReverseProxyPrefix(param);
     848
     849        String result = VloConfig.getReverseProxyPrefix();
     850       
     851        assertEquals(param, result);
     852    }
     853
     854    /**
     855     * Test the getCqlEndpointFilter method
     856     */
     857    @Test
     858    public void testGetCqlEndpointFilter() {
     859       
     860        System.out.println("getCqlEndpointFilter");
     861       
     862        String expResult = "http://cqlservlet.mpi.nl/";
     863        String result = VloConfig.getCqlEndpointFilter();
     864       
     865        assertEquals(expResult, result);
     866    }
     867
     868    /**
     869     * Test the setCqlEndpointFilter method
     870     */
     871    @Test
     872    public void testSetCqlEndpointFilter() {
     873       
     874        System.out.println("setCqlEndpointFilter");
     875       
     876        String param = "http://cqlservlet.mpi.nl/";
     877       
     878        VloConfig.setCqlEndpointFilter(param);
     879
     880        String result = VloConfig.getCqlEndpointFilter();
     881       
     882        assertEquals(param, result);
     883    }
     884
     885    /**
     886     * Test the getCqlEndpointAlternative method
     887     */
     888    @Test
     889    public void testGetCqlEndpointAlternative() {
     890       
     891        System.out.println("getCqlEndpointAlternative");
     892       
     893        String expResult = "http://cqlservlet.mpi.nl/";
     894        String result = VloConfig.getCqlEndpointAlternative();
     895       
     896        assertEquals(expResult, result);
     897    }
     898
     899    /**
     900     * Test the setCqlEndpointAlternative method
     901     */
     902    @Test
     903    public void testSetCqlEndpointAlternative() {
     904       
     905        System.out.println("setCqlEndpointAlternative");
     906       
     907        String param = "http://cqlservlet.mpi.nl/";
     908       
     909        VloConfig.setCqlEndpointAlternative(param);
     910
     911        String result = VloConfig.getCqlEndpointAlternative();
     912       
     913        assertEquals(param, result);
     914    }
    792915}
Note: See TracChangeset for help on using the changeset viewer.