JAAS: How to create Group of Resources to define permissions hierarchically

Hi,
Is there a way to create a group of resources in JAAS ? What I mean is to create a group of pages, a group of bank Accounts ( say loan accounts ), a group of business rules, etc. I have observed that Group extends Principal, and a subject can have several Groups, apart from the User Principal. Similar example implementations for a Role can also be found on the net. But Group in this sense is a group of Users or a group of Roles,or may even be a group of groups.
Instead, what I want is to group some protected resources by a name so that I can grant permissions to a group of users over a group of resources (say pages). Infact JAAS does not mention the concept of resource in a concrete way. Every Permission implementation class has defined the protected resource in its own way, so I'm wondering if it is possible to define a group of resources when resource it self is abstract concept in JAAS.
Let me explain my problem a little more clearly. Let's say I have Accounts, Pages, and Business Rules as resources. There can be several types of accounts , several categories of pages, and several categories of rules. I want to create Loan Accounts Group, Savings Account Group, Administration pages Group,support request pages group, end-user pages Group, etc so that i can define a "view,edit,suspend" actions over this Group to a user or another user group.
here is an example of what i want to do :
grant Principal com.example.product.GroupPrincipal "AdvacnedUsers" {
permission com.example.product.GroupPermission "CurrentAccounts" "view,edit,suspend";
That would save me the effort of granting permission on every Current Account in the database.
Heirarchical permission assignement is being done in FilePemission, but that is based on recursiveness or wildcard criteria, which is not possible in the above mentioned scenario. Could some one help me understand how this works in JAAS ?
Thanks and Regards,
Samba
Edited by: MasterJ on Feb 26, 2009 12:34 AM

You're defining the Permission classes. It is completely up to you what the name and the actions actually mean.

Similar Messages

  • How to create an Virtual resource Adapter in SUN IDM 7.1?

    Hi,
    Can anyone know how to create an Virtual resource Adapter in SUN IDM 7.1?
    Regards
    Damodar

    Hi Dinesh,
    Try using waveset.adminRoles
    Thanks

  • How to create Groups in UME instead of LDAP(AD) when use writeable AD

    Hi experts,
    Our portal user UME are now connected to AD LDAP with dataSourceConfiguration_ads_writeable_db.xml (enabled SSL).  So when creating user and groups in portal, it is created in AD, but if I want create groups in UME, how it can be done? Any help? Urgent! Tks!

    Hi,
    Check the datasource configuration tags <homeFor> and <notHomeFor>.
    With them you can set DB as <homeFor> group and <notHomeFor> for AD.
    Check this for more:
    http://help.sap.com/saphelp_nw70/helpdata/EN/8c/a3fc3f37c2e569e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3b/e9fc3f8fc2c542e10000000a1550b0/frameset.htm
    Regards,
    Praveen Gudapati
    Updated the link to Type-Based Data Partitioning

  • How to Create groups and targets....

    Hi guys,
    Here is a chance of getting some easy points
    I know that it may seem a dumb question but I can't find out how to create a transport group and a transport target....
    I've read help.sap and some other threads related to the subject but all I was able to get was:
    help.SAP.com
    "Procedure
    Defining Groups of Business Systems
    Define groups of business systems for different areas of use (for example, testing and production) and assign an Integration Server to each group.
           1.      On the initial screen of the SLD, choose Business Landscape.
           2.      From the dropdown list box for the input field Groups, choose Edit Groups…. "
    Well I can't find where is the dropdown list....:S
    I'm using SP10 and all I have in the SLD are 3 options:
    1.Technical Systems
    View and Define Systems and Servers
    2. Landscapes
    View and Configure Groups of Systems
    3. Business Systems
    View and Configure Business Systems for Use in Exchange Infrastructure (XI)
    If I choose "Landscapes", the only thing I'm able to do is to create a landscape from a specific type (Adminitration, General, Transports, NWDI systems, etc....)
    If I create a landscape with the type 'Transports" and then associate a technical System, I thought that in my Business System I would be able to choose this lanscape....
    But The only thing I have is group and transport target and they're completely empty, showing "No additional groups available" and "No targets"...
    Can anyone help me and get some easy rewarding points?

    Hi Chirag,
    I've read the following link, but the question is....
    - Where is the link to create transport groups? That is my only question It's as easy as that
    Found it...sorry I knew it was easy
    Edited by: Gonçalo Mouro Vaz on Dec 20, 2007 5:13 PM

  • How to create group account number

    Hi friends,
    To prepare a consolidation financial statement i have created group chart of account.... but in every operational chart of accounts there is one field which is asking group account number....
    WARNING MESSAGE: "Account 1000 does not exist in chart of accounts GTML"
    GTML is my group chart of account
    While saving it shows
    ERROR MESSAGE: "Corporate group account 1000 not defined in group chart of accounts GTML"
    where i have to create it???    how to create????
    Regards,
    Vijay.T

    1. Create group COA in OB13
    2. Assign this group COA to your operation COA in OB13(Consolidation > Group COA)
    3. Create GL accounts for your group COA in FSP0
    4. While creating the GL account for operation COA, you have to mention group coa gl code under consolidation data in COA tab in FS00
    Rgds
    Murali. N

  • How to create groups in AD using AD group process definition

    Hello,
    I want to create group in AD when i create group in OIM & i had achieved this using JNDI & was able to create groups in AD
    successfully,now i want to create groups in AD using AD Group process definition which contains create AD Group task.
    Can anyone suggest what flow should be followed to achieve this ?
    Thanks & Regards,
    Rahul Shah

    I think you can do R & D to acheive this via Event Handler.
    1. Apply Event Handler on Group Object Form.
    In Event handler class.
    2. get the parameter from ADITresource.
    3. Make JNDI call.
    4. Create the same group name in AD.
    There may be easy approach.
    Which version of OIM you are using?
    Thanks,
    Kuldeep

  • How to create groups and assign users thru program

    Hi,
    I am planning to create groups by program and assign users to them based on some condition.Once users are assigned to those groups we need to change the Language value for those users in User profile
    We are using Central User Administration.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    probably you can use this code to create a group
    IGroupFactory groupFact = UMFactory.getGroupFactory();  
    IGroup group = groupFact.newGroup(wdContext.currentContextElement().getGroup()); 
       group.commit();
    for this required com.sap.security.api.jar

  • How to create Groups in contacts

    Hello,
    I have a Z10 blackberry and I want to creat groups in contacts to be able to send messages to several personns at the same time.
    Could you help me please.
    I would like to know also if it is possible to call a personn when we are in the text messages application and if it is possible to send messages to a contact from the application contacts.
    Thank you very much for your help.
    Marie-Annick
    Solved!
    Go to Solution.

    Marie-Annick wrote:
    I have a Z10 blackberry and I want to creat groups in contacts to be able to send messages to several personns at the same time.
    Hello Marie-Annick, the group addresses feature is currently not available ON the device itself.
    Marie-Annick wrote:
    I would like to know also if it is possible to call a personn when we are in the text messages application and if it is possible to send messages to a contact from the application contacts.
    In the text messages, touch the name of the person at the blue top > you're taken that contact's Address Book entry > touch the number to call.
    From the Contacts application with a contact open touch and hold the number you wish to call. You'll see entries Call XXX or Text XXX.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • BRFplus: How to create an instance of User-Defined Expression Type?

    Hi,
      I've created an expression type in a System Application and marked its Access Level as Global. I've created a Class & Interface and assigned it to my Expression Type, and activated it successfully.
    Now how do use this Expression Type to create expression in my Customizing Applications?
    Do I have to make any more code changes like extending any more classes or implementing additional interfaces? (I've already created a dummy Query Class and UI class)
    Any documentation or example of how to create a user-defined Expression Type and how to use them will be very helpful for me.
    Thank you & Best Regards

    Well I was going through the PDF documents available on SDN. I came across a document which referred to a document on creating user-defined expression.
    Document Name: [BRFplus XML Export and Import|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20462066-a086-2d10-a999-c9075767ce48?quicklink=index&overridelayout=true].
    The code sample for creating user-defined expression types is available in the How to Create Custom Expression Types document
    Pg. 24
    I had a hard time looking for that document. Couldn't find it though.
    Thank you Mr. Ziegler, now I know that currently there isn't any documentation on User-Defined Expression Types. I'll be awaiting for your  document on this
    Any overview about the steps to be followed in creating a custom expression type, with a few simple steps on how to do it over here would be greatly appreciated. Especially on how to get it seen in the Create Expression Sub-Menu. Also do I have to code a web dynpro for the UI?
    Thank you & Best Regards.

  • How to create groups.

    Hi
    I have an oracle apex workspace (htmldb.oracle.com) and when I click on admin Application Administration>Manage Application Express Users. I get all the options of creating devloper/group/end users. But if I do it on my local machine (Apex 2.2) I dont get the same options i get
    User Privileges
    Roles:
    CONNECT RESOURCE DBA
    Direct Grant System Privileges:
    CREATE DATABASE LINK CREATE MATERIALIZED VIEW CREATE PROCEDURE
    CREATE PUBLIC SYNONYM CREATE ROLE CREATE SEQUENCE
    CREATE SYNONYM CREATE TABLE CREATE TRIGGER
    CREATE TYPE CREATE VIEW
    how can I replicate what I get in my oracle apex workspace on my local machine?

    also how do I querie this?
    I know yesterday you helped me with
    select * from APEX_WORKSPACE_APEX_USERS to get a list of users.
    Now I ran this on my local pc:
    SELECT * FROM wwv_flow_users
    it bought back more info than when I ran
    select * from APEX_WORKSPACE_APEX_USERS
    on a APEX 2.2.1.00.04 machine. whoever if I try to run
    SELECT * FROM wwv_flow_users
    from the APEX 2.2.1.00.04 machine it does not bring back anything any reason why? is it because I am not a DBA/ADMIN for this machine as I am classed as a developer when i run the apex_workspace query or is it not include in v2.2?

  • OIM: How to create a custom Resource with Form

    Hi -
    I'm integrating OIM and OAM and am trying to create a process through which users can request access to different Applications protected by OAM. Some of these apps require capture additional information from the user.
    I was thinking I would create a Resource for each application so the user could be provisioned or request access and the process form for each resource would contain whatever custom fields that app needed.
    So while I'm quite familiar with the built in things such as AD process forms, and resources, etc... I've never created something like this from scratch. I'm guessing each resource need to do 2 things:
    - Put the user in a group in whatever ldap directory (OAM would look at this group for access policies for the respective application)
    - Gather some required fields
    Here's what I tried so far:
    - Create Resource Object for My App
    - Create Process Definition , type Provisioning, Object Name=My App
    - Create Form in Form Designer UD_MYAPP, set Object Name = My App
    - Set Process Definition's table name = "UD_MYAPP"
    When I try to provision it fails in a Pending System validation. When I click on View or Edit on the Process Form, I get a page saying "A system error encountered, contact your admin...."
    Can someone give me a high level overview of what I need to do? Any key fields I should pay attention to?
    What's best practice with something like this, it's got to be a pretty common thing, right?
    Thanks much
    Alex

    I seem to remember that you get that error when you don't have any fields on your process form.
    I wrote up a high level list of tasks for this on my blog a while ago: http://iamreflections.blogspot.com/2010/08/oim-howto-leverage-standard-connector.html
    You will also need to add a non conditional task to your provisioning process that sets the object status to "provisioned".
    Hope this helps
    /Maritn

  • How to create group bom for multiple plants with different company codes

    Dear all,
    In my current scenario we have 5 Company codes with a plant with each company. The same kind of materials exist in all the 5 plants, so what i want is when i create any BOM, that BOM has to extend in all the company codes, as with GROUP BOM i can able to extend the same in only one company code.
    So how to do this?
    Thanks in Advance
    Bhushan

    For that first extend all the materials to all the plants... In one plant create a BOM for the material..
    In all other polants in CS01,   click COpy from .. There you mention the matreial and the plant in which the BOm is alerady available..
    karthick

  • How to create groups with non-local addresses

    I want to create a mailing group that consists of non-local addresses like [email protected], [email protected]
    How to do this ? I know that editing /etc/aliases redirects to local accounts only. The above is possible by editing /etc/postfix/virtual and do a postmap on this file. Is there any alternate way ?

    I use an include file for my groups - easier to modify...
    In /etc/postfix/aliases...
    some_groupname: :include:/path_to/groupname.txt
    In the 'groupname.txt' file (textedit, plaintext file), a list of the members...
    localemailuser
    [email protected]
    After any edit of the group file... sudo newaliases
    -david

  • How to create Groups and Group Leaders in Clusters.

    Hi,
    As we know in unicast there is one to one communication and there are groups to control the Thread
    Management, How the Groups and the Group Leaders are created.
    Regards,
    Vardhan.

    Unicast clustering uses TCP/IP sockets to pass cluster messages between members. To avoid requiring each cluster member
    to have connectivity to every other cluster member, WebLogic Server uses a group leader strategy whereby the oldest member
    of the group (in other words, the server that was started first) is designated the group leader. All members of the cluster
    connect to the group leader so that the group leader acts as the relay point for cluster messages between members.
    If the group leader goes down, the next oldest member becomes the new group leader.
    As you can imagine, the group leader strategy works well for small groups but becomes less efficient as the number of members
    of the group grows large. As such, WebLogic Server uses a multiple group leader strategy where it limits the number of members
    in a group to 10. If the cluster is larger than 10 members, WebLogic Server splits into two or more groups, each with their own
    group leader. The group leaders themselves are all interconnected to minimize the number of hops that a cluster message must
    traverse to reach all cluster members.

  • How to create a VISA resource without "VISA FIND" or Serial Poll

    I'm very new to LabVIEW and my experience so far with GPIB/VISA is to pass a GPIB address (from user control) to a C# function I created.  The function will build the correct VISA resource string, and try to connect using a message-based session one at a time to each board address. 
    I'm trying to do a similar action in Labview but so far, the only method I have seen is to use the drop-down Visa Resource.  When I use this, it scans the bus to find all the physically connected devices on the bus but the unfortunate side effect is that all the listeners go into remote mode which typically resets the devices to their default remote connection settings.
    ie: This can turn off a the power o/p of a power supply that I didn't want to control at  that moment etc.
    Can anyone tell me the proper or recommended method?  If I had a user control that allowed the user to enter in a GPIB address, would I just create the resource string myself on the block diagram and feed this into a VISA -OPEN .vi?

    Connect a string control to the VISA Open VI
    LabVIEW Portal

Maybe you are looking for

  • Performance Problems Bex 7.0 and Office 2007 Workbooks

    Hi we had a performance Problem with Bex 7.0 and Worksbooks in Office 2007. The Workbooks are created with Office 2003 and runs with good performance but in Office 2007 the performance is inacceptable. E.g. open Workbook with Office 2003   --    30 s

  • Cancel and Issue cheque for a clearing document

    The vendor was issued a cheque  in 2008 and the vendor line item is cleared too in 2008 and those documents are archived.Now the vendor says that cheque wasnt enchased.Now we want to cancel the cheque and re issue new one.But the documents are archiv

  • Need inputs regarding Costelement

    Hello CO experts, Am  a SAP Project systems person and regarding one of our requirement mentioned below i request your suggestions/inputs. We are using transcation CJR2 to plan primary cost against WBS elements for each period/month of the year. Now

  • FPGA sine generator

    NI 工程師您好: FPGA Sine Generator中的 Look-Up table size 是指什麼?    如果While loop的迴圈速度是1000us,此時FPGA Sine Generator的Frequency設定為10Hz,那輸出的sine wave會是10Hz嗎?    謝謝.

  • ITunes Store Never Works For Me!!!

    I'll tried to go into the iTunes store for a few days now and it only shows an error 502. I get into the store but then when I try to click on something or search for something it starts to load, but takes a long time. After a few minutes it tells me