Package org.socialmusicdiscovery.server.business.logic

Examples of org.socialmusicdiscovery.server.business.logic.SearchRelationPostProcessor


    RecordingRepository recordingRepository;

    @BeforeMethod
    public void loadData() {
        loadTestData("org.socialmusicdiscovery.server.business.model", "The Bodyguard.xml");
        SearchRelationPostProcessor searchRelationPostProcessor = new SearchRelationPostProcessor();
        try {
      searchRelationPostProcessor.init(null);
    } catch (InitializationFailedException e) {
      // TODO Better exception handling
      //      This was added after the throw clause in ProcessingModule interface was added)
      e.printStackTrace();
    }
        searchRelationPostProcessor.execute(new ProcessingStatusCallback() {
            public void progress(String module, String currentDescription, Long currentNo, Long totalNo) {
            }

            public void failed(String module, String error) {
            }
View Full Code Here


        String database = InjectHelper.instanceWithName(String.class, "org.socialmusicdiscovery.server.database");

        String forcedUpdateOfSearchRelations = System.getProperty("org.socialmusicdiscovery.server.searchrelations");
        if ((database != null && (database.endsWith("-test"))) || (forcedUpdateOfSearchRelations != null && forcedUpdateOfSearchRelations.equalsIgnoreCase("true"))) {
            System.out.println("Starting to update search relations...");
            SearchRelationPostProcessor searchRelationPostProcessor = new SearchRelationPostProcessor();
            try {
        searchRelationPostProcessor.init(null);
      } catch (InitializationFailedException e) {
        // // searchRelationPostProcessor initialization doesn't throw initialization failed
        e.printStackTrace();
      }
            searchRelationPostProcessor.execute(new ProcessingStatusCallback() {
                public void progress(String module, String currentDescription, Long currentNo, Long totalNo) {
                    System.out.println(currentNo + " of " + totalNo + ": " + currentDescription);
                }

                public void failed(String module, String error) {
View Full Code Here

    /**
     * Update search relations, this method currently needs to be called if you perform some data modifications and later on want to use
     * search and browse methods
     */
    protected void updateSearchRelations() {
        SearchRelationPostProcessor searchRelationPostProcessor = new SearchRelationPostProcessor();
        try {
      searchRelationPostProcessor.init(null);
    } catch (InitializationFailedException e) {
      // searchRelationPostProcessor initialization doesn't throw initialization failed
      e.printStackTrace();
    }
        searchRelationPostProcessor.execute(new ProcessingStatusCallback() {
            public void progress(String module, String currentDescription, Long currentNo, Long totalNo) {
            }

            public void failed(String module, String error) {
            }
View Full Code Here

            liquibase.update("");

            // Ensure that we don't delete the database contents
            System.setProperty("hibernate.hbm2ddl.auto", "validate");
            System.out.println("Starting to update search relations...");
            SearchRelationPostProcessor searchRelationPostProcessor = new SearchRelationPostProcessor();
            searchRelationPostProcessor.init(null);
            searchRelationPostProcessor.execute(new ProcessingStatusCallback() {
                public void progress(String module, String currentDescription, Long currentNo, Long totalNo) {
                    System.out.println(currentNo + " of " + totalNo + ": " + currentDescription);
                }

                public void failed(String module, String error) {
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.logic.SearchRelationPostProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.