Package com.jitcaforwin.extended.exceptions

Examples of com.jitcaforwin.extended.exceptions.ITObjectDeletedError


  private IITTrackCollection loadTracksOfArtist(String artist) {
    try {
      JLogger.debug(SearchService.class, "loadTracksOfArtist() for \"" + artist + "\"");
      return this.itPlaylist.search(artist, ITPlaylistSearchField.Artists());
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this.source);
    }
  }
View Full Code Here


  private IITTrackCollection loadTracksOfComposer(String composer) {
    try {
      JLogger.debug(SearchService.class, "loadTracksOfComposer() for \"" + composer + "\"");
      return this.itPlaylist.search(composer, ITPlaylistSearchField.Composers());
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this.source);
    }

  }
View Full Code Here

  private IITTrackCollection loadTracksOfAlbum(String album) {
    try {
      JLogger.debug(SearchService.class, "loadTracksOfAlbum() for \"" + album + "\"");
      return this.itPlaylist.search(album, ITPlaylistSearchField.Albums());
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this.source);
    }
  }
View Full Code Here

      TrackCollection tracks = new TrackCollection(this, addOperationStatus.getTracks());
      Track newTrack = tracks.getFirst();
      this.addTrack(newTrack);
      return newTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    }
   
  }
View Full Code Here

    try {
      for (Track track : tracks) {
        this.tracks.put(track.getITTrack().getTrackDatabaseID(), track);
      }
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

      this.addTracks(newTracks);
      return newTracks;
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

      IITURLTrack itURLTrack = this.itLibrary.addURL(url);
      URLTrackImpl urlTrack = URLTrackImpl.create(this, itURLTrack);
      this.addTrack(urlTrack);
      return urlTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    }

  }
View Full Code Here

      } else if (searchResult.getCount() == 0) {
        return null; // no track found
      }
      return new TrackCollection(this, searchResult).getFirst();
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

  public TrackCollection getTracks(String name) {
    try {
      IITTrackCollection searchResult = this.itLibrary.search(name, ITPlaylistSearchField.SongNames());
      return new TrackCollection(this, searchResult);
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

  public void deletePlaylist(PlaylistImpl playlist) {
    try {
      playlistFactory.deletePlaylist(playlist);
    } catch (JitcaException e) {
      throw new ITObjectDeletedError(playlist);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.extended.exceptions.ITObjectDeletedError

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.