Package com.jitcaforwin.extended.exceptions

Examples of com.jitcaforwin.extended.exceptions.ITObjectDeletedError


   */
  private boolean wasTrackPlayed(IITTrack itTrack) {
    try {
      return itTrack.getPlayedDate() != null;
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(null);
    }
  }
View Full Code Here


    if (since == null)
      return this.wasTrackPlayed(itTrack);
    try {
      return (itTrack.getPlayedDate().compareTo(since) >= 0);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(null);
    }
  }
View Full Code Here

      if (track == null) {
        track = this.createTrack(itTrack);
      }
      return track;
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    }

  }
View Full Code Here

   */
  protected void addTrack(Track track) {
    try {
      this.tracks.put(track.getITTrack().getTrackDatabaseID(), track);
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(track);
    }
  }
View Full Code Here

   */
  protected static IITPlaylist getSourceMainPlaylist(IITSource itSource) {
    try {
      return itSource.getPlaylists().itemByName(itSource.getName());
    } catch (SourceDeletedException e) {
      throw new ITObjectDeletedError(null);
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(null);
    }
  }
View Full Code Here

  public void setTitle(String title) throws TrackReadOnly {
    try {
      this.title = title;
      this.itTrack.setName(title);
    } catch (ObjectDeletedException e) {
      throw new ITObjectDeletedError(this);
    } catch (ObjectLockedException e) {
      throw new TrackReadOnly(this);
    }
  }
View Full Code Here

      this.album = album;
      this.itTrack.setAlbum(album.getName());
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

      this.artist = artist;
      this.itTrack.setAlbum(artist.getName());
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

      this.composer = composer;
      this.itTrack.setComposer(composer.getName());
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
View Full Code Here

    try {
      this.itTrack.setGenre(genre.getName());
    } catch (TrackLockedException e) {
      throw new TrackReadOnly(this);
    } catch (TrackDeletedException e) {
      throw new ITObjectDeletedError(this);
    }
  }
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.