Store user preferences accessible from view layer and ADF BC

Hi
I'm working with JDeveloper 11.1.2.1
We have an application with an application-level shared application module which contains VOs with bind variables to generate language dependent LOVs. From these VOs have to access the language.
We want to store user language and other user preferences in the future and these can be accessed by the view layer and ADF BC.
In addition, we want that application will be passivation safe and works properly in a cluster environment.
At first we opted to save the language in the HTTP session, but we access it from ADF BC ... and we would not want to break the MVC pattern. This article
   Andrejus Baranovskis's Blog: Bad Practice for Session Scope Access in ADF BC
says that the MVC pattern only breaks when our application module can not be executed without the UI. We differentiate when run individually and when run as a logged in user to avoid this rupture. ¿Is this acceptable solution?
Otherwise, what is the best option to preserve the MVC pattern and also the passivation does not affect the proper execution of the application and not cause problems in the cluster (HTTP sessions are replicated, but the rest?)
I have seen that there are 2 more possible methods :
- Transient View Object
- User data map
The user data map discussed in this article seems an option,
   Andrejus Baranovskis's Blog: Solution for Sharing Global User Data in ADF BC
but perhaps complicates the development and I don't know if shared application module would work properly. For example, we need the language of the user in the application-level shared application module VOs, but the user data map is available only in the session of the root application module no? If we have a method that gets the language within the shared application module, ¿when the method getSession.getUserData() execute, it will access the user data in the root application module or return null?
If you could tell us if we are correct using the HTTP session or else it is better that we use the user data map, it would be a great help.
Thanks

Hi,
this sounds like something that belongs in your Application Module. I would create a client method which would do your LDAP checks before calling your view object to create a new row. Have the client method return the result based on the success of your LDAP search.
Call this AM client method from the backing bean of the JSP and return a page flow based on the outcome of your client method.
The actual transaction with the database happens in your doDML method of the Entity Object (override the doDML method). But I would still implement this business logic in the AM.
regards,
Brenden

