Java transfer script to iTunesU

I am working on the transfer script to iTunesU.
In this example
http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/CustomizingYouriTune sUSite/chapter_8_section_9.html
credentials=Instructor@urn:mace:example.edu:courses:fall06:eecs302:02&identity=" Jane Doe"<[email protected]>(jdoe)[528392]&time=1139331600
Jane Doe has access to
fall06:eecs302:02 course.
What credentials will give him also access to
fall06:eecs250:01
course?
He needs to have access to both  fall06:eecs302:02 and fall06:eecs250:01 courses (pages).
Should it be done in the separate tokens to iTunesU?
Any help will be greatly appreciated!
Thanks!

it is being fixed
thanks!

Similar Messages

  • ITunes U transfer scripts and how to setup groups and users

    I have used the SampleCode from apple's iTunes U site to setup the transfer scripts in both Java and Perl. I know how I could use the transfer script to authenticate users, based on groups. But if I have a CS101 class, how do this.. Or essentially this..
    Student@urn:mace:itunesu.com:sites:blah.edu.private:CS101-1230;CS102-2048
    I need to give access to the students that are in those particular classes.

    This video may be of assistance: Integration of Internal iTunes U Sites - http://deimos3.apple.com/WebObjects/Core.woa/Browse/new.duke.edu.1302914143.0352 7899686.3694027036?i=2078373237

  • Transfer Script

    I am trying to restrict access to a course page by password protecting it. I have went into the edit course page and added in custom permission added download to USHistory@urn:mace:..... Ok now i tried to go into the transfer script and add the following credential;
    String[] credentialsArray = { USHistoryCredential };
    String displayName = "USHistory";
    String emailAddress = "[email protected]";
    String username = "USHistory";
    String userIdentifier = "password";
    What am I doing wrong cause this isn't working.
    Thanks

    Hmm ... lemme see if I can explain. I'm not sure I'm going to do your question justice ... but I'll try.
    The first thing to know is this: Apple does not hold any userid/password info for an iTunes U site ... with one, very very specific, exception. But that exception does not come into play for you in this instance. The basic rule of thumb is that Apple does not know any of your users ... Apple only deals with credentials.
    In iTunes U, what you do is authenticate your users your own way (whatever that is ... Banner, Active Directory, LDAP with an MD5 hashed password store, Kerberos). Your authentication process basically gives a yes/no answer ... "such-and-such user is valid at our school" or "such-and-such user is not part of our school". If you get a "yes" response from your authentication system, you generate a set of credentials for your user and pass them to Apple. Based on the credentials you assign to your user, Apple grants him/her access to specific courses and iTunes U tracks.
    As I am fond of saying, an iTunes U credential is like a high school hall pass. The hall pass itself is a piece of plastic or paper or cardboard ... it could be laminated ... but it only says one thing, "Let the bearer of this pass go to the lunchroom," or, "Let the bearer of this pass go to the bathroom," or, "Let the bearer of this pass go to the principal's office" ... like that. If a teacher stops a student in the hallway, he/she might ask, "Can I see your hall pass?" The teacher will not necessarily know who the student is ... all he/she needs to know is that the student has a valid hall pass. In fact, the beauty of the hall pass system is that no teacher need know the name of any particular student ... all that matters is that someone the teacher trusts gave the student a valid hall pass. iTunes U works the same way ... Apple "trusts" you to validate your users and assign them the right set of hall passes. That trust is established with your shared secret ... only you and Apple know what it is. But when Apple sees your users, it only sees credentials ... the hall passes ... it doesn't know your users' names, passwords, usernames, etc.
    So you might be asking, "Hey Rich, you say that Apple doesn't care about my users, so why does the example transfer script have 'username' in it, what's up with that?" Well, the answer is that you can, if you like, tell Apple to record identity information about your users and pass it back to you later in site usage logs ... but you do not have to pass identity information at all ... you can leave "username", "e-mail", "name" ... you can leave all that stuff blank and iTunes U would still work. However, when Apple sends you your site usage logs, all you'll see is that some "visitor" downloaded a certain track at a certain time. If you want to know who that was, you have to tell Apple to record that for you by sending a username along with a credential set. But Apple does not "see" your usernames/e-mail addresses/whatnot ... all Apple cares about is that credential set. Apple merely records user info to send back to you "as is". If you send bogus user info, for example, Apple would dutifully record it in logs and send it back to you the way you sent it. But get a credential wrong, and iTunes U will not work.
    So display name, username, user identifier, and e-mail address are not used by Apple at all in iTunes U. They are just recorded and sent back to you "as is" in usage logs -- they are just means for you to figure who's who when looking at logs. Apple does not encrypt them ... they are sent in the clear. For that reason, I would strongly urge you to not to send password info in that user identifier string.
    To restrict access to something in iTunes U, a credential is only half the story ... in iTunes U, there is something called a "permission". A permission is the combination of a credential and an access level. For example, a permission might look like this:
    Student@urn:mace:itunesu.com:sites:myu.edu DOWNLOAD
    or:
    Administrator@urn:mace:itunesu.com:sites:my.edu EDIT
    When you create a permission in iTunes U, you're saying that if someone comes to a "place" in your site, and he/she bears a certain credential ("Student" or "Administrator"), that he/she should have a certain access level ("can browse and download content" or "can edit this page") for that "place". Notice how usernames/passwords aren't a part of this scheme ... if you bear the "Student" credential, you can "DOWNLOAD" whereas if you bear the "Administrator" credential, you can "EDIT". Apple does not need to know who's who ... you've already authenticated your people and told Apple about the the creds/access that should be granted. Apple trusts you because you signed the user's request with the shared secret that only you and Apple know.
    Make sense?

  • Is there a php transfer script?

    Has anyone written or stumbled uppon a PHP transfer script they can share?
    Thanks

    Well, I have found this.  I am having trouble understanding how to impliment it.  Does anyone have any helpful suggestions?
    http://omega1.uww.edu/itunesu/

  • I-Tunes Transfer Script - Duncan Bernhardt

    I'm not sure if this is the correct location for this, but i noticed that some other site admins are getting help directly from Duncan Bernhardt, so i'll give it a go.
    I'm trying to do the initial setup for our I-tunes account (the address is https://deimos.apple.com/WebObjects/Core.woa/Browse/und.edu), and I keep getting messages saying the page has been opened in i-tunes, but then there's a error page, and it looks like I-tunes is looking for the transfer script at
    https://www.und.edu/cgi-bin/itunesu?destination=und.edu
    Is this correct? This is the location where the transfer script should be located?
    Kevin Crawford
    University of North Dakota

    The transfer script just needs to be hosted some where that you can access it, but preferably it would be hosted in a secure, password protected location as it gives you site administrator level access to your site.
    The script generates an HTTP POST request that is sent to the iTunes U server. The server checks the digital signature of the token to ensure it is valid. If it is valid then iTunes U returns a redirect URL that gives you access to your iTunes U site.
    https://www.und.edu/cgi-bin/itunesu?destination=und.edu is the default login URL for your site. You are redirected to this URL when your authorization fails. You can change this login URL once you have access to your site.

  • Java Sample Script

    Hi Duncan,
    I have configured the java sample script example using the credentials sent to me by apple as an administrator. However, i do not have the cgi-bin directory on my server, so i created a folder on our web server and called it media. In the instructions in the Admin itunes guide indicate using the url http://example.com/cgi-bin/iTunesU to call the script from my browser. But since the directory name is different, can't i just substitute cgi-bin in the url for media and run the http://example.com/media/iTunesU instead? The media folder containing the java scripts is placed placed on our web server which can be called using the following url from my browser: http://www.college.edu/department/media/. Any suggestion how to call the file since the directory is called different. I have tried replacing cgi-bin with media and did not work. Thanks.

    It's necessary to tell your web server about the change in CGI location. Simply changing the URL to reflect a local path change will not work.
    Consider Apache as an example. On an Apache server, there is an association between "cgi-bin" in a URL and an actual directory on your webserver. The "real" directory doesn't have to be called "cgi-bin". In fact, if your Apache server happens to be Mac OS X Server, "cgi-bin" will actually map to /Library/WebServer/CGI-Executables. In other words, if you're running Mac OS X Server, you will need to place the compiled Java code in /Library/WebServer/CGI-Executables. If you do that, then you can use http://myu.edu/cgi-bin/iTunesU style URLs. The WebServer will map "cgi-bin" to "/Library/WebServer/CGI-Executables". Note that this is ONLY for Mac OS X Server. Different web servers map "cgi-bin" differently. For example, this page:
    http://www.parkansky.com/tutorials/bdlognt.htm
    gives a rough idea of how one might think about setting up a cgi-bin look-alike on an Microsoft IIS server.

  • Java FX Script, how to dynamically loadm add, delete document objects ?

    Hi,
    Is it possible to programmatically load the object Hierarchy of a java FX document, to add, delete, update objects proporties or to call function and operations.
    Is it possible to assign 'id' or 'name' to objects, to have later have references on them in the java FX script.
    exemple of object tree to parse :
    -Canvas
    --group
    ---Line
    ---Line
    ---Rect
    ---Button
    ..etc
    thanks for your help
    gel
    Edited by: geldouches on Oct 1, 2007 8:21 AM

    Here is your solution.
    Use an XML parser. Don't forget the dukes!

  • Is this transfer script business necessary?

    I have been asked by my school ot investigate setting up the iTunes site, but I have no clue and it's way over my head in dealing with scripting languages. Can we set up a site without having to create this transfer script business?

    If you don't have a transfer script how are you going to make your site public? How are you going to add content to your site?
    The transfer script is absolutely necessary. Its the only way to ensure that only the authorized users can edit the content of your site.

  • ASP transfer script

    I'm setting up iTunes U for my institute. I've run the initial login email and currently researching solutions for the transfer script.
    Has anyone come across any ASP solutions for this? Thanks.

    Duncan,
    I've got C# (.NET 2.5) code that I use in Windows Woolamaloo. If people would like, I'd be happy to post the code that creates the iTunes U URL request. ASP would, except for superficial languages differences, be the same. The thing about the Windows CLR is that works with any language, so long as that language can be changed to behave the exact same way as C#.

  • Transfer script for public sites

    Hi,
    Is there a way for using a transfer script in public sites ?
    I only want to get the content information using a script.
    Thanks

    We're not including the destination variable in the form post that calls our cgi script. I can't get to the Edit Site Settings window in the original iTunes U store - we use this transfer script to handle the admin access, and it isn't working for that either.  I've been testing a very simple version of this Perl script from a fresh copy of the sample files collection, and with debugging enabled it looks like it is getting everything except for a current time - it tells me that the time is valid, but is "too far in the past" and so it doesn't include the otherwise valid identity and credential values.  I'm checking with our system administrators to verify that our server's time is accurate.  Thanks for the follow-up response.

  • Transfer script for private site has stopped working

    We had split our vintage iTunes U site into a new Public site - keeping the original access-controlled content as a 'private' site - a few months ago.  We had a transfer script in place for the original site, which was used to direct users to course materials with specific credentials supplied to control access.  The transfer script has stopped working at some point in recent weeks - we hadn't modified it for a quite a while, so I'm guessing that it has stopped working due to some change in the destination url.  I couldn't find documentation indicating any changes to the transfer script so that it finds the original site rather than the new Public site - the site url in the script is "https://deimos.apple.com/WebObjects/Core.woa/Browse/scu.edu", which will open the new public site.  If anyone has a suggestion for what we might try to get the script working again, it would be much appreciated.

    We're not including the destination variable in the form post that calls our cgi script. I can't get to the Edit Site Settings window in the original iTunes U store - we use this transfer script to handle the admin access, and it isn't working for that either.  I've been testing a very simple version of this Perl script from a fresh copy of the sample files collection, and with debugging enabled it looks like it is getting everything except for a current time - it tells me that the time is valid, but is "too far in the past" and so it doesn't include the otherwise valid identity and credential values.  I'm checking with our system administrators to verify that our server's time is accurate.  Thanks for the follow-up response.

  • Calling java from scripting

    Hello,
    I would like to integrate some scripting capability in my web application.
    The main purpose is to cover the following scenario :
    - I develop a web app with JSP technology, packaged in a MyAPP.WAR file containing my application and another file (MyCustomer.RAR?) containing installation specific informations. I want the MyApp.WAR to be the same for all my customers, just having the RAR file specific to each customer (installation).
    - In this ressource file, there could be some scripting functions that will be called from my JSP Pages to change the default presentation with some customer particular informations.
    Those informations would be extracted from my java data model. The purpose is to enable the customer to code some little script, and to avoid coding those in Java.
    The question I have on that are :
    1/ is it possible to call java instances from scripting language (I read on apache that the answer was yes for some of them), but I would like to know if javascript can do that.
    2/ Can I recover the "result" of the script in JSP ?
    An example :
    1/ The class containing a marvellous property
    class MyClass {
    public String myProperty;
    2/ The JSP page :
    <stlLib:callScript(Customer.RAR, "ScriptToCall",anInstance) />
    <stlLib:getResult ???>
    3/ A user script (pseudo-code)
    Customer 1 :
    Function ScriptToCall(object) {
    variable iwanttoshowsquareroot;
    iwanttoshowsquareroot = squareroot(object.myProperty);
    return iwanttoshowsquareroot ;
    Customer 2 :
    Function ScriptToCall(object) {
    variable mychoiceisdifferent;
    mychoiceisdifferent= object.myProperty / 2;
    return mychoiceisdifferent;
    According to what ScriptToCall looks like the result on page would be different
    Thanks in advance for your advises
    Olivier.

    1) The script will be running in the browser, not the server, yes? So in Netscape you can load Java objects via Javascript, but IE doesn't seem to support this. Although in either, you can call methods on an applet in the page. But you can't call a JS function from the Java code in the JSP page, since that is only executed on the server.
    2) Only if the "result" is submitted back to the server.

  • Subinventory Transfer script .

    Hi All,
    i have developed the following script to bulk sub inventory transfer ,please correct if i done any thing wrong and
    give me some valuable suggestions .
    create or replace
    PROCEDURE XX_SUB_INV_TRN (errbuf OUT varchar2, retcode OUT number,P_SUB_INV_NAM IN VARCHAR2 , P_ORG_ID IN number ,P_ITEM in VARCHAR2,P_SUB_INV_TO VARCHAR2) IS
    l_SUB_INV_NAM mtl_secondary_inventories.SECONDARY_INVENTORY_NAME%type := P_SUB_INV_NAM ;
    l_SUB_INV_TO mtl_secondary_inventories.SECONDARY_INVENTORY_NAME%type := P_SUB_INV_TO ;
    l_ORG_ID mtl_system_items.ORGANIZATION_ID%type := P_ORG_ID ;
    l_item mtl_system_items.segment1%type := p_item;
    l_transaction_interface_id NUMBER;
    p_user_id     NUMBER; -- The USER_ID number
    p_resp_id     NUMBER; -- The ID number of the responsibility
    p_resp_appl_id     NUMBER ;     -- The ID number of the application to which the responsibility belongs
    l_dis_acc_id number ;
    L_RETURN_STATUS varchar2(4);
    l_msg_cnt number;
    l_msg_data varchar2(200);
    l_trans_count number;
    transaction_interface_id number;
    retval NUMBER;
    cursor item_cur Is
    select msi.inventory_item_id,
    msi.organization_id ,
    msin.SECONDARY_INVENTORY_NAME,
    msi.segment1,
    msi.list_price_per_unit,
    msi.lot_control_code,
    msi.primary_uom_code,
    msi.default_so_source_type,
    sum(moq.TRANSACTION_QUANTITY) QTY
    from mtl_system_items msi,
    mtl_secondary_inventories msin,
    mtl_onhand_quantities_detail moq
    where      msi.ORGANIZATION_ID = msin.ORGANIZATION_ID
    and      msi.ORGANIZATION_ID = moq.ORGANIZATION_ID
    and      msi.inventory_item_id = moq.inventory_item_id
    and      msin.SECONDARY_INVENTORY_NAME = moq.subinventory_code
    and      msin.SECONDARY_INVENTORY_NAME = l_SUB_INV_NAM
    and      msi.INVENTORY_ITEM_STATUS_CODE = 'Active'
    AND      MSI.MTL_TRANSACTIONS_ENABLED_FLAG = 'Y'
    and      msi.ORGANIZATION_ID = l_ORG_ID
    and      msi.segment1 = l_item
    group by      msi.inventory_item_id,
    msi.organization_id ,
    msin.SECONDARY_INVENTORY_NAME,
    msi.segment1,
    msi.list_price_per_unit,
    msi.lot_control_code,
    msi.primary_uom_code,
    msi.default_so_source_type
    order by 1,2;
    item_rec item_cur%rowtype;
    BEGIN
    fnd_global.apps_initialize(user_id => 1318
    ,resp_id => 50583
    ,resp_appl_id     => 401);
    BEGIN
    FOR item_rec in item_cur
    LOOP
    BEGIN
    INSERT INTO MTL_TRANSACTIONS_INTERFACE
    TRANSACTION_INTERFACE_ID
    , TRANSACTION_HEADER_ID
    , SOURCE_CODE
    , SOURCE_LINE_ID
    , SOURCE_HEADER_ID
    , PROCESS_FLAG
    , TRANSACTION_MODE
    , LAST_UPDATE_DATE
    , LAST_UPDATED_BY
    , CREATION_DATE
    , CREATED_BY
    , ORGANIZATION_ID
    , TRANSACTION_QUANTITY
    , TRANSACTION_UOM
    , TRANSACTION_DATE
    , TRANSACTION_TYPE_ID
    , LAST_UPDATE_LOGIN
    , ITEM_SEGMENT1
    , SUBINVENTORY_CODE
    , LOCATOR_ID
    , REVISION
    , DSP_SEGMENT1
    , TRANSACTION_SOURCE_NAME
    , TRANSFER_SUBINVENTORY
    , TRANSFER_ORGANIZATION
    , TRANSFER_LOCATOR
    , XFER_LOC_SEGMENT1
    VALUES
    mtl_material_transactions_s.nextval
    , mtl_material_transactions_s.nextval
    , 'INV TEST'
    , mtl_material_transactions_s.nextval
    , mtl_material_transactions_s.nextval
    , 1
    , 2
    , SYSDATE-60
    , 1318
    , SYSDATE-60
    , 1318
    , l_ORG_ID          
    , ITEM_REC.QTY
    , ITEM_REC.primary_uom_code
    , '11-JAN-2010'
    , 2
    , -1
    , ITEM_REC.segment1
    , l_SUB_INV_NAM
    , NULL
    , NULL
    , NULL
    , NULL
    , l_SUB_INV_TO
    , l_ORG_ID
    , NULL
    , NULL
    COMMIT;
    select transaction_interface_id into l_transaction_interface_id from mtl_transactions_interface ;
    dbms_output.put_line('before calling API');
    FND_FILE.PUT_LINE(Fnd_File.Log ,'before calling API');
    -- Call API to process transactions
    retval := apps.INV_TXN_MANAGER_PUB.process_Transactions(
    p_api_version => 1.0
    ,p_init_msg_list => fnd_api.g_true
    ,p_commit => fnd_api.g_true
    ,p_validation_level => fnd_api.g_valid_level_full
    ,x_return_status => l_return_status
    ,x_msg_count => l_msg_cnt
    ,x_msg_data => l_msg_data
    ,x_trans_count => l_trans_count
    ,p_table => 1
    ,p_header_id => l_transaction_interface_id
    dbms_output.put_line (item_rec.inventory_item_id || ' ' || item_rec.segment1|| ' '||l_trans_count||' '|| l_msg_data);
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    END;
    EXIT when item_cur%NOTFOUND;
    END LOOP;
    END ;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    NULL;
    WHEN OTHERS THEN
    -- Consider logging the error and then re-raise
    RAISE;
    END XX_SUB_INV_TRN;
    Thanks,
    apasupuleti

    No.
    But you can use a move order and do a approvals for move orders.

  • Using Java for scripting in games - which technology to use?

    Hi, I'm currently in the process of implementing a java scripting implementation for a 3D game engine. Any suggestions on which java technology to use? It will handle high level game specific logic and a gui. So there will be a native implementation of awt created as well. I'm starting off with win32 and will port to mac and linux later.
    I'm thinking J2ME-CDC, but then theres CDLC, the personal edition, and so on. CDC and CDLC are nice since the jvm code is included but the CDC one needs to be ported to win32 (anyone already do this?)

    J2ME is designed for small consumer devices such as mobile phones, pda, pagers, set-top boxes and so on.
    You'r designing something for windows, mac and linux so I'd suggest standard edition rather than micro edition.
    I'm confused as to what you want to do though.
    Also, "porting" a java program shouldn't really be an issue (unless you've used lots of JNI or Runtime stuff).
    Basically though I don't really understand what you want to do, I did have some idea, but then you started talking about Micro Edition.

  • Computer to Computer Data Transfer Script

    Hi Guys,
    We have a new customer that wants to transfer specific data (My Documents from D:, Desktop, Favorites, Dictionary and Signatures from C:) from old computer to new computer over network logged in as user. We have existing scripts that backup to server
    starting with VBscript that prompts for user name and then it kicks off a batch file that has all files to copied from computer to server. For restore to new computer, we have another script restores from server.
    I'm looking to create a VBscript that can run from flash drive and detects source computer it's run from. Then a box to appear that prompts "Enter Username" and "Enter Destination Computer Name". Once info is entered, a batch file that
    has all files to be copied from Source to Destination, eg D:\My Documents, C:\Users\username\Desktop, C:\Users\username\Favorites, C:\Users\username\AppData\Roaming\Microsoft\UProof, C:\Users\username\AppData\Roaming\Microsoft\Signatures.
    I found some scripting online but can seem to piece together anything that works. I am new to the scripting world and would appreciate any assistance I can get.
    Thank you!!

    That utility is built into Windows.  It is the migration wizard.  It will migrate across network, able or via files.
    http://windows.microsoft.com/en-us/windows7/products/features/windows-easy-transfer
    You can also use the USMT for domain migrations.
    If you are not a technician or are not trained in Windows desktop administration then you might ask your system administrator or vendor for help in using Windows.  Windows has had builtin migration tools that do exactly what you ask since Windows XP.
    If you are just a user and this is home system then as here:
    http://answers.microsoft.com
    ¯\_(ツ)_/¯

Maybe you are looking for