Package com.jitcaforwin.basic.api.exceptions

Examples of com.jitcaforwin.basic.api.exceptions.ObjectDeletedException


    try {
      ResultObject result = this.iTunesCom.callFunction("CreatePlaylistInSource", playlistName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
  }
View Full Code Here


    try {
      ResultObject result = this.iTunesCom.callFunction("CreateFolderInSource", folderName,
          source.getDispatchObject());
      return ITPlaylistImpl.newIITPlaylist(result.getDispatch());
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(source);
    } catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(source);
    }
  }
View Full Code Here

  public boolean canSetShuffle(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetShuffle", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

  public boolean canSetSongRepeat(IITPlaylist playlist) throws ObjectDeletedException {
    try {
      ResultObject result = this.iTunesCom.callFunction("CanSetRepeat", playlist.getDispatchObject());
      return result.getBoolean();
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(playlist);
    }
  }
View Full Code Here

      long trackId = this.getTrackID();
      long databaseId = this.getTrackDatabaseID();

      return new ITObjectIDs(sourceId, playlistId, trackId, databaseId);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }
  }
View Full Code Here

  public String getName() throws ObjectDeletedException {
    try {
      return this.iTunesCom.getPropertyAsString("Name");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }
  }
View Full Code Here

  public void setName(String name) throws ObjectDeletedException, ObjectLockedException {
    try {
      this.iTunesCom.setProperty("Name", name);
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }catch (ITUNES_E_OBJECTLOCKED e) {
      throw new ObjectLockedException(this);
    }
  }
View Full Code Here

  public long getIndex() throws ObjectDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("Index");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }
  }
View Full Code Here

  public long getSourceID() throws ObjectDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("SourceID");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }
  }
View Full Code Here

  public long getPlaylistID() throws ObjectDeletedException {
    try {
      return this.iTunesCom.getPropertyAsLong("PlaylistID");
    } catch (ITUNES_E_OBJECTDELETED e) {
      throw new ObjectDeletedException(this);
    }
  }
View Full Code Here

TOP

Related Classes of com.jitcaforwin.basic.api.exceptions.ObjectDeletedException

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.