Trying to get EMAIL_ADDRESS attribute from the SECURITY_CONFIGURATION.

I am currently editing an existing script that retrieves the list of administrators of a workspace in Oracle Content Services by using the SECURITY_CONFIGURATION and GRANTS attributes. I am trying to find the easiest way that I can retrieve the email address of the accounts that it retrieves as adminsitrators. Here are the attribute requests that are in the code currently:
Item[] Grants = (Item[]) FdkUtils.getAttribute(folderContents[ind], Attributes.SECURITY_CONFIGURATION + FdkConstants.SEPARATOR + Attributes.GRANTS);
Item grantee = (Item)FdkUtils.getAttribute(Grants[gind], Attributes.GRANTEE);
Item[] role = (Item[])FdkUtils.getAttribute(Grants[gind], Attributes.ROLES);
Any help would be greatly appreciated.
Thank you,
Dustin

Try something like the following (using Content Services utility classes in place of the Content DB classes)
Special note..
Notice how we are requesting in the SECURITY_CONFIGURATION_GRANTS_ATTRIBUTES request array for the GRANTEE, and for the GRANTEE, associated attributes from USER_ATTRIBUTES (which is EMAIL_ADDRESS).
  public static final AttributeRequest[] USER_ATTRIBUTES =
    new AttributeRequest[]
      ClientUtils.newAttributeRequest(Attributes.EMAIL_ADDRESS),
   * ROLE item type attributes.
   * Includes PROPAGATING, CUSTOMIZABLE, etc.
  public static final AttributeRequest[] ROLE_ATTRIBUTES =
    new AttributeRequest[]
      ClientUtils.newAttributeRequest(Attributes.PROPAGATING),
      ClientUtils.newAttributeRequest(Attributes.CUSTOMIZABLE),
      ClientUtils.newAttributeRequest(Attributes.REGISTRATION_KEY),
      ClientUtils.newAttributeRequest(Attributes.ACCESS_LEVEL),
   * GRANT item type attributes.
   * Used to retrieve the details of a particular grant, including the
   * GRANTEE and the ROLES granted
  public static final AttributeRequest[]
    SECURITY_CONFIGURATION_GRANTS_ATTRIBUTES = new AttributeRequest[]
      ClientUtils.newAttributeRequest(Attributes.GRANTEE, USER_ATTRIBUTES),
      // roles specified on a grant
      ClientUtils.newAttributeRequest(Attributes.ROLES, ROLE_ATTRIBUTES),
      // Whether the grant includes any Roles only realized when in admin mode
      ClientUtils.newAttributeRequest(Attributes.HAS_ADMIN_ROLES),
      // Whether the grant includes any Roles only realized when in normal mode
      ClientUtils.newAttributeRequest(Attributes.HAS_NORMAL_ROLES),
      // Whether security configuration grant is propagating
      ClientUtils.newAttributeRequest(Attributes.PROPAGATING),
      // Folder from which a security config grant is propogated from
      ClientUtils.newAttributeRequest(Attributes.PROPAGATED_FROM),
   * SECURITY_CONFIGURATION item type attributes.
   * Used to retrieve the security GRANTS.
  public static final AttributeRequest[] SECURITY_CONFIGURATION_ATTRIBUTES =
    new AttributeRequest[]
      // all grants for security config
      ClientUtils.newAttributeRequest(Attributes.GRANTS,
        SECURITY_CONFIGURATION_GRANTS_ATTRIBUTES),
      // grants on security config propagated from a parent's security config
      ClientUtils.newAttributeRequest(Attributes.PROPAGATED_GRANTS),
   * DOCUMENT / FOLDER item type security configuration attribute details.
   * Used to retrieve the security configuration information details for the
   * document/folder item.
  public static final AttributeRequest[] ITEM_SECURITY_CONFIGURATION =
    new AttributeRequest[]
      ClientUtils.newAttributeRequest(
        Attributes.HAS_EXPLICIT_SECURITY_CONFIGURATION),
      ClientUtils.newAttributeRequest(Attributes.SECURITY_CONFIGURATION,
        SECURITY_CONFIGURATION_ATTRIBUTES)
