How to manipulate authorization at runtime?

Dear JDeveloper's gurus :D
I want to implement an authorization system in my application...for example a certain user (the security administrator) can do the following:
1- Grant access to a certain page.
2- Grant Insert, Update, Delete on a certain ADFBC.
Some of you might say that this can be done declaratively at design time. But my problem is that I want this to be done at runtime, in other words: The security administrator logs in to my application, goes to some pages, in these pages he can choose to grant some privileges (like the ones that were mentioned) to some users/roles.
I know that all security constraints are written in jazn-data.xml, is there like an API to access that file at runtime and edit it?
Maybe that's not a good approach, maybe I can store the users and their privileges in some database tables, and at runtime (maybe in the pagePhaseListener) check whether the logged in user has the privilege to access that page.
Sorry if I sound vague, but what I'm trying to do is the following: I don't want every time I need to grant access to some page definition to a user to open JDeveloper, edit that privilege declaratively and then redeploy the application. I want some pages (made by me) to do that at runtime (I mean giving the privilege without requiring to access JDeveloper and redeploying the application).
Thank you in advance for reading this thread and replying.

Thank you guys for your replies,
I think I will go the easy way...I'm gonna implement a servlet filter and map it to the faces servlet, in the filter I will add my authentication/authorization logic. As for buttons, links, and menus I will add the logic in a managed bean and call the authorization in the UI component's Rendered attribute.

