Package com.jitcaforwin.basic.api

Examples of com.jitcaforwin.basic.api.IITOperationStatus


  /**
   * {@inheritDoc}
   */
  public Track addFile(File file) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFile(file);
      addOperationStatus.waitForCompletion();
      TrackCollection tracks = new TrackCollection(this, addOperationStatus.getTracks());
      Track newTrack = tracks.getFirst();
      this.addTrack(newTrack);
      return newTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public TrackCollection addFiles(File files[]) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFiles(files);
      addOperationStatus.waitForCompletion();
      TrackCollection newTracks = new TrackCollection(this, addOperationStatus.getTracks());
      this.addTracks(newTracks);
      return newTracks;
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    } catch (PlaylistDeletedException e) {
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public Track addFile(File file) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFile(file);
      addOperationStatus.waitForCompletion();
      TrackCollectionImpl tracks = new TrackCollectionImpl(this, addOperationStatus.getTracks());
      Track newTrack = tracks.getFirst();
      this.addTrack(newTrack);
      return newTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public TrackCollection addFiles(File files[]) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFiles(files);
      addOperationStatus.waitForCompletion();
      TrackCollectionImpl newTracks = new TrackCollectionImpl(this, addOperationStatus.getTracks());
      this.addTracks(newTracks);
      return newTracks;
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    } catch (PlaylistDeletedException e) {
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public Track addFile(File file) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFile(file);
      addOperationStatus.waitForCompletion();
      TrackCollectionImpl tracks = new TrackCollectionImpl(this, addOperationStatus.getTracks());
      Track newTrack = tracks.getFirst();
      this.addTrack(newTrack);
      return newTrack;
    } catch (PlaylistDeletedException e) {
      throw new ITObjectDeletedError(this);
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public TrackCollection addFiles(File files[]) throws JitcaException {
    try {
      IITOperationStatus addOperationStatus = this.itLibrary.addFiles(files);
      addOperationStatus.waitForCompletion();
      TrackCollectionImpl newTracks = new TrackCollectionImpl(this, addOperationStatus.getTracks());
      this.addTracks(newTracks);
      return newTracks;
    } catch (PlaylistReadOnlyException e) {
      throw new UserLibraryReadOnly(this);
    } catch (PlaylistDeletedException e) {
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.IITOperationStatus

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.