Item folder = ...;
CommonManager commonM = session.getCommonManager();
folder = commonM.getItem(folder.getId(), ITEM_SECURITY_CONFIGURATION);
Item securityConfig = (Item) CommonUtils.getAttribute(folder, Attributes.SECURITY_CONFIGURATION);
Item[] grants = (Item[]) CommonUtils.getAttribute(securityConfig, Attributes.GRANTS);
int length = (grants == null) ? 0 : grants.length;
for (int gind=0; gind<length; gind++)
  Item grantee = (Item) CommonUtils.getAttribute(grants[gind], Attributes.GRANTEE);
  String email_address = (String) CommonUtils.getAttribute(grantee, Attributes.EMAIL_ADDRESS);
}-Matt.

Similar Messages

  • TS1702 how do i delete from the startup disk? I am trying to get Mountain Lion from the App store and it says that the purchase was not complete because i need 4.06 GB space to download OS x 10.8. and to remove items from my startup disk to increase space

    how do i delete from the startup disk? I am trying to get Mountain Lion from the App store and it says that the purchase was not complete because i need 4.06 GB space to download OS x 10.8. and to remove items from my startup disk to increase space. How?
    Thanks

    You can use iCloud with 10.7.5. You do not need to upgrade to Yosemite. You should provide a minimum of 15 GBs of free space or 10% of the hard drive's capacity, whichever is greater.
    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • Need to get EMAIL_ADDRESS attribute from SECURITY_CONFIGURATION

    I am currently editing an existing script that retrieves the list of administrators of a workspace in Oracle Content Services by using the SECURITY_CONFIGURATION and GRANTS attributes. I am trying to find the easiest way that I can retrieve the email address of the accounts that it retrieves as adminsitrators. Here are the attribute requests that are in the code currently:
    Item[] Grants = (Item[]) FdkUtils.getAttribute(folderContents[ind], Attributes.SECURITY_CONFIGURATION + FdkConstants.SEPARATOR + Attributes.GRANTS);
    Item grantee = (Item)FdkUtils.getAttribute(Grants[gind], Attributes.GRANTEE);
    Item[] role = (Item[])FdkUtils.getAttribute(Grants[gind], Attributes.ROLES);
    Any help would be greatly appreciated.
    Thank you,
    Dustin

    Hi,
    somehow I feel this is the wrong list for this question. or how does this relate to JDeveloper and ADF (except for that we also program in Java)
    Frank

  • HT203167 I bought a new computer and am trying to get my library to the new one and purchase some more music.  I downloaded itunes but can't get any further.  thanks

    I bought a new computer and am trying to get my library from the old computer to the new one and download some more songs.  I have downloaded itunes to my new computer but can't get any further.  sorry, I am a computer dinosaur.  Thanks for your help.

    You need to contact Apple, either through the link in that article or by phoning them and asking for the Account Security team.
    (85855)

  • How do you get a video from the video app to your photos

    I am trying to get a video from the video app on the iphone to go to my photos, but I can't figure it out,,, Help?

    http://support.apple.com/kb/HT4083

  • Getting User Attributes from an Active Directory LDAP

    Hello all.
    I want to extract attributes assigned to a user in the Active Directory LDAP and make them available through the getPropertyValue property in Javascript. I know that a user's System Attributes can be accessed with getPropertyValue but I have not found a way to get specific attributes from the LDAP and make them available as specific attributes in xMII. System attributes like "EmailAddress1" seem to transfer from the LDAP but others don't. Anyone have any ideas?
    Thanks.
    ...Sparks

    Sparks,
    If you're using 11.5 or 12 actually they should all map into the system as session properties.  You can use the following URL to verify your session properties:
    http://<xMIIServer>/Lighthammer/PropertyAccessServlet?Mode=List
    If you are not seeing the attributes you expect then your Attribute Query for User or Role is incorrect for your LDAP system and you need to change the LDAP configuration queries.
    -Sam

  • I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe

    I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe product installing.  I have used the Adobe Cleaner Tool many times and uninstalled other Adobe Products but neither has worked.  I have uninstalled/reinstalled this CD version of Dreamweaver several times when changing computers and after having computer issues. A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.  Please help.

    A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.
    Absolutely not. You are misinterpreting things. The activation check never happens when just running the installer, only much later. It means what it says - there is another "install" pending/ active on your system, meaning somewhere there is an (invisible) process still blocking things. Either way, since you haven't provided any real technical info, we can't advise specifically. if you are on Windows, you may want to check your task manager and terminate any setup.exe and msiexec.exe processes plus potentially may need to manually fix/ delete some registry keys. For anything beyond that you will have to be much more specific.
    Mylenium

  • HT4993 i am trying to install msnbc app from the app store and keep getting an error message.  The app will not install.  What can i do?

    i am trying to install msnbc app from the app store and keep getting an error message.  The app will not install.  What can i do?

    This is asked and answered many times each day.  The forum search bar is on the right side of this page.
    Disable your firewall/security software and try again.

  • TS1702 Hi, I'm experiencing a problem with app I've just purchased from iTunes, I have tried every piece of advice from the "iOS: Troubleshooting applications purchased from the App Store" and still nothing is working. I would like to get my refund on thi

    Hi, My name is Bheki Yende
    I'm experiencing a problem with an app I've just purchased from iTunes, I have tried every piece of advice from the "iOS: Troubleshooting applications purchased from the App Store" and still nothing is working. I would like to get my refund on this pls.
    This is an inconvenience, I don't understand why I have to contact the developer for a faulty product in your store.
    I've paid iTunes to get this, so iTunes must fix this problem for me or give my money back.
    Thanks

    This is a user forum, you are not speaking to Apple here.
    You will need to contact iTunes support here, regarding this issue. They will usually respond within 24 hours.

  • HT1766 Hi I am trying to restore my iphone from the itunes back up and it is asking me for a password, I don't ever remember putting a password in. how do i get the password reset?

    Hi I am trying to restore my iphone from the itunes back and  it is asking me for a password, I don't ever remember putting a password in. how do i get the password reset?

    Marrtin S wrote:
    Hi I am trying to restore my iphone from the itunes back and  it is asking me for a password, I don't ever remember putting a password in. how do i get the password reset?
    You can't get it reset; if you could there would be no point in having it. If you have an encrypted backup there are two ways this could have happened:
    You checked "Encrypt Backup" in iTunes at some time in the past, either intentionally or by accident
    You have a corporate MS Exchange account and your Exchange administrator installed a security profile on your phone that requires the phone'a contents to be encrypted. This, in turn, requires the backup to be encrypted for obvious reasons.
    In either case you were prompted for a password the first time you backed up after whichever of these happened. So think about what you might have entered for a password at that time. Fortunately you get an unlimited number of tries. Other threads on this subject have shown that it is always a password known to the user, so it wasn't something made up by iTunes. Also, everyone who has figured it out has found it to be a different password type, so try your Apple ID password, your computer's login password, your WiFi password, your corporate domain password, etc. And try passwords that may have been changed since your first backup. As a last resort there is a professional password cracker available, but it isn't cheap - it's targeted at the law enforcement market - from Elcomsoft. There are also some scam password crackers available that don't actually work and possibly steal your information. It's likely that a developer of one or more of these will post a response with a link (possibly hidden) to their "product". So before clicking any links you might want to install the Web of Trust plugin that keeps track of scam sites and warns you. http://www.mywot.com.

  • I am trying to play some videos from the internet and I get the message missing plug in.  I click on "missing plug in" and download adobe flash player.   When i try to log in again to play videos, I still get the message missing plug in.  Any suggestions?

    I am trying to play some videos from the internet and I get the message "missing plug in".  I click on the message and downlaod adobe flash player as prompted.   When I log in again to play the videos,  I still get the missing plug in message.  Any suggestions??

    that used to happen to me all the time! I would recommend going to a different sight or attempting to download it again ( you may have missed a step it can be tricky).

  • Sometimes when I'm trying to download an app from the app store when it is trying to load I get the error message cannot connect to iTunes store.   I am on the internet.  Any ideas?

    Sometimes when I'm trying to download an app from the app store when it is trying to load I get the error message cannot connect to iTunes store.   I am on the internet.  Any ideas?

    I have the same issue.  How did you solve it?

  • I'm trying to download an app from the App Store and I get a message the my Apple ID can't be used in iTunes and to try another. Never happened before. Any ideas?

    I'm trying to download an app from the App Store and I get a message the my Apple ID can't be used in iTunes and to try another. Never happened before. Any ideas?

    Someone else said Apple's servers are having problems tonight. Just try again later.

  • I'm trying to download Bioshock Infinite from the app store and get a message saying there isn't enough disc space; but the Bioshock support page says I only need 30G and I have 60 free on my hard drive

    Whoops, I think I should have posted my message here...Anyway, I'm trying to download Bioshock Infinite from the app store but get a message saying I don't have enough disc space.  The game requires 30 G and when I look at my internal hard drive it shows 60 G free. 
    What gives?

    Jenniferwood2829 wrote:
    ... so I don't understand why I still get this message when I show I have 15GB available in iCloud?
    It means you do not have enough Space on your Device and need to create More Space on Your Device by Deleting some items off your device.

  • Getting a 1809 error when trying to remote control PC from the Console.

    This is message i get when trying to remote view or remote control PC.....
    1809: An error has occurred while generating a session key for
    encryption.The remote session cannot be initiated. Contact Novell
    Techical Services and specify this code.

    This is for a 1807 error. My error is and 1809 error. Is there somewhere
    else to research on a 1809 error when trying to remote control PC from
    the Console?
    > Perhaps.................
    >
    > http://support.novell.com/techcenter/search/search.do?
    cmd=displayKC&docType=kc&externalId=10094808html&s liceId=&dialogID=2356487
    >
    > --
    > Craig Wilson
    > Novell Product Support Forum Sysop
    > Master CNE, MCSE 2003, CCNA
    >
    > Editor - http://www.ithowto.com
    >
    > (Seeking Full-Time Expert? Drop me a note :> )
    > <[email protected]> wrote in message
    > news:09i_e.2044$[email protected]..
    > > This is message i get when trying to remote view or remote control
    PC.....
    > >
    > >
    > > 1809: An error has occurred while generating a session key for
    > > encryption.The remote session cannot be initiated. Contact Novell
    > > Techical Services and specify this code.
    >
    >