Similar Messages

  • Calling User Preference event from within portlet

    Not sure if anybody else has looked at this but we are in the process of rolling out a new G6 Portal and on a number of portlets want to take advantage of the ability to turn off the portlet header. However in doing so you loose access to the inbuilt support for providing access to the User Preference, if one has been defined as part of the portlet definition. This is relevant on a number of portelts that we want to migrate to the new G6 portal.
    So rather than try and re-invent this from scratch using a different 'link' in the portlet itself we were wondering if you can 'call' the inbuilt user preference functionality from within the portlet code. i.e. When a user clicks on the link within the portlet it performs exactly the same action and interaction within the portal as if they clicked on the User Preference icon in the portlet header.
    We have had a look around to see if this is possible but not come up with anything yet so thought we would seek comments from this forum.
    Many thanks in advance,
    Ross Ellard
    Devonport Management Ltd

    Hey Ross,
    I just realized I have to do the same thing on a very limited scale (3-5 portlets).
    SO I just wrote a little bit of (shoddy) code to show community preferences based on group membership.
    It works for me, but I get the feeling your looking for something like communityactionsdata geared toward portlets, which unfortunately I dont think exists. If you put it in as an enhancement request then support will contact you to discuss your options.
    Here is the code that I'm using for now:
    <pt:standard.choose>
    <pt:standard.when pt:test="stringToACLGroup('group=1,755,760;').isMember($currentuser)">
    <immg border="0" src="htttp://localhost/imageserver/plumtree/portal/public/img/action_portlet_edit.gif">
    </pt:standard.when>
    </pt:standard.choose>
    The only problem is that the preferences submit button refreshes the popup to the portal. So I might need to tweak that a hair so it just closes the popup.
    edited to prevent the forum from trying to use the code I provided
    Message was edited by:
    geoffgarcia

  • Shared folder in win 8 isn't accessible from win xp and win 7

    I have shared my drives in win 8.1. Everything was ok i was accessing my drives form everywhere easily then i installed
    eset smart security because of it my sharing was blocked because firewall was managed by eset and i was unable to configure its firewall so i uninstalled eset after that my drives were accessible from win 8 and mac os but i cannot access my drives from all
    win 7 and win xp systems but some of them can access those drives..

    Hi,
    This problem probably caused by ESET, please check its installation folder and delete them completely. Also search Registry and delete all ESET items for test.
    If problem persists, please use
    autoruns to check Windows startup driver and application, then delete ESET related items.
    Roger Lu
    TechNet Community Support

  • How to get user browser locale from view object

    Hello,
    Currently, I have a view object that's used to retrieve localized messages from data base. The resource table looks like the following:
    MSG_ID VARCHAR2,  --> specify the L10N resource reference
    LOCALE VARCHAR2, --> used to specify the user locale (browser locale)
    MESSAGE VARCHAR2  --> real message
    I'm creating a bind variable (let's say it 'RequestLocale') in this view object to specify the locale and to get the expected L10N message. Currently, the value for this bind is set as an Expression with value of 'viewObject.DBTransaction.session.locale.toString()'.
    After defining the view object (and the bind variable like above), I created a table by dragging the view object to a jsf page, and run and open the page in a web browser. It seems that the messages (specified by the locale) could be retrieved correctly. But once I change the web browser language settings to another preferred language, and refresh the page, I found that the message is still for the previous locale, and not refreshed to the locale (language/country) that's newly set in web browser.
    Am I supposed to do more thing to get the 'locale' work by using the adf view object bind variable?
    Thanks.

    Hi,
    after changing the locale, can you try a re-direct of the page to see if this changes the locale. In ADF, the locale is set by the HTTP request handler in the ADF lifecycle ensuring that the locale is passed to the middle tier. So the expected change is to come from the view layer (which is why I think you need a redirect). Another option to check is to access the HttpRequestObject from the FacesContext --> External Application to check the request locale
    Frank

  • Where does WebMail store user preferences

    I have enabled WebMail on my server. Each user that logs in is able to change its preference settings at WebMail, e.g. # of msgs. shown per page, etc..
    This is okay, but when I delete a user, I guess that there is a config file left somewhere.
    Has anybody an idea where WebMail stores the user preferences for each user and how to properly delete them when removing a user from the system ?

    /var/db/squirrelmail/data/
    See pdf doc: Properly Deleting OS X 10.4.x Server Mail Users, on following page...
    http://osx.topicdesk.com/downloads/
    -david

  • Is it possible to copy groups/paths from one layer and paste to other multiple layers?

    Note Layer > Duplicate will not work in this regard, because I want to copy one group of paths/elements from one layer to other existing layers, not to a new layer.
    I have not found a command for this, nor have I found any scripts. Note I'm using CS3 but have been thinking about an upgrade.
    Thanks in advance.

    I actually use the Release to Layer (Sequence) function frequently to build my animated steps, for example when animating some text in a way that Premiere won't handle. This releases all the intermediary objects in a transition to new layers, but the background image still needs to be manually pasted into each newly created layer.
    I have read about "Paste to all Artboards," but that feature was not included in CS3. I believe it was released in CS5. Perhaps I need to get an upgrade. Thank you for your kind replies.
    I am a Mac-based CAD user going back to the mid-1990s, and it's interesting how many of the helpful, time-saving features we took for granted in those drawing programs are either not included in Illustrator products or are just being added in recent releases. I would still be using programs such as PowerDraw/PowerCADD if they hadn't gone out of business. Even with some of the expansion packs I've used, Illustrator doesn't hold a candle to PowerCADD.

  • Retrieve all user id's from LDAP directory and populate in Oracle table.

    Guys,
    We've implemented LDAP authentication functionality in our application using Oracle's dbms_ldap package objects.
    Now,Is there any way that I can retrieve all user ids from the LDAP directory and store in an Oracle table?
    The distinguished name of authorized user as it appears in our LDAP directory is below:
    dn=uid=ab0472,ou=people,ou=xyz,o=world.
    Now I need to fetch all users uid's from the LDAP directory and populate in an Oracle table.Can somone help me with thoughts.
    Thanks,
    Bhagat

    Have a look at attachments API, since this also does the same thing except that it puts the file in fnd_lobs instead of the custom table.
    Thanks
    Tapash

  • Jsf 1.1 to jsf 1.2 migration - from-view-id and wildcards

    In our jsf application, we have a lot of navigation cases that use:
    <from-view-id>*</from-view-id>
    This worked in JSF 1.1, but now trying to get things to work with jsf 1.2 in glassfish v2 (build 19) I am seeing this error/stacktrace in the server.log file (which points at the 1st faces-config.xml case of a * in the from-view-id tag):
    javax.faces.FacesException: Can't parse configuration file: jndi:/server/talkshoe/WEB-INF/faces-config.xml: Error at line 1482 column 31: cvc-pattern-valid: Value '*' is not facet-valid with respect to pattern '#\{.*\}'.
         at com.sun.faces.config.ConfigureListener.parse(ConfigureListener.java:1587)
    From the documentation that I have found, it looks like * is still the valid wildcard...
    Has anyone else hit this issue or have any other suggestions?
    Thanks.
    Rich K.

    I'm currently migrating to 1.2. Our wildcard navigations are working with * or by omitting the from-view specifier as specified (section 7.4.2 of JSF 1.2).
    One of my rules wasn't producing an outcome because I had from-action instead of from from-outcome, but after I changed this it worked fine.
    This was with Netbeans 5.5 running SAS and JSF 1.2.

  • I had store download my contacts from my work and personal blackberry.  Now Ihave duplicate contacts .  How do i eliminate them?

    I had store download my contacts from my 2 Blackberrys now I have duplicate contacts.  Howdo I eliminate them?

    Open your "Contacts" app.
    Tap the contact you wish to delete.
    Tap "Edit" in the top right corner.
    Scroll all the way down to the bottom and select "Delete Contact."
    Alternatively, you could try this $0.99 app from the appstore called "Remove Duplicate Contacts and Events."
    Here's the link: http://itunes.apple.com/us/app/remove-duplicate-contacts/id312352867?mt=8
    I've never personally tested this application out but the reviews look promising.
    Or...
    If you're using a Mac, you can use the Address Book.app.

  • Applescript to delete from selected layer and page

    Hi,
    This is part of a bigger script, but this is where I am having the problem. Hopefully very easy to solve, but driving me mad.
    I want to delete a text box from the active page only, and only from one layer.
    I can get it to work on one layer, but all pages. And on one page, but all layers.
    Could someone please help me write the line to select both active page and layer "slug".
    Thanks,
    Matt
    tell application "Adobe InDesign CS5"
    activate
              set myDocument to active document
              set myActivePage to the active page of the active window
              set myLayer to layer "Slug" of myDocument
              tell myLayer
        tell myActivePage
           ungroup groups
           delete (every text frame whose contents contains "delete me")
        end tell
              end tell
    end tell

    G'day
    It's a hassle, isn't it.
    I've only got CS2 at home, so I haven't had a chance to test this in CS5 — but you need something like this :
    tell application "Adobe InDesign CS5"
        activate
        tell active document
            tell active page of layout window 1
                try
                    ungroup groups
                end try
                set theseFrames to (every text frame whose contents contains "delete me")
            end tell
            repeat with thisFrame in theseFrames
                if item layer of thisFrame is layer "Slug" then
                    delete thisFrame
                end if
            end repeat
        end tell
    end tell
    hope that helps
    m.

  • How do you take information from one layer and switch it to another?

    I am trying to figure out how to take pictures and text that I have already placed on one layer and switch it to another layer. I have like 50 pages worth of information and I am trying to look for the easiest way to do this. In illustrator and Photoshop, its pretty easy. Wanting to know if it is the same because I have been trying but it is not there. Just in case it matters, Im using CS5 on a pc. Help is greatly appreciated.

    Hi Martin,
    Please follow the below steps.
    Step 1
    Create the separate layer. Select the content you want to move.
    Step 2
    Go to check layer panel, near the pen symbol icon, the below box drag to move up to the image layer, see sample
    Step 3
    This option use spread wise content, it will complete the task with fast. If more faster, please raise as question to Scripting Forum, they can suggest the tool.

  • Error with view link and ADF table Tree

    Hello
    ( Note: View objects are created based on static data but not from database tables)
    I created two view objects "SuiteViewObject" and "FamilyViewObject" which are based on static data( stored in collection) but not on database entity. A veiw link "SuiteFamilyViewLink" is created from the above two view objects. An ADFTreeTable is created from the above view objects and view link. When run the jspx page containing ADFTreeTable, following error is occured in the browser.
    JBO-30003: The application pool (staticviewobjects.staticappLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "FamilyViewObj2" because it is a destination in a view link
    Any help on the above error message.?
    Thanks in Advance
    Kristi
    Bangalore
    Message was edited by:
    user576892

    Hello
    The above error is coming becuase view link's SQL query expects tables. But in my case I dont have tables, view objects are created from static data source(collection).
    How to create a view link from view objects which are created based on static data source(collection)?

  • Calling a css user created method from jspx page in ADF faces

    Hi all,
    Can anyone help me out to solve an issue calling a css user created method from a jspx page.
    Note: The css method is not the default css method. It needs to be called using 'styleClass' attribute in any tag.
    Thanks
    Neha

    Hi,
    I am not an expert in CSS so I don't know what a css method is. However, CSS can be applied to components via EL accessing a managed bean that returns the sytle text
    Frank

  • Made a bad change to login options under user preferences, changed from "List of users" to "Name and password". I shut the computer down, now I can't login in when I turn the computer back on.  What can I do to fix this problem?

    Have Migrated data from IMAC to Macbook twice.  Because I had too many admin ids under user and accounts preferences, I was trying not to delete the extras but that they wouldn't all show at login time.  Under Login Options, I clicked out  "List of Users" and clicked in "Name and password".  Can't remember whether I did anything else.  I shut down the computer and turned it back on to test the change.  I get a dark grey screen with all my admin ids in circled pictures plus one for guest, but doesn't let me do anything with any of the admin ids.  I clicked on any one and nothing happens.  IF i click on the guest circle, it gives me a message that the computer will restart with only Safari allowed.
    Since I haven't been able to connect my macbook to my IMac so I can login to the macbook through the Imac, I can't get to my macbook.  There must be a way to fix this problem.  I expected to see places to enter name and password but nothing is allowed to enter.  Please help!

    First thing I would do would be to boot in to Lion Recovery (Command+R on boot) and run Disk Utility, both disk and permissions repair.

  • How to fetch user specific data from View?

    Hi
    I have a requirement in which I need to display table data specific to Session_user only. Scenario is if user belongs to a specific region he should be able to see data related to that specific region only.
    I am thinking of passing session_user name in view query but do not know whether it's possible or not.If possible how to do this.
    What is the best way to achieve it?
    Thanks
    Vibzz

    Hello
    Vibzz,
    First thing is that you need to implement security in your application, if you configured security then, Take a session scope bean in your un bounded task flow
    inside that session bean , you can get the information from security context, then write a static block inside your session bean and modify the fallowing code according to your requirement
    ADFContext adfc=ADFContext.getCurrent();// get the context instance
    SecurityContext securityContext=adfc.getSecurityContext();// instantiate the SecurityContext
    String username=securityContext.getUserName(); // returns the username from the security Context who are currently logged in
    Once you written this code just assign this username to session scope variable
    Map sessionScope =
    (Map)ADFContext.getCurrent().getSessionScope().put("UserName", username);
    So that the username with the key UserName will be available throughout your session
    and Apply in where clause according to the user logged in, or else you may directly use
    adf.context.securityContext.userName at the bind variable what ever you used inside your view criteria.

Maybe you are looking for

  • Z10 Facebook and Twitter notifications

    I  receive very rarely notifications from Faceboond and Twitter. Never received direct message notification from Twitter. Anybody has the same issue?

  • Moving scanned  B&W photos to I photo

    I have an Epson V300 Photo Scanner connected to a Mac Book Pro. I can scan all pictures into the Pictures folder. I can easily move the color pictures over to Iphoto however when I try to move a B&W photo it says it's an unreadable file. How can I mo

  • Shuffle-by-genre or shuffle-by-artist, anyone?

    hey there, consider this my wish list to apple... unless anyone knows how to do this... pretty self-explanatory, does anyone know how to shuffle-by-genre or shuffle-by-artist on the ipod (5th gen.) again, if it can't be done, sounds like a pretty eas

  • Publishing BC4J Components as a Web Services Link????

    Hi, can someone give us the link about the tutorial "Publishing BC4J Components as a Web Services" for Jdeveloper 10g? Thanks

  • IFS as a service

    Hi. How can I make "ifsstart" to run as a service on the server (Win 2k advanced server), and not just as a regular application. The way it is now, I need to have my user logged in on the server in order for ifs to be up!