Similar Messages

  • How to manipulate object mapping runtime using DOM parser in java?

    Scenario: We will be getting logical name of the table from which we have to fetch the details. We have few tables which have more or less same columns, the only difference is the prefix. Say we have Tables: Temp1 and Temp2 contains column as Temp1Col1 and Temp2Col1. I dont want to go with creating as many POJO classes in java as that of tables. So i will create only one POJO class with common attributes and at runtime i want to change the object mapping file of Hibernate to hold table values. I have an idea that this can be done using DOM parser. But it would be great if somebody can share the java code for the same.
    Thanks in advance.

    SAX is a parser, not a generator.Well,
    you can use it to create an XML file too. And it will take care of proper encoding, thus being much superior to a normal textwriter:
    See the following code snippet (out is a OutputStream):
    PrintWriter pw = new PrintWriter(out);
          StreamResult streamResult = new StreamResult(pw);
          SAXTransformerFactory tf = (SAXTransformerFactory) TransformerFactory.newInstance();
          //      SAX2.0 ContentHandler.
          TransformerHandler hd = tf.newTransformerHandler();
          Transformer serializer = hd.getTransformer();
          serializer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");//
          serializer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"pdfBookmarks.xsd");
          serializer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM,"http://schema.inplus.de/pdf/1.0");
          serializer.setOutputProperty(OutputKeys.METHOD,"xml");
          serializer.setOutputProperty(OutputKeys.INDENT, "yes");
          hd.setResult(streamResult);
          hd.startDocument();
          //Get a processing instruction
          hd.processingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"mystyle.xsl\"");
          AttributesImpl atts = new AttributesImpl();
          atts.addAttribute("", "", "someattribute", "CDATA", "test");
          atts.addAttribute("", "", "moreattributes", "CDATA", "test2");
           hd.startElement("", "", "MyTag", atts);
    String curTitle = "Something inside a tag";
              hd.characters(curTitle.toCharArray(), 0, curTitle.length());
        hd.endElement("", "", "MyTag");
          hd.endDocument();
    You are responsible for proper nesting. SAX takes care of encoding.
    Hth
    ;-) stw

  • How can i authorize music from one apple id acount to another

    how can i authorize music from one apple id acount to another? My IPhone 5 wont play my songs that were purches from my old apple id account

    timss22 wrote:
    how can i authorize music from one apple id acount to another?
    You cannot. iTunes purchases remain on the iTunes account they were purchased with.
    My IPhone 5 wont play my songs that were purches from my old apple id account
    So just upload them from iTunes.
    You have mulitple AppleIDs?
    Why?

  • My computer died and I have a new one. How do i Authorize my new computer to synch the content of my iPod?

    My computer died and I have a new one. How do i Authorize my new computer to synch the content of my iPod?

    Authorization
    iTunes Store- Authorize or deauthorize your Mac or PC.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.

  • I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling I must authorize this computer before it play pre purchased music. how do I authorize my computer.

    I just downloaded iTunes on my new PC and all the music that I have purchased through ITunes that was backed up on the cloud won't play. It is telling me I must authorize this computer before it can play pre purchased music. how do I authorize my computer to play this music?
    Thank you for any assistance.

    Tigon's already got you covered here. But I'll chime in with some English localisation advice.
    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • How do I authorize my computer? I can not find the "Authorize This Computer" option anywhere.

    PLEASE READ ALL EMAIL. ANYONE THAT CAN HELP WOULD BE GREATLY APPRECIATED. As you read through the emails, you will see that "C" the customer service person responds the same way. All the emails are from the same thread.  I would reply to his email, he would, I guess, copy and paste an answer, and the response is the same. He never pays attention to the previous emails. HELP PLEASE!!!
    This is very frustrating to me. If you read back through your emails, you state the SAME INFO 4 times. If you would read my email AND see thescreen shots attached you would see. Why do you continuously state the same info..(SEE RED HIGHLIGHTS BELOW).I NEED HELP ASAP TO GET THIS TAKEN CARE OF...Do you have any other info EXCEPT for what is listed below??????
    IT DOES NOT GIVE THE OPTION TO AUTHORIZE COMPUTER!
    I HAVE NOT CHANGED ACCOUNT NAME
    IT DOES NOT REPEATEDLY ASK TO AUTHORIZE COMPUTER BECAUSE IT DOES NOT GIVE THE OPTION TO START WITH.
    I TRIED EVERYTHING AT http://support. apple.com/kb/TS1389, 3 TIMES NOW. (ATHORIZING PURCHASES, HAVE THE CORRECT NAME, REMOVING THE SC INFO FOLDER).
    I NEED HELP! IS THERE A PHONE # I CAN CALL??? CAN THIS BE FORWARDED TO YOUR SUPERVISOR SINCE YOU ARE UNABLE TO HELP?
    From: iTunes Store <[email protected]>
    To:
    Sent: Sunday, January 13, 2013 5:00 PM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear
    Thank you for replying. It's C from iTunes Customer Support.
    Addressing your concern is really important for me. I will do my best to answer your question.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work Friday to Tuesday, 10:00 AM to 07:00 PM CST.
    Thank you for allowing me the opportunity to assist you.
    I do not get an error, I do not even get the authorization dialog. I have sent 2 screen shots, they are attached.
    When I try to play an iTunes store purchase, a bubble pops up and states that this computer is not authorized. It does not pop up account name or password. I have also completed everything stated in the http://support.apple.com/kb/TS1389  link.
    This is very frustrating.
    S
    From: iTunes Store <[email protected]>
    To:
    Sent: Friday, January 11, 2013 3:22 PM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear S,
    Thank you for replying. It's C from iTunes Customer Support.
    I understand that you have been unable to play some of your iTunes Store purchases. Addressing your concern is really important for me. I will do my best to answer your question.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work Friday to Tuesday, 10:00 AM to 07:00 PM CST.
    Thank you for allowing me the opportunity to assist you.
    Please see the attached document.  I am unable to authorize computer.
    S
    From: iTunes Store <[email protected]>
    To:
    Sent: Saturday,
    January 5, 2013 5:36 AM
    Subject: Re: EL : (en_US) Connecting & Downloading; Follow-up:
    Dear S,
    Thank you for replying. It's C from iTunes Customer Support.
    S, I understand that you have been unable to play some of your iTunes Store purchases, and I'll be happy to help you with this.
    If your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then enter your password and click Authorize. This authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes
    Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please
    include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work from Tuesday-Saturday, 8.30 AM to 5.30 PM CST.
    Thank you for allowing me the opportunity to assist you.
    I try to play an iTunes store purchase, but it just gives the box that is shown in page 2. How can I authorize my computer?
    From: iTunes Store <[email protected]>
    To:
    Sent: Friday, January 4, 2013 1:47 AM
    Subject: Re: EL : (en_US) Connecting & Downloading;
    Follow-up:
    Dear S,
    Welcome to iTunes Store Customer Support. My name is C.
    I understand that you were unable to authorized your computer. I know how eager you must be to have this issue sorted out. I will be happy to resolve this concern today.
    S, if your computer is not currently authorized to play your account's purchases, when you try to play an iTunes Store purchase, the authorization dialog will appear. You will see the name of the account that purchased the item. If you've changed your account name, replace the old account name with the new name, then
    enter your password and click Authorize. This
    authorizes your computer to play the account's purchases.
    If you are repeatedly asked to authorize your computer to play your purchases, you may find this article helpful:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    If you still cannot authorize your computer, please include a screen shot of any error received, as well as any additional details about the error itself.
    Thank you for contacting the iTunes Store.
    Have a great day!
    Sincerely,
    C
    iTunes Store Customer Support
    http://www.apple.com/support/itunes/ww/
    I work from Tuesday-Saturday, 8.30 AM to 5.30 PM CST.
    Thank you for allowing me the opportunity to assist you.
    Details:
    I am trying to authorize my new computer. I do not see AUTHORIZE MY COMPUTER anywhere. I see COMPUTER AUTHORIZATIONS, but not an option to authorize.

    There's a couple of ways to get through to the authorisation controls in the 11.0.x versions.
    The control is still in the Store menu, but first (if you're using iTunes versions 11.0.x) you might need to bring up the menu bar to see the Store menu.
    If you're using 11.0.x, click on the wee boxy icon up in the top-left corner of your iTunes to see the "Show Menu Bar" control, as per the following screenshot:
    Then you'll find the control in the Store menu:
    Alternatively, if you don't want to bring up the menu bar, it's still possible to get into the authorise controls via nested menus accessible from the wee boxy icon. Here's a screenshot of where to find them:

  • How do i authorize my ipod to a new computer?

    how do i authorize my ipod to a new computer? i got a new computer for x-mas and i already had my ipod how do i make sure that when i sync my ipod to my computer it wont delet everything already on my ipod?

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up.
    - Restore the iPod from that backup.

  • How to Create authorization WAD template for BW3.5?

    Hi All
    How To create Authorization for a Web template in Bw 3.5 ?
    I have a requirement to restrict a particular Web templated in bw 3.5 So that all the end users should not be able to access that template only a particular user should be allowed to view the template?
    I cant find any authorization object for the WAD template in bw 3.5 ?
    Can anyone tell me the procedure to include the WAD template authorization?
    Should i include the authorization template in the Menu - in pfcg??? . i have added the template in the Menu in the PFCG but still it didnt work.
    Thanks

    As you said, the authorizations for the WAD templates should be given in PFCG roles.
    But you have to include the access/authorization details in the authorization objects. WAD templates have been created with including info/multiprovider, info cubes right.. first you have to include these objects inside the Role in PFCG.
    S_RS_COMP,S_RS_COMP1,S_RS_MPRO,S_RS_ICUBE.
    just assigning WAD template in the menu of the roles is to display when you login with the userid.
    Please request your BASIS folks to do the same.
    Hope this would help you.

  • How do i authorize this computer to download my music from a windows xp

    how do i authorize this laptop to download my music?

    Press the Alt and S keys and choose Authorize this Computer, or click here, follow the instructions, click on Store in the menu bar, and choose Authorize this Computer.
    (92232)

  • How do I authorize my new mac book so i can download previously purchased music to this device

    How do you "authorize" a new computer on Itunes so that you can download previously purchased music to a new computer?
    Thanks

    Open itunes, click the word Store at the top of your computer screen, click Authorize

  • How can I authorize my new Mac Mini to use downloads in my iTunes account?

    Hi. How can I authorize my new Mac Mini to access music on my old itunes account?

    Choose Authorize Computer from the Store menu at the very top of the computer's screen.
    (73809)

  • How do I authorize multiple devices on my adobe digital editions account?

    How do I authorize multiple devices on my adobe digital editions account?

    You can maximum authorize upto six device. More on device authorization please refer to http://www.adobe.com/products/digital-editions/faq.html and
    http://kb.datalogics.com/articles/FAQ/FAQ-on-Activations-in-Adobe-RMSDK-and-Adobe-Digital- Editions?retURL=%2Fapex%2FknowledgeProduct%3Fc%3DActivation&popup=false&lang=en_US

  • How do I authorize digital editions on my laptop? I have authorized it on my desktop PC without a hassle but now I can't transfer downloaded books from my laptop to my ereader.

    How do I authorize digital editions on my laptop? I have authorized it on my desktop PC without a hassle but now I can't transfer downloaded books from my laptop to my ereader.

    Ererer1936 I would recommend posting your inquiry in the Adobe Digital Editions forum.

  • How do i authorize my macbook pro to download apps

    how do i authorize my macbook pro to download apps

    Authorization and Deauthorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.
    More On De-authorizing Computers (contributed by user John Galt)
    You can de-authorize individual computers, but only by using those computers. The only other option is to "de-authorize all" from your iTunes account.
      1. Open iTunes on a computer
      2. From the Store menu, select "View my Account..."
      3. Sign in with your Apple ID and password.
      4. Under "Computer Authorizations" select "De-authorize All".
      5. Authorize each computer you still have, as you may require.
    You may only do this once per year.
    After you "de-authorize all" your authorized computers, re-authorize each one as required.
    If you have de-authorized all computers and need to do it again, but your year has not elapsed, then contact: Apple - Support - iTunes - Contact Us.

  • How do I authorize a computer to sync with my phone.

    how do I authorize a computer to sync with my phone? Had 5 computer authorized at one time and they all went down or upgraded to new ones at work. Deleted all 5 and now can not figure out how to authorize one. please help.

    If it's running Windows, press the Alt and S keys.
    If it's running Mac OS X, move the cursor to the very top of the screen and click on Store.
    (77861)

Maybe you are looking for

  • I tried updating my iPhone 4S to IOS 6.0.1 and it is now stuck in recovery mode.

    I updated my iTunes to IOS 6.0.1 tonight and then connected my iPhone to the computer and began to back up and update it. It froze and now I am getting the "connect device to iTunes" image on my phone. When I connect it I get a notification on my com

  • My serial number is not recognized and I cant get past the first setup screen. What do I do?

    I cant get the installer to recoognize my serial no. What do I do

  • How the message is processed in the BPM?

    Hello, First in XI I developed a scenario JDBC->XI->RFC. It worx now. This time I'd like to use ccBPM for the same process but with time dalay (to be sure, that the process uses the steps from the ccBPM). I've configured following scenario: ->START -

  • Washed out colors

    I have a new iMac 27" with the AMD Radeon HD 6970M 2048 MB graphics card. Since a few days I find that some screens have washed out colors (see pictures). Has anybody seen this? Also the command bar is almost invisible. Jan

  • Different audio track - how

    Hi, I have been given a video to show children in class. The video has a spanish audio track, but I have also been given a separate mp3 (and vcf file??) with an english audio track. I thought quicktime pro would be able to handle this, but if I open