Maybe you are looking for

  • How to Push the into SAP ( XML data converted into IDOC )

    Hi i am getting XML file from Non SAP system.I need to push XML data into SAP on daily basis with out using XI as the middleware. I know if i get text file will use BDC's or LSMW. But i am getting data in XML format and then i need to converted into

  • Update manager hangs up

    Over the past few weeks I've repeatedly been notified upon opening Acrobat Professional that there are updates to download (7.0.8). But every time I try to download them, the Update Manager gets to about 95% done "Installing Update 1 of 3" and then s

  • E-mail tie up - question for Mods

    I recently had BT infinity installed and came back to BT for my broadband.  While I was with my other broadband provider I took my BT e-mail address (and sub accounts) with me.  I was paying BT per month to keep my BT e-mail address, now I am back wi

  • Locking down anyconnect client profile

    I was wondering if there is a way to lock down the anyconnect profile on a clients machine.  Basically we are using certifcates to authenticate so the client can make a VPN connection.  We have enabled the certifcate match function to check for IPSec

  • Help with Illustrator Script! Batch convert files including subfolders - please help! :)

    Hello, I honestly have tried reading the other answers and researching to try to solve this problem.  I'm sorry for my ignorance in this area.  Please help!!! I'm trying to make a script (for Illustrator CS2) that will batch convert several files to