A better way to initialize imported taskflows and BCs with current user

Hello.
I'm currently developing a composite application containing one main application and a number of subapplications (modules) packed in adflibs.
Main application has a side menu and a dynamic region, showing taskflows (on fragments) from adflibs.
Main application is configured with adf security and it has current login and queries his ID. I would like main application to tell modules current user ID rather than each module to find out current user on their own.
So there is currentUserID input parameter required in each imported taskflow. And my question is what is a better way to process this ID in the modules?
What I have previously done is:
I've created a custom BC classes layer, VOImpl and VORowImpl have getIdUser() method. This method reads currentUserID parameter from pageFlowScope where the taskflow is storing the parameter.
Top-level View Objects have :IdUser query parameter and corresponding bind variable. This bind variable has value="source.getIdUser()", calling the method from custom VO class.
This way works fine but here and there I read that it is a bad practice to access pageFlowScope from BCs.
I could agree with this in case someone could share a better way.
So what is a good practice?
Thanks.
ADF/JDev 11.1.2.3 - 12

Why don't you use adf security for this? Read Oracle ADF: Security for Everyone which give you an overview and sample on how to implement this.
Timo

Similar Messages

  • Better way to take Comet requests and respond with dynamic HTML?

    Hello folks,
    When my servlet writes back inline plaintext/XML in response to Comet requests, it only takes 10-20ms.
    When I have it use RequestDispatcher to return a processed JSP page, it never takes less than a full second.
    (I am on localhost with Tomcat 6.20 using the connector org.apache.coyote.http11.Http11NioProtocol)
    Now I am a servlets newb, but I thought JSP's are essentially servlets. So there should be a way to run my Comet servlet and then have it call my JSP in serial and only double the processing time.
    Is there a faster way than RequestDispatcher to process a JSP page and send it to the client from my servlet?
    Thanks.
    moeshroom

    If you understand HTML and CSS well enough to just write it in Notepad, you are light years beyond most beginners here.  Understanding the code is usually the steepest curve of all.  Think of DW as a really advanced Notepad with color-coded editing and a visual preview of the code.  With that I would recommend doing your coding in Dreamweaver and use Fireworks/Photoshop to optimize your graphics for the web and export those pieces, but not code (HTML or CSS).
    If you feel the curve is too steep at first and your job needs to be finished, stick with what you know. 

  • My Laptop crashed. I had a full backup on Carbonite so the iTunes folder is there and downloadable.  Is there any way just to import that and have iTunes on my new computer (Windows 7) recognize it?

    My Laptop crashed. I had a full backup on Carbonite so the iTunes folder is there and downloadable.  Is there any way just to import that and have iTunes on my new computer (Windows 7) recognize it?

    Nothing gets imported.  Simply restore the ENTIRE iTunes folder to the new/restored computer.
    Download and install iTunes from Apple's website.
    The first time iTunes is launched, assuming the ENTIRE iTunes folder is restored to the correct location, it will launch and be exactly as it was prior to the comptuer issues.  If for some reason this does not work, close iTunes, hold the SHIFT key while launching iTunes and a prompt will appear to choose or create a new iTunes library.  At this point simply point iTunes to the correct location for the existing iTunes library.

  • HT4759 If I have a late 2006 iMac is there any way to sync my contacts and calendar with my iphone

    If I have a late 2006 iMac is there any way to sync my contacts and calendar with my iphone

    Upgrade to 10.7.5. See:
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Sender file adapter, file existence check in archive folder if exists rename the same and proceed with current file

    Dear SAP Gurus
    Interface flow:
    File --> File and RFC.
    We have a requirment where PI needs to check the file existency in archive folder and if there is a file already exists with same name we need to rename that file and archive the current file as is...
    Note* Customer don't want to add time stamp!!!!
    For ex today first message processed with file name "UBMO_delta20140626.xml" and archived as is- UBMO_delta20140626.xml
    and customer sends a second file on the same day with same name(UBMO_delta20140626.xml) in this case before archiving PI needs to check whether there is a file exists already in archive folder or not if there is, then it should rename the same like(UBMO_delta20140626_1.xml) and proceed with current message processing and archive the same name(UBMO_delta20140626.xml).
    Many Thanks in advance...
    Nagesh

    Hi Nagesh,
    I think you can use the feature of run operating system command before message processing. you can refer the below wiki for information.
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    regards,
    Harish

  • Install CRS and RAC with different users

    I' m tring to install CRS and RAC with different users.
    It is supported but I don't find documentation.
    Have someone experience with this configuration ?
    My question are related to permission/own of voting and ocr file.
    in this configuration is CRS owner or DB owner that run srvctl commands ?
    Thanks !

    Yes it is ... check out the RAC FAQ on metalink, and just as Chris metioned the users will need to have the oinstall group as their primary..
    "Is it supported to install CRS and RAC as different users.
    Yes, CRS and RAC can be installed as different users. The CRS user and the RAC user must both have "oinstall" as their primary group, and the RAC user should be a member of the OSDBA group.
    Modified: 09-SEP-04 Ref #: ID-5769 "

  • How can I share applications and softwares with different users of the same computer?

    First question: How can I share applications and softwares with different users of the same computer?
    Second : Can I use 2 different I cloud accounts to synt 2 iphones with one computer?

    Applications installed on the admin account are available to all user accounts unless Parental Controls are enabled.
    Yes.   Separate user accounts, help here >   How to use multiple iPods, iPads, or iPhones with one computer

  • When trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password

    when trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Not from your end. Click here and ask the iTunes Store staff for assistance.
    (126716)

  • Better way to change telephone, fax and emails in mass?

    Hi,
    What's the better way to change telephone, fax number and emails in mass in ISU and CRM?
    ADDR_COMM_MAINTAIN and ADDR_PERSONAL_COMM_MAINTAIN functions seems to work fine for ADR2, ADR3 and ADR6.  But it does'nt update telephone in KNA1 and LFA1 tables.

    HI EMANUEL
    We to are Implemen SAP IS u
    could u please help us to configure fact sheets
    in SAP CRM interaction centre....
    Which actually contains object like premise,
    installation,meter etc..
    could you please help out in how to replicate fact sheet
    from SAP IS to SAP CRM ...
    or you suggest any alternative

  • What is the easiest way to sync Google Cal and Contacts with an iMac?

    iTunes will sync Google Contacts, but not calendar. Weird. Why? What's the best fix?

    There must a better way to do this. The problem is, YOU CAN'T UNCHECK IPHOTO in the installer. You pretty much need all the support files which you can't see in the installer, but you usually don't want iphoto.
    1 way to get around this is: Quit the installer if you launched it. Open the install disc > search = (any ilife app) > make visibility option 'invisible'. (if you don't know how, search invisible files in apple's help menu). run through the stuff to find a 'packages' (or some similar name) folder. Inside of that, I install everything except for what I don't want, which for me is the iphoto and imovie stuff.
    Still there must a better way, maybe you can create your own installer from the packages w/ package maker or something and burn that image... Worth trying...
    Please be assured that you will not get full integration between the current apps and the iLife apps in 10.9.x; Mavericks.  The apps don't have all the expected hooks to each other due end of product development. This seems to be the crux of the problems I've had testing to make an idvd dvd.
    If you're running 10.9, I recommend moving on to current replacements that will work as expected. That way you won't be wasting time running down project problems.

  • Importing Photos and Music from Multiple users on the same Mac

    I am the same person with multiple users on one iMac. I need to have the same pics and music files on all of the user names on the one computer.
    I have the family pack MobileMe plan.
    Where are the files located for the photos and music in iTunes?
    I would like to import them from one user to another user on the same computer.
    Thank you

    Welcome to the Apple Discussions.
    If you Import the files from one User to another then you will use double the disk space on your HD as you will have multiple copies of everything. Why not simply share the files between accounts?
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Regards
    TD

  • Trouble Importing CDs and syncing with iCloud

    I'm having some difficulty when importing tracks from CD's purchased into my iCloud account. I've noticed some CDs appear to sync to iCloud and others do not. Why is this happening? They are all legitimately purchased CDs that I would like to sync to iCloud. Is syncing to iCloud limited to only music purchased through iTunes?
    Any idea what's causing this or how to import that music?
    thanks!

    I too have this problem. My settings are exactly the same as they were prior to subscribing to iTunes Match -- that is, "Import using AAC Encoder" and "Setting iTunes Plus".
    When my library was adapted to iTunes Match, all the CD imported files were uploaded to the cloud without any issues. Since then, I've had trouble finding new iTune Store purchases on my devices as well as finding the imported files from my CD's.
    iTunes seems to process the import after I insert a CD. iTunes displays the import progress and a green check mark once the file is completed. I can listen to the music; but, cannot transfer to a playlist (cloud or non-cloud). The files are not in my library.
    Is this a bug in iTunes or is there an added function that I'm skipping?

  • What is the "best" way to configure iTunes on an iMac with personal user acounts so each user can access the media library but sync devices on their personal user account?

    I am trying to determine the best way to set up our imac so each user account can access the same media (songs, movies etc.) through itunes and also back up and manage their personal devices under their own personal user account.  There are 4 users on our iMac.  Me, my wife, and our 2 children.  We have built an extensive library of music/media together using the same iTunes store account.  I would like to establish a seperate apple id and iTunes store account for each of us going forward but have the ability for each of us to share our purchases.  What is the best way to configure our system and devices in order to allow shared access to media and at the same time allow for individual management of devices including contacts, apps, photos, etc. Please help, I would like to do this once!
    Thank you in advance! 

    OK, seeing as no-one replied (presumably because a lot of this information is on the forums in bits elsewhere) here's how I've got on so far.
    Applications - just went through them.  About the only one I needed was my media server app.  Just downloaded and re-installed, had a quick look back though my email to find the license key and it all went on fine.  Installation never seemed quite right on my old machine so solved that problem too. 
    Movies - New iMovies just copied across the clips and projects into their respective folders.  Seems to have worked but haven't checked it all that thoroughly.  Some duplicate footage here but I can trim this out at some point when I get a chance to go through here. 
    Documents - Just copied these across. 
    Photos - used an app called iPhoto Library Manager.  You can download for free but have to pay to use the part that consolidates your libraries.  Possibly if I was willing to spend a bit more time I could have got away without using this but given I didn't know the state of my different libraries and just how many duplicates I had this was too much of a convenience to ignore.  Also got my library into a state where I can now spend a few hours organising it a bit better with Faces / Events etc. 
    Not attempted Music or iPhone sync yet as been stuck trying to solve a problem with my power adapter. 

  • How do I move organized photos from dropbox to iPhoto and share with another user on the same mac?

    I have about 3,500 photos sitting in dropbox and just purchased my first mac yesterday.  My husband and I each have our own Ipad and our own user id's on the mac.  I moved two of the folders to Iphoto and it shows up on my screen in the right folders.  However, on my Ipad, it shows all of them under one Photostream and not organized.  They don't show up on my husband's "side of the computer" at all. 
    So my questions are:
    1.  How does one mirror their file organization on the Ipad?
    2.  How does one share all of the folders with another user on the same Ipad so they can view folders, and add pictures to the folders if they like?
    Thanks!

    1.  How does one mirror their file organization on the Ipad?
    If you use the Photo Stream, the organisation in iPhoto will be lost - there is just one endless stream.  YOu could sync your photos using iTunes. Then you will see the synced albums in the Photos.app on the iPad.
    See this link:   iOS and iPod: Syncing photos using iTunes
    How does one share all of the folders with another user on the same Ipad so they can view folders, and add pictures to the folders if they like?
    On the same iPad?  Do you mean on the same mac?
    If you want to share an iPhoto library between two users on the same mac, the iPhoto library should be on a separate disk partition or even better, on a separate external disk. Then you can set the flag "Ignore ownership on this volume" to avoid permission problems. Both of you will be able to browse the iPhoto library and can edit the photos within.
    See this support document:  iPhoto: Sharing libraries among multiple users
    If both of you want to keep separate iPhoto libraries but share the photos, you could share selected albums as Shared PhotoStreams and invite each other to browse them. This would require iOS 7. Do you have iOS 7 on your iPad?  Each Shared Photo Stream will be shown as a separate album on your iPad .
         iCloud: Using and troubleshooting Shared Photo Streams
    Regards
    Léonie

  • Best way to share AddressBook on single mac with two users?

    Hey everyone. I'm still pretty new to the Mac world here and I have a quick question. I just got my first iMac this past weekend. I've set it up so that my wife and I both have user accounts on the machine. I was wondering if there is a way or what is the best way to get it so that we can both share the same AddressBook? Is there a sync utility out there for AddressBook like there is for iCal? I would like it so that both us can can read and write to the AddressBook. Thanks in advance!

    Did you have a look at Address Book Server or Address Book X LDAP. Address Book Server let's you replicate your entire Address Book over several networks macs. Each contributing client is able to access all shared contacts, as well as make changes. Address Book Server support synchronisation in both directions.
    Address Book X LDAP on the other hand allows the updating of a centrally shared LDAP directory. It only supports writing to the LDAP directory, but has support for several attribute mappings (inetOrgPerson, abxldapPerson etc). Reading from LDAP is limited to the LDAP integration of the standard Address Book.
    Could you explain what you mean by "categories". Did you mean groups. Sharing of individual groups is supported by both tools.
    Regards
    Alex

