Dinamicaly assign Worksets, Pages, iViews to a Role using the APIs ?

Hi,
Has someone built a Role via Webdynpro coding?
Hope someone has done it and could help.
Thanx in advanced!
Kind Regards,
Gerardo J

Hi Shanti,
thanx alot for the help! actually folowing documentation in the help.sap.com I found this:
"PCD Roles: These are semantic objects that represent collections of content that can be assigned to a user.
There is no public API for accessing these roles."
here I paste the link
http://help.sap.com/saphelp_nw70/helpdata/en/44/43863b2e641193e10000000a155369/frameset.htm
I Guess then is no way to modify the Role via API to achieve this, or this is only on 7.0 and now it is posible on 7.1?
Thanx in Advanced!
Kind Regards,
Gerardo J
Edited by: Gerardo Jiménez on Jan 31, 2011 11:58 AM

Similar Messages

  • Assigning users to role using Security API

    Hi,
    I am trying to assign portal users to portal role using the IRoleFactory and IRole class of Secutiy API from my web dynpro application.
    For getting the role , i can use either the uniqueId of the role or the uniqueName of the role.(Using methods of IRole class, getRole(uid) or getRoleByUniqueName(uname)).
    The UniqueId of roles contains some hash values and cannot be used. For example ROLE.PCD_ROLE_PERSISTENCE.6dT95vZpyNWQHm59z7B9FxAM/fg=.
    And the for getting the role using the uniqueName, i need to give like pcd:portal_content/other_vendors/<folder name>/<my prefix>.<rolename>. Which is also not feasible.
    Is there any way to get the role only using the role name that we give while creating it?
    Thanks and Regards,
    Venkat

    Hi,
         Check if this helps.
    try  {
         IRoleFactory rfact = UMFactory.getRoleFactory();
         IRoleSearchFilter isf = rfact.getRoleSearchFilter();
         isf.setDisplayName ("*",ISearchAttribute.LIKE_OPERATOR,false);
         ISearchResult rit = rfact.searchRoles(isf);
         while(rit.next()!=null){
             String roleName = (String) rit.next();
             IRole role = rfact.getRole(roleName);
             response.write("nRole:" + role.getUniqueName());
      }catch(Exception e){
           response.write("exception");
    U will get list of roles. U can pass these directly or use String tokenizer to separate the role name alone using '.' as separator.
    Regards,
    Vijai

  • Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. Any help?

    Pages app unexpectedly quit whilst I was in the middle of a document. I can now not open it AT ALL. I find it's not just that particular document that won't open, but any of my Pages docs will not open using the current version of Pages. The reports of the app unexpectedly closing each time, automatically went to Apple, but I am not sure what happens with them then. Does anyone know how to help me with this? We live in a very isolated region so rely on internet help. Thanks

    I also managed to read a few other discussions about Pages and files not being able to open. I actually went to the last back-up and restored the computer from that and everything seemed to work ok again, which is great!...advice from another discussion I think you may have been involved in PeterB. Thanks for the advice...also this advice, as I will make a note of trying to open using the Shift key if it happens again and see what happens...might be an easier first option than restoring from a back-up. Thans heaps for the help!
    I was interested to read some of the other discussions where it was stated that Pages '09 seems to be a better option to use. I have both installed, so I will lkeep this in mind. Thanks heaps!

  • Mail / pages / numbers quit unexpectedly while using the BJPDELocalizedString2 plugin  in Word for mac a error mesage comes up when trying to print "Error, no pages found/file name"

    Mail will not print, pages will not print . . . pages / mail quits unexpectedly while using the BJPDELocalizedString2 plugin.  Tryed in Word for Mac. . .Error message; no pages found / filename This all happened when I unstalled brother P-touch.

    Restart the computer in safe mode. Certain caches maintained by the system will be rebuilt.
    Safe mode is much slower to start up than normal. The next normal startup may also be somewhat slow.
    When the login screen appears, restart as usual (not in safe mode) and test. There's no need to log in while in safe mode.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t start in safe mode. In that case, ask for instructions.

  • Minimize the number of roles using the Bolt-onu2019s

    I read a artical from SDN it discribes the process of maintating Orgnization Authorization in saperate Role. This helps to reduce the no of roles been created. Below is the discribtion. And I tolly agree with the concept . Read below .
    >According to Artical
    >You can make use of the Bolt-on concept to reduce the total number of profiles that need to be built in an implementation. An example will clarify the benefits of its implementation.
    >Letu2019s consider the purchase requisitions. There are two business rules exist for approving the purchase requisitions. One is the plant code, and the other is the Release code. Assume that you company has 10 different Release codes, for various approval ranges. Now, on the other hand, if you have 20 plants, you need to have 20 X 10 = 200 roles. That is 10 roles per plant.
    >By using the Bolt-on concept, this can be achieved by removing the authorization objects which control user status (these objects contain no organizational value component) from the transactional role and placing them within their own unique global role with the plant code. This way, you will end up with creating 10 transaction roles without the plant code and 20 global roles, which will have only the plant code in it.
    >Further, the appropriate combinations can be determined by the business requirements.
    >This approach reduces exponentially the number of roles that need to be built. The end result is that 30 roles are required to achieve the same objective.
    >The same Bolt-on process can be implemented when the authorization check is done on an organization level. However, this process will be viable only when the number of roles that needs to be created are more.
    As of my understanding we need to isolate all Auth objects from a role and make a saperate role specially only for Org structure. And then give combination of those Org Roles to provide access for those Org Units.
    My Question is
    1) how do we Identify all Auth obejcts that give access to a Org unit from a given role.
    2)How to make a role that gives Authorization for a perticular Org Unit only. (And that role should not have any authorization for Tx or activities)
    3)What is recemmended to maintain Org unit Authorization ? Is Bolt-onu2019s mehod suitable to maintain all Org Unit Authorizations?
    Edited by: Hussain Sehorewala on Jul 2, 2008 4:11 PM

    >
    Jurjen Heeck wrote:
    > It is non SAP-standard and I generally advise against them for just that reason. It requires a lot of documentation and checks to make sure no-one destroys the concept just by following SAP guidelines. Also upgrades can cause a lot of problems with bolt-ons.
    >
    > Jurjen
    I agree 100% with Jurjen.  It can work well but in the vast majority of times I have seen them, they have led to reduced control, reduced auditability and basically been a mess.  SecureInfo have a tool which builds roles in this way but it also has appropriate controls in place too.
    If you look at the following scenario:
    You have a functional role and an org role.
    If you have org roles for each func role then you are in the same situation as you are with derived roles.
    If you start to combine auth objects to build a bigger org role then you are assigning additional auth objects over and above what the transactions in the func role require.  We all know that to properly secure something, you need to control by auth object so in this case you are already potentially opening yourself up to giving excess access.
    6 months later you want to remove a tcode from the func role.  If you maintain std SAP method properly then the auth objects will also be removed too if it not shared.   With lots of these objects in the org role then you will need to cross check every single tx in the func role with every object in the org role.  Most people don't bother & that's one of the reasons why this build method can get very, very messy as you lose the link between t-code and object that SU24 provides.
    I've used this method in BW a few times & it works really well, but for R/3 it usually ends up with more trouble than it solves.   There are situations where is can make things easier but I would only use it as a supplement to a standard method role build.

  • Displaying error page when not entitled to use the portal

    Hi,
    We are using BEA Portal 8.1 and would like to display an error page to a user
    who is authenticated but not entitled to view any of the portal resources. Does
    anyone know how to do this?
    Here are more details:
    Users are authenticated by Netegrity Siteminder when they logon to the LAN. An
    authenticated user may or may not be entitled to use the portal site depending
    on attributes passed in the header by netegrity. These attributes values are stored
    as user profile properties. Visitor entitlements have been created based on these
    properties and pages/portlets are then entitled through these visitor entitlement
    roles.
    If a user is not a member of any roles, then they should be redirected to a page
    indicating that they do not have permission to access the portal. Howe can this
    be implemented?
    Thanks.

    Hi Lilybiri,
    Thanks for your quick response. I followed your suggestion and verified my Adobe ID on acrobat.com.
    Now I can enter the collaborate function. However, everytime when I tried to send it to myself (for test purpose) I got another error message "You need to enter a valid emaill address". I saw someone else on this forum has met the same problem. Do you have any suggestion on what is the possible reason for this to happen?
    Again, thanks for the fast response. You have been helping me and other ppl so much.

  • How do I scan multiple pages into one pdf file using the PIXMA MG7520 on Windows 8.0? Please help!

    I recently received a PIXMA MG7520 for a gift.  It works great with my lenovo laptop/tablet running on Windos 8.0.  The one drawback to the HP all-in-one that it replaced is it does not have an ADF.  That being said, there must be some way to scan multiple pages into one pdf file.  I need help figuring thing out.  Thanks in advance!
    Solved!
    Go to Solution.

    Hi mdtolbert54,
    There is a program that comes with the printer called the IJ Scan Utility that can assist you with scanning multiple pages into a single PDF document.  To do this, please follow these steps:
    1. On your keyboard, press the Windows key.
    2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
    a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.
    b.) In the DATA FORMAT field, use the drop-down arrow to select the PDF (Multiple Pages) option. 
    c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6. Once all settings have been selected, click the OK button at the bottom of the window to save the changes. The IJ Scan Utility main screen appears.
    7. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed. Scanned items are saved in previously selected folder location specified in the SETTINGS... window.
    If you find that you need advanced scanning options such as adjusting resolution, brightness, contrast, saturation, color balance, etc. in addition to the options selected above, please click on the SCANGEAR button on the IJ Scan Utility Main screen, then adjust the items as necessary.
    Once the items above are set for document scanning, in the future, you will only need to launch the IJ Scan Utility, then press the DOCUMENT button to perform the scan (unless you want to make changes to the settings).
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I have a macbook pro using version 10.7.4 and I can't print multiple size pages in a pdf file using the brother laser printer hl-5470 dwt

    I have a Macbook Pro using the 10.7.4 version. I recently bought a Brother HL-5470DWT Laser Printer. I can't seem to tell the printer to print multiple size pages in my pdf files.
    No matter what I do it still prints all the documents as 8.5x11! It isn't pulling the paper from both printer trays.
    Please Please help me out....
    deb

    Contact Brother tech support.

  • When I try to access my Bank's website from the Bookmarks Toolbar the page does not load.Yet using the same address in Internet Explorer it loads fine.Any ideas

    My Bank's address is :- http://www.santander.co.uk/csgs/Satellite?appID=abbey.internet.Abbeycom&canal=CABBEYCOM&cid=1237889419188&empr=Abbeycom&leng=en_GB&pagename=Abbeycom/Page/WC_ACOM_Home.
    All I get is a rotating green circle & the message "waiting for "service.maxymiser.net"".
    Yet when I use the same address in IE it launches ok'
    My O/S is Windows 7 Home Premium Sevice Pack 1 (x64 based}

    I can access the Bank's site from the link in your post above.
    Try clearing cache and cookies. Also consider what settings you have on any privacy or ad-blocking software. Blocking ad's may speed things up or it may conceivably block access.
    If you have problems with only one site and only in Firefox, the problem is often outdated or corrupt files relating to that web page. I suggest you try the following.
    *Note <br /> It '''looks''' complicated but check the site after each numbered step, the first or 2nd step may solve the problem<br /> The linked articles have '''pictures''' ( screen shots) of the actions you need.
    # Try using the sites home page or a direct link and not a bookmark.<br /> Try link http://www.santander.co.uk
    # Reload website using an extra step to use avoid using the cached info.
    #* Hold down the Shift key and left-click the Reload button <br />OR Press '"Ctrl + F5"' |(Mac ) "Cmd + Shift + R"
    #Clear the cache, and cookies only from problem websites.
    ##<u>Remove the cookies </u>for a single problem website <br />Use: FirefoxButton / Tools → Options → |Privacy| → "Remove individual cookies"<br /> See: [[Delete cookies to remove the information websites have stored on your computer#w_delete-cookies-for-a-single-site]]'''_delete-cookies-for-a-single-site'''
    ## <u>Clear the cache</u> <br />Use ''FirefoxButton / Tools → Options → |Advanced | → Network >'' <br /> See: [[How to clear the Firefox cache#w_clear-the-cache]]_clear-the-cache
    # If the above did not work try in Firefox'[http://kb.mozillazine.org/Safe_Mode s] Safe Mode to check if an extension or some other factor causes the issue. <br /> Use: FirefoxButton /Tools → Help → ''Restart with Addons disabled... ''. <br />See: [[Troubleshoot Firefox issues using Safe Mode]] <br />also see [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • DPS: pinch and zoom function not working on all pages within folio (v30 tools using the pdf setting). What would cause some pages to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

    What would cause some pages in the same folio to pinch and zoom fluidly, while other pages appear a bit sticky? Could it be a button on the wrong layer that's not allowing the pinch and zoom to work?
    I do have a "go to state" button that enlarges graphic to full page on the page. Could this be cancelling the pinch and zoom functionality? Would a box with text wrap ON affect the ability to pich and zoom? What else may be causing this?

  • Pages Software keeps crashing while using the Instant Alpha tool???

    Hey All-
    While working in Pages that came preloaded on my new iMac-it keeps crashing while using the Instant Alpha Tool???  Any help on what to do for this????
    Rather frustrating-thanks for any help.
    CPEI59

    Hey All-
    While working in Pages that came preloaded on my new iMac-it keeps crashing while using the Instant Alpha Tool???  Any help on what to do for this????
    Rather frustrating-thanks for any help.
    CPEI59

  • I have upgraded twice but home page still says "your not using the latest version. Upgrade now"

    When I open Firefox and the home page comes up it tells me that i am not using the latest version and should upgrade. I also run into a stop scrip issue when I go to clear the history. It usually takes three tries to clear the history.

    I would have to guess that your home page is pointing to one of the what's new pages from a previous Firefox release. Nothing to be concerned with here. You can change your home page to point wherever you'd like by clicking Preferences/Options->General and changing the home page option.
    For the stop script history issue, do you know what web page is causing the issue?

  • Users are not removed from role using UME API

    Hello,
    I am using this code to remove users from a batch of roles that I have.
    Everything is running OK, no exception is thrown and at the System.out I see all the actions that needs to be taken correctly. The problem is that if I'll go later to one of the roles the users are still assigned to it. Any idea what I'm doing wrong here?
    try
    IRoleFactory roles = UMFactory.getRoleFactory();
    IUserFactory users = UMFactory.getUserFactory();
    IRoleSearchFilter filter = roles.getRoleSearchFilter();
    filter.setUniqueName("<My_filter>", ISearchAttribute.LIKE_OPERATOR, false);
    ISearchResult sresult = roles.searchRoles(filter);
    if ( sresult.getState() == ISearchResult.SEARCH_RESULT_OK )
         while(sresult.hasNext())
         String id = (String)sresult.next();
         IRole role = UMFactory.getRoleFactory().getMutableRole(id);
         Iterator i = role.getUserMembers(false);
         while (i.hasNext())
                         String uid = (String)i.next();
              IUser user = users.getUser(uid);
              role.removeUserMember(user.getUniqueName());
              System.out.println("Removed user: " + user.getUniqueName() + " from role: " + role.getDisplayName());
         role.save();
         role.commit();
    catch (Exception e)
         manager.reportException(new WDNonFatalException(e), false);

    Solved it!
    It needs the FQDN User ID...

  • HT5239 Where can I get Apple FIPS Role guide for user so that I can use the APIs from my application

    I am trying to use Apple's FIPS certified crypto library's crypto APIs in my application to do the crypto operations. For that I was asked to refer the "Role Guide : User" in the nist document. But I couldn't find the same. Can I know where I can download the same.

    The OS X and iOS programming documentation is the Cryptographic Services Guide, and related manuals.
    AFAIK, what you're probably after is the Common Crypto stuff that's part of libSystem.  See man CC_crypto for some introductory details of that, and there's a sample program available.
    The devforums.apple.com developer forums and the developer.apple.com web site will be better resources for programming questions than are these ASC forums (and that includes my answer here!), and the Fed-Talk mailing list might be of interest for this question.
    Given the usual arc these security questions follow, I'd suggest ignoring what I've posted here and directly contacting the Apple Developer Technical Services (DTS) folks, and ask for formal help with this.  The folks I've worked with over the years that were looking for FIPS 140-2 crypto stuff and similar usually have a requirement for a paperwork trail involved, and that means direct contact with the vendor when you cannot local published formal statements.   Not unofficial stuff from random folks like me posted here in ASC.  (There's an Apple contact on that FIPS page, BTW.)

  • HT202879 recently saved a Pages document to Dropbox. Now I cannot open it in the new Pages app, and I cannot use the previous Pages version to open it. Attempting to open the document gives me a flash of a page and then the program crashes. Anybody have a

    I can go to Time Machine and find the document, even read it in Time Machine, but when I try to restore this version I get the same crash. I cannot open with Text or RTF. Preview opens a fuzzy version and can save out as a .PDF, but when I try to convert the .PDF to Word I get a bunch of unusual characters. Any help anyone can give would be greatly appreciated

    OK, I've tried all these tips. Here's what I finally have to do: I open Time Machine. I click on the Pages file and open the Pages file in the Time Machine window. (Restore does not work; nothing works).
    When the Pages file opens, I begin taking screenshots using shift-command-3. I take shots of all 200+ pages of this document. The screenshots are saved to my desktop.
    I then move all 200+ screenshots into one folder, because, face it, that's too many icons to work with on one desktop screen.
    Then I select all the screenshots in the folder at once and open them all in Preview. Then I crop every screenshot using command-K, and save using command-S, and then close that image using command-W.
    When I have cropped all 200+ screenshots, I go back through the folder one by one and adjust the color on each one, moving the mid-range color up to about 75% and the sharpness filter up to about 75%, in order to compensate for the fuzzy image of the screenshot. You can't create a searchable PDF with an image that fuzzy. I do this one by one.
    I make sure everything is saved.
    Then I open all 200+ edited screenshots in Preview and print them out.
    Then I take the 200+ pages of this ****** Pages file and run them through my scanner, making searchable 600 dpi PDFs.
    Then I go to each of the 200+ PDFs and highlight the text, copy, and paste into a NEW word processing document.
    If I'd had 300 pages like the last manuscript, or 700 pages like the one before that, I would have created an Automator program to do all that, but hey, this is not the kind of **** you expect from Apple. Really.  It's taken all week.
    So thanks for your help guys, but no other suggestions worked. I tried to force a download of the file from Dropbox, but got the same result. Besides, my Dropbox folder is saved locally on my harddrive, so it's not their fault. In fact, there is no data in the Dropbox folder under this file name, only preview files. Somehow the Time Machine will open the complete Pages file while in Time Macine, but will not import the saved Time Machine version to the working desktop because it is a preview (i.e., not Preview) image. This is a Pages problem, not a Dropbox problem. Pages did not save the full file.
    If anybody knows a better way to do this, I'd like to know about it. If anybody knows whether I will ever be able to trust Pages again, I'd like to know that too.

Maybe you are looking for

  • Graphics do not show up on iPad

    Scanned images to PDF that contain images do not show up on an iPad.  This sometimes happens with printed to PDF from Excel charts as well.  Has anyone else ever had this issue and if so, is there a fix?

  • Error in Multisim 10.1.0

    The Ohms symbol (omega) on the multimeter instrument is missing in Version 10.1 of MSIM -- it was present in version 10.0.1

  • Functional Specification

    Hi Experts,          Can i know from where can I get the field information of Attendance of the entire month from 1st until 30/31st of the month. If the employee is General absent/ LOP it should be displayed as A, Present it should be displayed as P

  • License questions regarding CUCM/CUC upgrade from 9.1.2 to 10.5.2

    Hi All, I am set to upgrade CUCM/CUC cluster and have read the upgrade guides multiple times, just need some input from folks who've actuall done and survived the ordeal. I have already installed a stand-alone PLM 10.5 and just need an idea what to e

  • Assigning Disks in a Cluster

    Hi, Im new to NetApp and am using the Simulator to help my development. I setup a 7mode simulator with no issues.  I have now setup a DataOnTap 8.1.0, two node cluster.  It has 2 shelves disk ID's are v4.xx and v5.xxx. The v5.xxx disks are assigned t