Instance Level Security (user level security) ?

Hi, I would like to have instance level security in my ejbs. That is I want to verify that the person calling my CMP ejbs is the one who logged-in. I don't want the logged-in user accessing someone else's information. I would like to know what is the best way to implement this?
I was thinking along the line of having code in my cmp's ejbload method. The code would find the user owner of the record it belongs to by navigating to the owner using the cmr relationships. Let us say that there are three cmp beans: user, order and orderlineitem with the following relationships:
user has 1-to-n relationship with order. Order has 1-to-n relationship with orderlineitem. So, in my orderlineitem->ejbLoadmethod, I would try to find the user to it belongs to by navigating to user bean and finding the userlike this:
String userName = getOrder.getUser().getUserName();
if (userName.equals(ec.getCallerPrincipal().getName)) {
System.out.println("user is right");
} else {
System.out.println("user is NOT not the right user");
Is this a good idea? Is there a better way to do this?

When I go to application server controlHow you are accessing the ASC? Please also check your IE settings.
Additionally you can review
http://download.oracle.com/docs/cd/B25221_04/core.1013/b25209/tools.htm#i1055655
I do think that the error is related to role. You can also check the above link under heading (Creating Administrative Users and Assigning Administrative Roles).
Hope it is helpful.
Adith

Similar Messages

  • Is it possible to set character set at instance level?

    hi all,
    I have some confusion.
    say my database character set is AL32UTF8.
    and i want tio set charcter set of instance is WE8MSWIN1252
    Is it passible to set character set at instance level?
    Please reply with yes or No or why?
    Thanks & Regards,

    Hi,
    It's DataBase Level. One best example would be when you try to change the character or characterset conversion by using "Csscan" you can check the log or report. Which can guide what the things are happening. Instance - I think you might be referring to "Session".
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • Need Instance level failover in Windows Azure

    Hi,
    I have windows azure and sql server 2008 r2. I need to incorporate instance level failover (like widows failover cluster). How do i configure failover cluster in windows azure.
    Please dont recommend as Always on. since it has only DB level failover. But i need instance level failover. Please recommend if there is any other alternatives other than windows cluster failover.
    Thanks,
    Saravanan
    Please vote if you find this posting was helpful or Mark it as answered.

    Hi Durai,
    According to your description, since the issue regards Windows Azure SQL Database. I will help you post the question in the Windows Azure SQL Database forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=ssdsgetstarted. It is appropriate and more experts will assist you.
    We need to verify if you install SQL Server in the Windows Azure Virtual Machines, and the High Availability and Disaster Recovery (HADR) solutions for SQL Server in Windows Azure Virtual Machines include AlwaysOn availability
    groups ,database mirroring ,log shipping , and backup and restore with Windows Azure Blob Storage Service.
    Most SQL Server features are supported on Windows Azure Virtual Machine with some exceptions.
    However,  SQL Server Failover Clustering is not supported.
    For more information, see:
    http://support.microsoft.com/kb/2721672/en-us
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Database Level Tracing or Instance Level Tracing

    Hello,
    How do I know whether database level tracing or instance level tracing is enabled ? This is on 10g R2
    Thanks,
    R

    I amnot sure that I have heard about instance level tracing but normally tracing is enabled either through sql_trace parameter set in the parameter file or through some trace event. So you need to check your parameter file for any such setting.
    HTH
    Aman....

  • About instance-level access control

    http://www-128.ibm.com/developerworks/library/j-jaas/index.html
    this article refer to a concept of the instance-level access control, but i don't know how to use it in the web-based application�H
    can u give me a example?if i use the database . how to use this concept?

    please!!!
    please!!!
    it means something to me!!!
    thanks!!!

  • Instance-level access control

    http://www-128.ibm.com/developerworks/library/j-jaas/index.html
    this article refer to a concept of the instance-level access control, but i don't know how to use it in the web-based application�H
    can u give me a example?if i use the database . how to use this concept?

    please!!!
    please!!!
    it means something to me!!!
    thanks!!!

  • Portlet Preferences at the instance level

    Is there any way to specify the portlet preferences at the instance level using
    Workshop? Currently I have to go to the desktop and set my instance level preferences.
    I would much rather set them during development using workshop and have the desktop
    read those in.
    Thanks
    Regards,
    Kunal

    Can you clear on what you mean by instance level.
    I would think this way
    1)using workshop You created a portal, and n number of portlets.
    2)you can set preferences for each portlet in workshop
    3)you create a desktop and change the preference as you like
    Did that sound related

  • Instance Level Parameters

    Hi all
    Can anyone tell me what are the SOA Suite instance level parameters,their default value &
    recommended value and where are they located?
    Thanks in advance
    Regards
    Senthil R

    Your question is very wide, and can not be described in this forum. To find out all the configuration / audit level / process parameters I must point to the following sources:
    http://download.oracle.com/technology/tech/soa/soa_best_practices_1013x_drop3.pdf
    http://download-west.oracle.com/docs/cd/B32110_01/core.1013/b28942/tuning_bpel.htm
    http://download-west.oracle.com/docs/cd/B14099_19/integrate.1012/b14058/life_cycle.htm
    Marc

  • Run shutdown oc4j instance automatically when user Turn off/Log off

    Hi All,
    Can you help me anyone to run the shutdown oc4j instance automatically when user Turn off/Log off the application or the computer?
    I want to use any Schema level trigger if possible to solve the issue.
    I am using oracle Developer Suite 10g and Database 10g as well.
    Arif

    Ah, sorry I misunderstood your question (probably not enough coffee in the morning); anyway there are folders for scripts which should be executed on startup / shutdown or logon / logoff:
    Startup
    %SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\StartupShutdown
    %SYSTEMROOT%\System32\GroupPolicy\Machine\Scripts\ShutdownLogon
    %SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogonLogoff
    %SYSTEMROOT%\System32\GroupPolicy\User\Scripts\LogoffWrite a script to startup / shutdown your OC4J (probably calls to startinst.bat and stopinst.bat) and place them in the apropriate folders.
    cheers

  • Is the CQ5 lisense per instance or per user on the instance?

    Is the CQ5 lisense per instance or per user on the instance?

    Please ask your Adobe sales rep for licensing models available to you. There is no general answer to this question.
    Jörg

  • Instance-level authorization...

    Hi, i'm working on an application using Toplink. We connect to the database using an internal connection pool with a common user/password. We need to filter any results returned to the client based on the requesting user's authorizations, probably using an ACL with privileges, principals, etc. So for instance, a query might return a list of Report objects but the user can only see a subset of the list. This application is not using EJB. Has anyone implemented something like this? i was thinking of either a custom built solution within this application or extending JAAS.
    Any suggestions would be greatly appreciated.
    -Tim Watson

    Yes, without VPD you will need to engineer some way to filter the data at the database level.
    Potentially other Fine Grained Access control is available ( database dependant), or you could create TopLink queries that filter directly based on the user that is executing them. For example you could add an extra field to the selection criteria and provide the user specific value in the row passes to executeQuery
    ReadObjectQuery roQuery = new ReadObjectQuery(IsolatedClass.class);
    ExpressionBuilder builder = roQuery.getExpressionBuilder();
    Expression expression = builder.get("name").equal(builder.getParameter("NAME"));
    expression = expression.and(builder.getField("SEC_ROLE").equal(builder.getParameter("Sec_Role")));
    roQuery.addArgument("NAME");
    roQuery.addArgument("Sec_Role");
    Vector arguments = new Vector(2);
    arguments.set(0, "Bob");
    arguments.set(2, currentUser.getSecurityRole());
    clientSession.executeQuery(roQuery, arguments);--Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Access a instance level variable from activity in a subflow

    I have a flow such that it calls a number of subflows chained together.
    I have defined a instance variable to store a flag when a perticuler activity has been executed.
    in one of the subflows, there is an activity which i need it to update the parent level instance variable when it has done its task.
    but, i'm not sure how to get access to the parent level instance variables from an activity with in a subflow.
    I have PAPI code polling on the instance wating for this variable to change.
    any ideas?

    in a clip on the main timeline:
    var mc = this.parent;
    in a clip on the main timeline that was added with a loader:
    var mc = this.parent.parent;
    the first parent would be the loader
    the second parent is the loader's parent, or, the main timeline

  • Undersanding RBAC vs. Class Level and Instance Level Permissions

    I am finding situations where the Administrative User can perform actions (permissions) on objects that fall outside the assigned scope for those objects. For example, I create Public Task Sequences for our Departmental Admins and assign those Task Sequences
    to the Public scope. I also create a Public Role that only gives the user the ability to view (Read Only) those publically scoped Task Sequences. I also assign those same Administrative Users to another Role which gives them all of the permissions for the
    Task Sequences Package Class but those role permissions are scoped to their specific departmental scope therefore should not apply to any of the objects (Instances) under the publically scoped objects. Unfortunately, I am finding that users can perform actions
    on those publically scoped objects, like moving them, even though they don't have the Move Object permission for the Public Role. There are other cases like this so I am trying to find the documentation that explains which permissions affect all objects (instances)
    under a specific Class and ignores scope?

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    Within the CM12 R2 Toolkit, look at RBAviewer, this will help you understand what each user can or can’t do.
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Groovy Expression at instance level.

    Hi,
    Iam using JDev 11.1.1.5.0.
    I've an ViewObject and then applied ViewCriteria. Now I want to apply groovy expression sum(column1). Is it possible? Please suggest, if you have any clue.
    Thanks,
    Samba.

    Hi,
    Going through this would give you the basics of groovy expressions : http://www.oracle.com/technetwork/developer-tools/jdev/introduction-to-groovy-128837.pdf
    -Arun

  • Generate one instance for all users in a Group

    Hi All,
    We have BO 3.1 with  FP 2.6.
    There is a report that needs to be schedule in such a way that it will generate only one instance for all the users belonging to u201CGlobalu201D community while for rest of the users wonu2019t see any instance of it. They will simply run the report on demand providing the prompt values.
    I am able to run the report for whole u201CGlobalu201D group (using u2018schedule foru2019) option but the problem is it creates as many instances as the number of users I have in this group. As users of this group have same data level access, so primarily theyu2019ll get same report output. That is why it is not desirable to run this report for all of them instead there should be a way it creates one instance after each schedule for the whole community.
    Please suggest.
    Thanks,
    Chandra

    Hi Chandra,
    I think there are still ways to use publications to achieve what you want.
    For instance, I created the below scenario:
    - Created 3 users (pub1, pub2, pub3) and put them in group (publication users)
    - I created a publication and specified the "publication users" group as the enterprise recipients
    - Set the destination to be Default & BusinessObjects Inbox.  Set the "Send As" option to Shortcut instead of copy.
    - Under Advanced, I set it to one db fetch for all recipients.
    - Scheduled this and it ran the report once, and created a shortcut to that object in each users inbox (user in the group specified)
    This meets most of your criteria.  The rest of it should be handled by security on the objects/folders.
    Another option may be Object Packages with the proper security setup.
    Thanks
    JB

Maybe you are looking for

  • Mouse problem in Adobe Presenter Video Creator

    I have Adobe Presenter 9.0.2 build 173, 64-bit and I seem to have a strange thing going on in Adobe Presenter Video Creator when I use it to do screen recording to demonstrate software. If I allow it to change my screen resolution as recommended by t

  • How to Create a Procedure/Function to Return more than one value

    How I can write a function/Procedure to which one value is passed and it will return nine values. How I can use these values

  • Error in connecting webdynpro with oracle

    Hi       while connecting webdynpro with oracle, i am getting this type of error. I imported the classes12.jar file also. <b>Error:</b> java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver The <b>coding</b> which i used to connect is as

  • Photoshop Elements 9 Locking Up

    Immediately upon loading Photoshop Elements 9 the program locks up. Restarting does not help.  Running 64bit quad core processor. 8 Ram.   Any Ideas.  This has been a constant problem since loading on new compurter last year.

  • Episode numbers appear as a "-"

    Hey everyone, I just started hosting a podcast on posterous.  I used feedburner to send my podcast to iTunes.  When searching for the podcast, everything turns up find in iTunes and on the Podcasts app catalog portion.  However, when I subscribe to m