Maybe you are looking for

  • "Software Update" crashes upon download

    Last week I was given a new Mac mini as a gift; I upgraded the memory to 2G; did Target Disk transfer from my old G4, then started using it (didn't use it before the memory or the transfer). Software Update crashes at the point when the download has

  • Windows 7 beta,  64-bit, on a Mac Pro

    I'm about to attempt this, so I thought I'd gather together some tips on it. Found this thread re MacBook Pros: http://ourcoffeestops.com/2009/01/guide-windows-7-x64-build-7000-on-a-macbook-pr o/ Has anybody else tried this on a Mac Pro with any succ

  • Error trying to connect via jdbc

    I'm trying to connect via jdbc driver from a java application to a remote db. The code is quite simple DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); Connection conn = DriverManager.getConnection ("jdbc:oracle:thin:@dbhost:orcl"

  • Job hang in RUNNING state

    Hi, Database ver. 11g (11.1.0.7.0) I have created simple job using DBMS_SCHEDULER. begin dbms_scheduler.create_job ( job_name => 'test_job', job_type => 'plsql_block', job_action => 'null;', enabled => true); end; SELECT job_name, job_action, schedul

  • Trex installation error

    hello friends, iam doing trex installtion in my local system, it's in installwebserver and trex webpages. i got bellow error: TRACE      [synxcaccmg.cpp:648]            CSyADsPath::fromString(SAP_ALL\IIS_WPG) Account SAP_ALL/IIS_WPG has ADS path 'Win