Applying authorisation across all view objects

I am using the authentication filter to secure my application and following the section in the developers guide on "authorization rules" was successfully able to retrieve the userid that i logged on with and restrict the records returned for a view object by adding/overriding methods in view object
My question is - i want to be able to do this for every view object in my application - is there an easier way than repeating this same code in each view object ??
Thanks,
Brent

Brent,
You can create an application-level superclass for your ViewObjects: <YourApp)ViewObjectImpl. In this class you can put the methods to restrict the query.
All your ViewObjectImpl's should then subclass your application-level ViewObjectImpl class.
You can also configure BC4J to automatically use your superclass for newly created View Objects. You do this in Tools -> Preferences ->Business Components -> Base Classes.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • How to share a bind variable across multiple view objects?

    Hi, Can someone tell me if it's possible to share a bind variable among multiple view objects within an application module? My web page displays data from different VOs on different regions. But all data should be controlled by the same bind variable, which appears in all queries. How can I achieve this?
    Please help.

    Best to state your JDev version, and technology stack (eg. ADF BC) when posting.
    I can think of 2 approaches.
    1) Create a parent VO based on SELECT :bindVar FROM dual, then create links between your other VOs and the parent
    2) Create a AM client interface method that programatically sets the bind variable in each VO.
    Can you specify your use case? This one tends to come up when discussing effective from/to dated queries.
    CM.

  • Pushing committed rows in entity to all view objects

    I have a Entity object EO1. I have two view objects VO1 and VO2, both based on EO1.
    Assume User 1 and User 2 logged into the application.
    User 1 -> creates one row in VO1 and commits the data.
    User 2 -> he is viewing VO2, can he see the newly created (without re-executing the view object VO2). I mean the newly created row is pused to VO2 ? (is there any solution to resolve this?)

    check section <b> Implementing Database Update Notification Using ADF BC</b>
    in this book link:
    http://my.safaribooksonline.com/book/databases/oracle/9780071622547/active-data-services/ch20lev1sec5

  • Simple serach across all crm objects

    Dear experts,
    according to sap documentation
    http://help.sap.com/saphelp_crm70/helpdata/EN/e8/60b3b80c9646d0af73ad13b52217a0/frameset.htm
    it should be possible to start a search for all objects that have been defined to be used in the central search. The documentation says:
    "The All Objects entry only appears if more than one searchable business objects have been registered in the central search Customizing."
    I've configured four searchable business objects that can be choosen in the menu of Saved Searches. But the "All Objects" entry does not appear..
    Please help me out of this.
    thx and BR, Matthias

    Hi Sreekumar,
    I guess maybe you've solved this issue already, but just in case others might come accross this thread and need answer to this. Please allow me to provide my findings here.
    The All objects will appear with two conditions:
    1.Connectors for search objects are ready.
    This can be checked via transaction ESH_COCKPIT. Some known issue is that after system copy, this transaction might failed with a short dump. Then you might think of executing the report ESH_ADM_INDEX_ALL_SC to delete and recreate everything.
    2.There should be more than one entry with object action = H in the spro Define Central Search menu
    Hope this could do help.
    Hongyan

  • How to apply validation rule for View Object (VO) attributes?

    How to add Validation Rules to VO attributes, just like EO Business Rules?
    I got 2 problem with that:
    1. VO can join multiple tables, and the attribute's validation rules may reference to the fields from multiple entities.
    2. Since the EO Validation Rules only execute before the data actually write to entity (Commit operation). But user may need to input data from multiple pages with only 1 commit.
    I am using JDeveloper 11g with ADF BC.
    Regards,
    Samson Fu

    Just something to point out, the EO validation doesn't fire on a commit (if you mean commit as in the database/AppModule commit). You can also access VO information from the EO validation rules by using view accessors.
    Regards
    Grant

  • Sharing view objects across application modules

    Our application uses multiple application modules because of the complex functional requirements. We have come across sharing view objects among application modules. I want to understand the best practice, sharing view object instances across application modules. These view objects can be based on Entity Objects also.
    Please let me know if there any suggestions.
    Thanks,
    Satya

    Hi Satya,
    You won't be able to share view objects between application modules, but what you can do is to share the bind variables between application modules, if each of your module contains the 'common' view object.
    A solution for sharing data between application modules is provided on this blog: http://andrejusb.blogspot.co.uk/2012/05/solution-for-sharing-global-user-data.html
    You can use this approach to share bind variables between AM's and re-query the same data.
    Hope this helps,
    Florin Marcus
    www.redsamuraiconsulting.com

  • [SOLVED] Row level view object validation (cross-field/multi-field)

    Hi,
    I'm trying to implement a validation rule across multiple view object fields in ADF 11g (11.1.1.2.0). I have 4 fields that the user needs to either leave all blank or there are some pretty complicated rules around which fields should be specified in combination. I'm having trouble using standard expression type validation rules because:
    - The validation rule is always attached to a particular field
    - The validation rule is not executed if the field is left blank. I need it to.
    - I can't control which field the validation message shows in (it always shows in the field on which the rule is attached).
    Is there any way I can hook into the v
    I've found the following example that seems to tackle similar problems:
    +107. Displaying ADF BC Mandatory Field Errors Using UI Hint Labels+
    http://blogs.oracle.com/smuenchadf/examples/
    It's fairly long and complex solution though, which quite a lot of code to be written. This example is from 10g (in 2007). Does anyone know of a more elegant way to achieve this in 11g (in 2010 :) )?

    Thanks John! I didn't realise you could define entity-level rules - now found it in the Business Rules section of the entity properties.
    One more question: is there any way that I can specify which field is in error when an entity-level validation fails? It would be nice if my error message was attached to the field that is in error.

  • How to put validation between attributes at View Object level in BC4J

    Hi,
    Is it possible in BC4J to put validation between attributes at View Object level?
    I know that I can do it at Entity Object level in validateEntity method, but I have several View Objects connected with one Entity Object and don't want to have the same validation logic for all View Objects.
    Thanks for any help!

    It returns errorWhat error does it return?
    John

  • Separate App Module, View Object based on Select not EO: Best practice?

    Hi,
    I have a list of base tables(parameters) that are used everywhere in my application for selection components (List, Combo, Radio).
    I'm considering creating a separate app module with a view object based on query for each table.
    I have created a BaseTableAM application module for managing those tables, Entity objects and View Objects in update mode.
    Those tables are rarely changed.
    Example of table:
    ItemType
    item_type_id = primary key
    name = description
    In the BasetableAM:
    ItemTypeEO entity object
    ItemTypeVO updateable view object based on related entity object.
    Now in my project I will create combo boxes for selection of the item_type_id.
    Separate application module:
    SelectionViewAM composed of View Objects based on Select statements and not on Entity Objects.
    Example of view object ItemTypeViewVO:
    SELECT ItemType.ITEM_TYPE_ID,
    ItemType.NAME
    FROM ITEM_TYPE ItemType
    All view objects in this application module will be read-only and for selection only.
    By basing all those View Objects on select statements not based on Entity Objects I suppose there will be no locking and "value changed" management => less overhead.
    Is this a good practice?
    Being read-only I could have based those View Object on Entity Object with flag updateable set to no, what would you recommend?
    By creating a separate Application Module for those selection view objects, I know that update will not be possible.
    Thank you for your advice.
    Frederic

    See this article for View Object tuning tips:
    http://www.oracle.com/technology/products/jdev/tips/muench/voperftips/index.html
    Are you planning to use this AM as a nested AM inside other application modules?
    If you don't the "selection AM" will have its own, separate database connection/transaction.
    If you do, it will share connection, transaction with its containing "root" AM.
    It may not be relevant to your application, but just realize (which is explained in the article I point to above) that view objects that are not related to entity objects do not "see" pending changes in the current transaction. That feature depends on the VO/EO cooperation. It's fine to build VO's without an EO -- in fact we've made it easier to do this in 10.1.2 in the Design Time wizards -- but you just want to make sure you realize what features it's giving up. If you don't need those EO-related features, then by all means create an Expert Mode VO that's not related to EO's.

  • How to use SPEL for Dynamic View Objects?

    Hi Gurus,
    In Benefits Self Service particularly in the Designate Beneficiaries page, we have a requirement to set the row for Self designation as Read Only. What this means for any plan that you're eligible and that requires beneficiary designation, you are not allowed to designate yourself. Unfortunately this is an intended functionality and the only way to achieve our requirement is thru Personalization. I was able to accomplish this successfuly thru the SPEL functionality. However the view object corresponding to each plan that requires beneficiary designation is somewhat dynamic. For example, Plan A corresponds to BeneficiaryPeopleVO1, Plan B corresponds to BeneficiaryPeopleVO2, Plan C corresponds to BeneficiaryPeopleVO3, etc. The Personalization Page only allows me to use the SPEL for only one view object at a time. So if an employee is eligible for 3 plans that require beneficiary designation and my SPEL points to BeneficiaryPeopleVO1, it will only set the Read Only in Plan A. Plan B and Plan C would still allow self designation. Is there a way I could use the SPEL to work for all View Objects?
    Thanks,
    Ronaldo

    jeanluca wrote:
    I've seen things like this in scripting languages, so I was wondering if things like this are possible in java. Here is an not working example:
    Is something like this possible ?AFAIK, it is only possible in a very limited way as noted above and is nearly always not recommended and definitely not necessary. The variable name has little importance, but OTOH the object reference has great importance. Instead learn about arrays, Lists, and Maps.

  • DataControl and View Object

    Do all View Objects appear in the Data Control ? I presumed so. Anyway I migrated my application to TP4. I created a new view and it does not show in the DataControl. Is there anything I need to do for this ? Other view objects are appearing.

    Ignore this. I closed and restarted JDeveloper and it shows now.
    Do all View Objects appear in the Data Control ? I
    presumed so. Anyway I migrated my application to TP4.
    I created a new view and it does not show in the
    DataControl. Is there anything I need to do for this
    ? Other view objects are appearing.

  • Can I Rename Tags Across all Files in a Book?

    Hi all,
    I have a question about FrameMaker 8 to which I cannot find an answer.
    Can I rename a Paragraph Tag across all files in a book? For example, I have a Paragraph Tag in each of my chapters named "SysResponse" that I want to rename to "System Response". I know that I can do this by going into each file and renaming the tag manually. However, I'm curious to know if I can do this once and apply it across all files so that the "SysResponse" tag renames to "System Response" automatically wherever it occurs.
    If this is possible, it would save so much time; I need to rename several tags (Paragraph, Character, and Table) in preparation for a template transition/clean up. I'd even be willing to do it in an alternate way, such as doing a find and replace in a .MIF file, if this is what I need to do.
    Thanks in advance for any advice!
    Chris

    Chris:
    After backing up your files lest there be a disaster:
    1. At the file level, rename one instance then use Edit > Copy Special > Paragraph Format to put the new paragraph style on the clipboard.
    2. At the book level, in Edit > Find/Change choose Paragraph Tag in the list of Find choices then type the name of the new paragraph style.
    3. In the Change list, choose By Pasting.
    Note, too, that Silicon Prairies Paragraph Tools provides a cost-effective way to perform value-added operations on a book's Paragraph tags...
    Cheers & hope this helps,
    Riley

  • OAF Export button fetching data in one column - view object using union all

    Dear All,
    Export button showing data in one column from  view object,
    View object is based on mulitple queries with union all ,
    Please let me know the solution for this issue.
    Thanks
    Maheswara Raju

    Maheswara Raju,
    As per my understanding you are not able to export all the View Attribute using export Button. Only the attribute which is used with the item/region will get exported.
    There are few work around in case if you want to export the column without showing on OAF Page. Let me know.
    Cheers
    Gyan

  • Is there any software which displays all form objects - tables, views, etc?

    Dear friends,
    I need to know if we have some software product which opens an Oracle form and shows all objects (tables, views, procedures, functions, and so on) accessed by it.
    For each form, this software should show all operations made in each table - that is, whether form creates, updates, reads or deletes data in each table accessed by the form.
    If there's any software which makes such analysis, please let me know. I'd rather be downloading free software, but a trial version or a paid one can be considered as well.
    Best regards,
    Franklin

    Hello all,
    sorry, I don't know whether my 1st message was clear, so I am trying to rewrite it.
    I'm thinking about a software which creates a database objects list report; this report shows all database objects being accessed by the form - for example, it can list all tables being accessed by the form, showing a CRUD (Create, Read, Update and Delete) for each accessed table, or list all packages being executed by the same form, and so on. For example:
    Form: CLI0001.FMB
    Package -> Operation
    PCK_ACCOUNTS -> E (Execute; but that's a suggestion, we can have 'R' instead)
    Table -> Operation
    ACCOUNTS -> CR (Create + Read)
    PAYMENTS -> D (Delete)
    Sequence -> Operation
    SEQ_ACCOUNTS -> R (Read)
    View -> Operation
    VW_CLIENTES -> R (Read)
    If there's any software which can do it, please let me know. Thanks in advance.
    Best regards,
    Franklin
    Edited by: franklinbrasil on 15/10/2008 19:26

  • Any way to set the Finder "Show View Options" across all folders on MacBook Pro?

    Hello. I would like to know if there's a way to set one Finder / folder view setup (Show View Options) across every folder and sub-folder on OSX?
    I don't like having to manually set up the "view options" for each and every folder from scratch .. I have 1 setup / template that I like and would like to apply it across the board to every folder that I ever open on OSX..
    Is this possible?

    At the bottom of the window that opens in Show View Options there should be a button that enables you to make the current settings the default.

Maybe you are looking for

  • Give me some PP important tables and Tcodes for abapers

    give me some PP important tables and Tcodes for abapers thank you, Regards, Jagrut Bharatkumar Shukla

  • Premiere cs4 trail version for MAC - no HDV options

    Hi, I've seen this same problem for PC, but not for Macs.  I've just installed a trial version of Premier onto my mac OS X (or what ever the most recent OS is)  that has never had a previous version on it.  When I make a new project, there is no HDV

  • BI 4.1 supported Java 7

    Hi Friends, Any idea which version of JAVA 7 is more stable in order to create Webi reports in Business Objects BI4.1 SP1? I have read a couple of SAP notes stating not to install the latest version i.e. Java7Update 51 and also there are some problem

  • [SOLVED] Kernel 3.2.1 and USB Touchscreen Failure

    With the upgrade from linux 3.1.9 to 3.2.1, my touchscreen device is no longer recognised. Hoping someone may be able to shed some light on the situation. Here are my Xorg logs for both kernels: http://home.exetel.com.au/padfoot/logs/xorg.log.3.1.9 h

  • Where i can find my bill for Adobe

    Held i have to find the bill for my account. Where i can find this?