ITunes U Java API -- Saving Tracks before Deleting a Course

I've successfully built a Blackboard Building Block that allows me to create iTunes U course pages and sub welcome pages. Now I want to look into deleting them with the ability to re-create them without losing the tracks.
Creating the course isn't really an issue. I'm wondering how would I go about saving the tracks that I get back from the ITunesUConnection.getTracks() method.
The Track Class allows me to get and set the attributes of a track, but I'm not sure about what the getDownloadUrl() method does and how long these urls last.
Would moving the entire course page to a hidden, admin-only, sub welcome page that mimics the layout of the current iTunes U site be the best way to implement this kind of control?

I don't have any answers. I deleted all the itunes U stuff off my PC, because I couldn't stand how it put things in random places and there seems to be no way to organize it. Spanish courses were going into my video and music sections and not staying put in the itunes U section. I think it's becuase each provider does their own design and tag things differently:
http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/DesigningYouriTunesU Site/chapter10_section2.html

Similar Messages

  • Java api change tracking

    Hi Experts!
    I am using java api in webdynpo application.There is a requirement to to track changes at field\table level.
    I want to know that are there any api's to track changes at field level?
    Thnaks,
    Ravi Shankar puppala

    Hi Ravi,
    Refer /people/balas.gorla/blog/2006/09/08/change-tracking-in-mdm
    Re: MDM Change tracker iview: table dropdown is empty
    Hope it helps.
    Thanks,
    Minaz

  • ICloud on my phone, and I want to delete his iCloud account, without losing all my data, including, my apps, contacts, calendar events, music. If I delete his account, will I still have everything saved from before?

    My nephew set up his own iCloud account on my phone, and I want to delete his iCloud account, without losing all my data, including, my apps, contacts, calendar events, music. If I delete his account, will I still have everything saved from before deleting his account?? I don't want to lose a single thing...I'm afraid to delete his iCloud account, and risk losing EVERYTHING I have on my phone. Is there another way to save everything without the risk of losing everything from deleting his iCloud account?

    Deleting the iCloud account from your phone only deletes the account and any data you are syncing with the account (that is, any data that is set to On in Settings>iCloud).  However, when you delete the account you are prompted about what to do with the iCloud data.  If you want to keep it on your phone, be sure to choose Keep on My iPhone when prompted.  Also, be sure to save any photo stream photos that are not in your camera roll or backed up somewhere else before deleting the account.  To do this, open the photo stream album, tap Edit, tap all the photos you want to save, tap Share, then tap Save to Camera Roll.
    Deleting the account will not touch any other data on your phone (music, apps, etc.).

  • Delete and attach library without forms builder using java api

    Hi all,
    I am not at all familiar with JAVA. Appreciate if somebody can help me out.
    We have a lot of forms and we are moving them to aix server. To standardize we have renamed all the files as FILENAME.ext i.e filename is upper case and extension is lower. After doing this we get errors while compiling the fmbs as the filename has been modified after it was attached in the forms.
    I need the java api and the procedure to run the api to delete the existing attached libraries and attach the renamed libraries.
    Appreciate your help in this regards.
    Regards,

    hello,
    There are severail ways for you to solve this problem.
    1) Use the jdapi utility you can find at Francois degrelle's javabean depot. Quite easy to use and should solve your problem. You can find it here:
    http://forms.pjc.bean.over-blog.com/article-13596554.html
    2) Use the following two java methods as the basis for your java converter.
    <blockquote>
    private boolean findJdapiObject(JdapiObject object,String objName){
         boolean matchFlag=false;
         // get Iterator with all ownedObjects
    JdapiIterator ownedObjects = object.getOwnedObjects();
    // loop all ownedObjects
    while (ownedObjects.hasNext()) {
    JdapiObject ownedObject = (JdapiObject)ownedObjects.next();
    if (ownedObject.getName().equalsIgnoreCase(objName)){
         matchFlag=true;
         message_verbose = "Librairie PLL est déjà attachée !! " ;
    this.addOutputLine(message_verbose,0);
         return matchFlag;
    // check child objects of this child using recursion
    findJdapiObject(ownedObject, objName);
    return matchFlag;
    private void addJdapiObject(JdapiModule object,String objName){
         boolean matchFlag=false;
         //check if PLL exists
         matchFlag=findJdapiObject((JdapiObject)object, objName);
         if (!matchFlag){
              //add PLL
              numOcc++;
              AttachedLibrary newLib =
    new AttachedLibrary((FormModule)object,objName.toLowerCase());
    </blockquote>
    You need to check that your object does not exist before adding it. You can also modify the addJdapiObject method to remove objects.
    Hafed

  • HT1399 How can I stop my MacBook's iTunes from asking if I want to delete tracks each time I press to play one?

    How can I stop my MacBook's iTunes from asking if I want to delete tracks each time I press to play one? Is it a bug from iTunes's version 11.0.5?
    Since I dowloaded and installed iTunes' version 11.0.5 on my MacBook, it is behaving strangely:
    - displaying an alert message asing if I want to delete tracks each time I press to play one
    - not playing tracks in the order they're displayed in my library, sometimes jumping from one playlist to the other
    I did check my settings and preferences for playing tracks and tried changing some parameters in them, however it still doesn't help.
    It seems to be a bug in iTunes' version 11.0.5 — if you had a similar experience and found how to solve this discomfort, thanks for contacting me.

    Oui, je parle français. En fait, il semble qu'Apple ait résolu le problème auquel j'étais confronté car ce problème a disparu suite à la mise à jour logicielle d'après (désormais sous Mavericks).
    (It seems Apple solved the problem I was facing since this problem disappeared after I updated my software to/under Mavericks).

  • I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the "saved"  ones before I write the new one. What to do to finally/definitely delete the save

    I copied message to SMS field and sent. After that the message still exist all the time in the SMS field. When I open the application I must always first delete the “saved”  ones before I write the new one. What to do to finally/definitely delete the save message?

    sorry it's ios6

  • Deleting DataLocationGroups (with MDM Data Manager or MDM Java API)

    I´ve a lot of DataLocationGroups which are results of tests (importing pictures into the images tables but not stored as BLOB). I can´t see that the underlying table is exposed within MDM Data Manager. So i tried to delete the useless nodes with the DeleteGroup command.
    However this seems not to be supported by the API
    com.sap.mdm.commands.CommandException: Deleting of data location groups is currently unsupported
         at com.sap.mdm.group.commands.DeleteGroupCommand.execute(DeleteGroupCommand.java:91)
    I´m using the new Java API with MDM 5.5SP6.
    No chance to remove the nodes?

    Thanks for your answer. I would possibly open a service call to check if there is a hotfix available. Maybe you have some idea how i can check if the a Location is already existent? From experiments when importing with the MDM Data manager, it seems that a path is represented by a tree of HierLocationGroupNodes.
    For example: I´ve imported from
    cde271480MMPPpictures.jpg using the Data Manager. When using the RetrieveGroupTree Command, i can see that there are two nodes named cde271480 (Id: GN39) with child node named MMPP (Id: GN89).
    Maybe i now want to use the API to import a picture from
    cde271480     estlocation into the images table. To get a locationID usable for the setDataLocationId i had to compare the pathname of the picture with elements of the GroupTree from the root. If one element of the path is not existent in the tree, i have to create this new element and connect it to the parent. And i can then use the ID of the Leaf node for the DataLocationId. Is this correct?

  • Only one track is downloaded per album on itunes on my iphone 5. Every time I download a new track it deletes the previously downloaded track on that album. Why is this happening and how can I switch it off?

    Only one track is downloaded per album on itunes on my iphone 5. Every time I download a new track it deletes the previously downloaded track on that album. Why is this happening and how can I switch it off?

    Most YouTube content requires the Flash plugin. Sometimes it's necessary to uninstall then reinstall that plugin.
    Uninstall the Flash plugin then reinstall new >  Troubleshoot Flash Player | Mac OS
    Very important to uninstall the currently installed plugin first.
    Now launch Safari and try a video.
    If you have the ClickToFlash extension installed, that can prevent Flash based video from streaming. It can also be installed as a plugin in /Library/Internet-Plug-Ins.
    And check to see if Safari is running in 32 bit mode. Right or control click the Safari icon in your Applications folder then click Get Info. If the box next to:  Open in 32 bit mode  is selected, deselect, quit then relaunch Safari.
    You may also need to delete the cache associated with Safari .
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy/paste:   ~/Library/Caches/com.apple.Safari
    Click Go the move the Cache.db file from the com.apple.Safari folder to the Trash.
    Quit and relaunch Safari. Try a video.

  • TS1386 Ok I still can't open iTunes, when I do all I get is a black square on half of my screen. I want to know if I delete my iTunes after I have saved the music can I download iTunes again and reinstall my muisc. Many Thanks

    Having troble to open my iTunes, all I get on my screen is half of it is black. I want to know if I delete iTunes after i have saved my playlits can I download iTunes agin and add my playlist, Thanks for your help, Upthefloor24

    Well you first download the latest version of iTunes, after installing it restart the computer once and then try opening it!
    Does this fix your issue?

  • I unknownly deleted photos from my iphone 4,version 4.3.5,i dont have icloud and did not connected to itunes before deleting the pics,how can i recover those photos?

    i unknownly deleted photos from my iphone 4,version 4.3.5,i dont have icloud and did not connected to itunes before deleting the pics,how can i recover those photos?

    you cannot recover those photos if you didn't perform a backup of the iPhone 4

  • Use MDM java Api for saving an image to mdm image table

    Hi experts
    I want to save an image from web dynpro java to MDM image table using java Api's
    Can anyone provide a code snippet .
    I am using MDM 7.1 sp6.
    Thanks and regards
    Suresh

    Hello Suresh
    Unfortunatly, this is no possible, i mean, to load images to mdm repository through JAVA API.
    Sure you can do it directly to database ( but for that you need to do saome investigation)
    Here you can found JAVA API classes for MDM:
    http://help.sap.com/javadocs/MDM71/
    Next two classes are working with BLOBs (pdf, images, video, etc.) in MDM repository:
    com.sap.mdm.blobs
    com.sap.mdm.blobs.commands
    Regards
    Kanstantsin chernichenka
    Edited by: kanstantsin_ch on Sep 8, 2011 2:36 PM

  • Invalid Argument Exception on Java API's DB Close

    When closing the database via the Java API's close method, I am getting an invalid argument exception... how can this be fixed... subsequent access to the DB causes the JVM to crash??
    ERROR: An exception has occurred: java.lang.IllegalArgumentException: Invalid argument
    java.lang.IllegalArgumentException: Invalid argument
    at com.sleepycat.db.internal.db_javaJNI.DbEnv_close0(Native Method)
    at com.sleepycat.db.internal.DbEnv.close0(DbEnv.java:217)
    at com.sleepycat.db.internal.DbEnv.close(DbEnv.java:77)
    at com.sleepycat.db.Environment.close(Environment.java:39)
    at com.sleepycat.dbxml.XmlManager.closeInternal(XmlManager.java:301)
    at com.sleepycat.dbxml.XmlManager.delete(XmlManager.java:33)
    at com.sleepycat.dbxml.XmlManager.close(XmlManager.java:310)
    at com.iconnect.data.adapters.BerkleyXMLDBImpl.insert(BerkleyXMLDBImpl.java:827)
    at com.iconnect.data.DataManagerFactory.insert(DataManagerFactory.java:182)
    at Xindice2Berkley.main(Xindice2Berkley.java:99)

    I had the same problem. I could fix it by carefully calling the delete() function on all those DBXML Xml..xyz objects that you create when you perform queries etc. It seems that those Java objects have some 'shadow' object in the underlying DLL and by calling delete() you free resources that remain otherwise assigned (maybe somebody with a C++ background who programmed this stuff?). Call delete() before the Java object gets out of scope. For instance:
    results = mgr.query(collection,context,null);
    XmlValue value;
    try {
    while ((value = results.next()) != null) {
    XmlValue c = value.getFirstChild();
    String ref = c.getNodeValue();
    c.delete(); c = null;
    value.delete(); value = null;
    catch (Exception e) {
    finally {
    if (results != null) {
    results.delete();
    results = null;
    Once i did this on all possible dbxml objects i used in my code, the java.lang.IllegalArgumentException: Invalid argument disappeared.
    Message was edited by:
    user562374

  • There is no warning before deleting a playlist or folder?

    Hello all,
    I wanted to ask if there's a way to get a warning before deleting a playlist or folder?
    I've organised my music in folders with playlist but hitting the return button will remove a complete folder at once and I don't know how to recover it. The songs are still in the lib but how can I recollect my lost playlists when I have a few 1000 songs in the lib?
    Or is there a way to backup the playlists so I can recover them that way?
    Thank you

    You likely selected, at one time, the "Do not ask again" box when you deleted a playlist. If something's already been deleted, do not expect to get it back. If you want that option to return again, you may be able to deleted you iTunes plist. With iTunes closed, go to your home folder > library > preferences and delete a file called come.apple.itunes.plist. Restart. Try and open iTunes and remove a playlist (create a blank one if there's nothing you can safely delete).
    As for saving playlists and such:
    http://docs.info.apple.com/article.html?path=iTunesMac/7.4/en/15271.html

  • The iTunes Library cannot be saved. An unknown error occurred (-50)

    I updated iTunes from 7.2 to 7.3 using Software Update and all went well except for one thing, now when I launch iTunes it rebuilds the iTunes library each time I launch iTunes. The other thing is that once it rebuilds the library it displays a warning; "The iTunes Library cannot be saved. An unknown error occurred (-50).
    I downloaded the standalone updater to no avail. I have also repaired permissions using disk utility - no luck.
    Background info.
    A week ago or so, while I still had iTunes 7.2 I cleaned all my user and system caches, ran all the maintenance scripts and repaired permissions. I used MainMenu, a third party app that lives in the menubar, to perform these functions and faithfully followed all the instructions to restart once or twice depending on the routine and closing all my apps accordingly while doing these maintenance routines etc.
    I noticed one thing after this, my iTunes icon had turned into a generic app icon. Knowing iTunes 7.3 was a slated release this Friday I knew the icon issue would resolve itself after the update from 7.2.
    What can I do to fix this? Please help.

    I somehow got through the -50 error but a few days later podcasts when downloading, would crash iTunes 7.3 altogether.
    There was a post here somewhere and I apologise to the poster in advance but I am unable to relocate it.
    Here is the solution that was proposed and it seems to have worked for me.
    Read the following in its entirety before proceeding:
    1 The first thing I did was unsubscribe to all my podcasts by selecting them all and clicking unsubscribe at the bottom of the iTunes window.
    2 Quit iTunes
    3 Navigate to YourHomeFolder/Music/iTunes/iTunes Music/Podcasts and move the Podcasts folder to your desktop or some other convenient location.
    4 Open iTunes and re-subscribe to all your podcasts.**
    5 Once all the podcasts finish downloading navigate to the Podcasts folder sitting on your desktop and move its' contents back to the folder you originally moved them out of. If you had setup the iTunes preferences to keep all your podcasts after they download be careful not to overwrite items as you move them back from the desktop/Podcasts folder to the new Podcasts folder.*
    **In my case, the list of podcasts in the iTunes window got kind of messy, I mean some podcasts displayed the GET button when even though they had already downloaded or I already had them on my system and other small things like that - this was the result of re-subscribing. You can select those that you don't want to GET and simply delete them.
    *You may have to move one podcast folder's contents at a time, again be careful not to overwrite. If you return things carefully you will have no problems.
    iTunes 7.3 has behaved perfectly ever since.
    I hope this helps. If my instructions are confusing please chime back.
    By the way, command (apple key) clicking any of the collapse triangles both in the finder and in iTunes will expand or collapse all items, this will come in handy as you define anything that might have gone funny after re-subscribing.

  • Restoring NamedSearch with Java API

    Hi,
    I tried to restore a NamedSearch with the following code:
        RestoreNamedSearchCommand restoreNamedSearchCommand = new RestoreNamedSearchCommand(context);
        restoreNamedSearchCommand.setSession(session);
        restoreNamedSearchCommand.setTableId(namedSearchTableId);
        restoreNamedSearchCommand.setRecordId(searchRecord.getId());
        restoreNamedSearchCommand.execute();
        Search namedSearch = restoreNamedSearchCommand.getSearch();
    But I always get the following error: Server error (0xffaa0310)
    No matter which NamedSearch I try to read.
    Has anybody encountered that error before and knows what it means?
    Or has someone succesfully restored a NamedSearch via the Java API?
    Many thanks,
    Martin

    Hi Martin,
    Here is a quote from the MDM API JavaDoc:
    A command to restore a named search. A named search is a search criteria that has been saved.
    Note: Not all named search can be restored by the API.
    It seems you may be in one of those occasions where the named search cannot be restored.
    There is, fortunately a workaround.  The following piece of code will add a named search to an MDM Search object, and will always work in returning the correct records when used in a RetrieveLimitedRecordsCommand (or any other command that takes a search object).
    // Step 1: Create a SearchDimension
    SearchDimension sd = new NamedSearchSearchDimension();\
    // Step 2: Create an array of MdmValue and add the NamedSearch ID to the array
    MdmValue [] mdmValues = new MdmValue[1];
    mdmValues[0] = new LookupValue(new RecordId(namedSearchId));
    // Step 3: Create a PicklistSearchConstraint and add the array of lookup values
    PicklistSearchConstraint sc  = new PicklistSearchConstraint(mdmValues);
    // Step 4: (Optional, but advised) Create a SearchParameter
    SearchParameter sp = new SearchParameter(sd, sc);
    // Step 5: If you do not already have a search object, create a new one
    Search search = new Search( mainTableId );
    // Step 6: Add the search parameter to the search
    search.add( sp );
    // Now use the search in a retrieve command
    Hoping this solves your problem,
    Walter

Maybe you are looking for