Package org.socialmusicdiscovery.server.business.model.core

Examples of org.socialmusicdiscovery.server.business.model.core.Artist


    @Test
    public void testModelGlobalIdentity() throws Exception {
        loadTestData(getClass().getPackage().getName(), "The Bodyguard.xml");
        em.getTransaction().begin();
        try {
            Artist artist = artistRepository.findByName("Whitney Houston").iterator().next();
            Release release = releaseRepository.findByName("The Bodyguard (Original Soundtrack Album)").iterator().next();

            GlobalIdentityEntity identity = new GlobalIdentityEntity();
            identity.setSource(GlobalIdentity.SOURCE_MUSICBRAINZ);
            identity.setEntityId(artist.getId());
            identity.setUri("0307edfc-437c-4b48-8700-80680e66a228");
            identity.setLastUpdated(new Date());
            identity.setLastUpdatedBy("JUnit");
            globalIdentityRepository.create(identity);
View Full Code Here


        // Selection changes in artist results should trigger refresh of releases and works
        artistResultsTableView.getTableViewSelectionListeners().add(new TableViewSelectionListener.Adapter() {
            @Override
            public void selectedRangesChanged(TableView tableView, Sequence<Span> spanSequence) {
                Artist artist = (Artist) tableView.getSelectedRow();
                if(artist!=null) {
                    searchTextInput.setText("");
                    searchReleases(null, artist.getId(), null);
                    searchWorks(null, artist.getId(), null);
                }
            }
        });

        // Selection changes in work results should trigger refresh of artists and releases
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.model.core.Artist

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.