Access to a folder in km content in the portal

can i access with web dynpro to get xml documents in a folder located in the km in the portal? do you have code, tutorials or info about that (if is possible)
Thanks a lot

Hi
I am getting java.lang.ClassCastException during casting from IResource to ICollection while running this code
     try {
          IWDClientUser wdClientUser1 = WDClientUser.getCurrentUser();
          com.sap.security.api.IUser sapUser1 = wdClientUser1.getSAPUser();
       com.sapportals.portal.security.usermanagement.IUser
        ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser1);
       ResourceContext context = new ResourceContext(ep5User);
                   IResourceFactory resourceFactory = ResourceFactory.getInstance();
       /*Give the path to KM in the variable path */
       RID rid = RID.getRID(wdContext.currentContextElement().getPath());
       wdComponentAPI.getMessageManager().reportSuccess("rid "+rid);
       IResource resource = resourceFactory.getResource(rid, context);
       IResourceFactory factory = ResourceFactory.getInstance();
       try{
       ICollection folder = (ICollection)resource;
//       wdComponentAPI.getMessageManager().reportSuccess("folder "+folder);
//       IResourceList resourceList = folder.getChildren();
//          IResourceListIterator resourceListIterator = resourceList.listIterator();
          resource = ResourceFactory.getInstance().getResource(RID.getRID(wdContext.currentContextElement().getPath()), context);     
          wdComponentAPI.getMessageManager().reportSuccess("resource "+resource);
       if (resource != null) {
          DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
          DocumentBuilder builder = dbFactory.newDocumentBuilder();
          Document document = builder.parse(resource.getUnfilteredContent().getInputStream());
          // Here you can do your XML Stuff
       else {
          // File not found error handling goes here
       }catch(Exception e1){
          wdComponentAPI.getMessageManager().reportSuccess("e1 "+e1);
     }catch(Exception e)
          wdComponentAPI.getMessageManager().reportSuccess("err "+e);
please reply
Sajith

Similar Messages

  • Error when copying the folder Manager Self-Service in the portal

    Good Night.
    I am implementing  Employee Self-Service and Manager Self-Service
    For ESS i did  the following:
    1. I  created a new folder for my project.
    2. I copied  Employee Self-Service folder from the standard part into my folder.
    3. I deleted the pages and worksets that not needed
    4. I did the config in the backend and put the pcd in the backend config for it to be displaying the content.
    And for MSS I wanted to do the same steps:
    But the system display the following message of error:
    Error
    Source object not found. It may have been deleted.
    [Error|http://www.freeimagehosting.net/uploads/0524ec1cc5.jpg]
    The steps that i did are:
    Portal Content==>Content Provided by SAP==>line_manager=>Right Click -->Copy.
    And in the new folder --> Right Click -->Paste.
    How can solve this issue?
    Kind Regards
    Edited by: consultor_ess_mss on Jan 29, 2010 3:11 AM

    Hi, I solved this issue using the  Content Mirroring Tool.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9e/9eeb41873b45489c02d989a62cb560/content.htm
    In this documentation is all the steps.
    Kind Regards.

  • BI Content for the Portal (iViews)

    Hallo,
    Could anyone give me the link where I could be able to download the <b>BI Content</b> (Roles, IViews.....). 
    Thanks a lot!!!!
    regrads
    Milen

    Hi
    You can refer the following links in help.sap.com
    Creating iViews
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb51590e6a11d7b84900047582c9f7/content.htm
    Creating Roles
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/eecf3d97ac7d10e10000000a114084/content.htm
    Hope this helps.
    Regards,
    Viva
    If helpful pl assign points

  • KM content in the Portal

    We are working with EP 6 SP7, and we've created some KM documents, upload of HTML, with the generated URL, some URL i-views. When acessing the Enterprise Portal, after the user authentication, a new request for user authentication is issued.
    Is any way to avoid this second authentication?
    Thanks,
    Ana

    We are working with EP 6 SP7, and we've created some KM documents, upload of HTML, with the generated URL, some URL i-views. When acessing the Enterprise Portal, after the user authentication, a new request for user authentication is issued.
    Is any way to avoid this second authentication?
    Thanks,
    Ana

  • In Portal Content admin Role "Portal content" folder is not displaying

    Hi,
          I created a user in EP and assign Only Content admin Role. But in portal content area "Portal content "folder is not displaying.
    Can someone help me the process steps to achieve it?
    Thanks,
    kundan

    It is because the user has no proper permissions  to the porta content folder.
    you should give atleast read permission to the portal content folder to the content_admin role or to the users who have content admin role.
    also make sure the end user check box is checked at the time of giving permissions.
    Otherwise give eevryone group as read permisisons to the portal content folder. then you can see the portal content folder with read permissiosn only.
    Raghu
    Edited by: Raghavendranath Garlapati on Sep 1, 2009 9:32 AM

  • "There are currently no logon servers available to service the logon request." when trying to access a shared folder in domain environment.

    Hi,
    I already have a windows server 2003 working as a Primary Domain Controller (PDC) and now I created another windows server 2012 to work as an Additional Domain Controller (ADC).
    - PDC is doing (Active directory domain services + DNS + DHCP)
    - ADC is doing (Active directory domain services + DNS)
    For testing purposes, I shutdown the PDC and let the ADC up and running. Now, Whenever I try to access a shared folder on any server in the domain, I got this message "\\x.x.x.x is not accessible. You might not have permission to use this network resource.
    Contact the administrator of this server to find out if you have access permissions.
    There are currently no logon servers available to service the logon request."
    Actually, the replication of AD objects and DNS records between the PDC and ADC is done successfully.  I also can resolve names using the ADC's DNS. Also, I can ping servers hosting the files I want to access. 
    Appreciate your help.

    The PDCe is required for a lot of services, to include DFS.
    Turn the PDC back on and try again.  If it's still not working, ensure the file server has the correct DNS entries on the NIC.
    I think I see what you were trying to test.  The issue is that not all DCs are equal.  Yes, they hold the same information, but some DCs do extra work.  That is why FSMOs exist.
    Let me know how it goes.
    - Chris Ream -
    **Remember, if you find a post that is helpful, or is the answer, please mark it appropriately.**

  • Restrict workgroup computers in accessing my shared folder

    How to restrict workgroup computers in accessing my shared folder.
    And only allow a specific system in the workgroup to have full control access to that shared folder.
    Operating System :Windows Server 2003

    Hi Tiju,
    You cannot restrict access to a folder using computer accounts. The access to the share folder can only giving to everyone or local accounts if the network environment is
    Workgroup.
    Because the computer account never tries to access the shared folders. The access attempt is made by the user account; and if the user account isn't in the ACL of the file, he won't get access.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/57739cb5-ec63-403d-b2c5-3949d440a845/restrict-access-to-network-folder-in-workgroup?forum=w7itpronetworking
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • JSR168 Portlest contents deployment on the Portal 7.01

    Hello Everybody,
    I was searching on how we can integrate JSR168 application on the SAP EP 7.01 system. So far, I found out that JSR168 is available from NW CE onwards.
    But same time, I saw messages stating that we can deploy WAR file with JSR168 contents on Portal and create the iView to use that application.
    Here is my question:
    I was provided with WAR file containing JSR168 contents and I was told to deploy on the Portal and create the iview. I know that we can't directly deploy WAR file on the Portal.
    So, what are the options available so that we can deploy and use this application on Portal 7.01 system?
    If you could point to any help links or provide the steps to do it, it would be really helpful.
    Will it work by creating EAR file in NWDS and add this WAR file and deploy on the server? If yes, what steps do I need to take care of while doing this?
    Thanks,
    Bhavik

    Thanks Nitesh for your response.
    But before I got your response, we could create EAR file from NWDS and added WAR file manually into that EAR file and then deployed EAR file on the Portal.
    But now, question is, How can we run the JSR168 portlet contents on the Portal?
    Based on the comments I recieved from the team who developed portlet, this portlet application can't run using any URL. So, there is no option to create URL iview and run that application.
    Do you know how we can run the JSR168 portlet application on the SAP Portal?
    Thanks,
    Bhavik

  • Content Management in Portal How to

    Hi,
    I´m Learning XML Forms but I have red that it is too static and I was wondering how do we manage content within Portal and KM? is there another tool to create and deploy content within the Portal? or it has to be developed and called from an iView?
    Thanx in Advanced!
    Gerardo J

    Hello Gerardo,
    I agree with you that XML Forms are static, that means you create one form for each common structure document that is to be published.
    But this functionality has its own advantage, check this link for more infos:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/69/d96b9ba84611d5993600508b6b8b11/content.htm
    Once you have your XMLForms ready use these forms to publish documents and then show them in you IView.
    Here is a link how you can configure CommandGroups in your IView and show available XMLForms.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8d/2813418366f023e10000000a155106/content.htm
    We have also a Business Package easyWCM which stands for "easy Web Content Management" which exactly addresses your requirements.
    You can check our product at http://www.easyWCM.com
    To get an idea how XMLForms are shown on IViews you can check the screenshot of easyWCM.
    Greetings,
    Praveen Gudapati

  • I want to move pic's in a folder from iPhoto to a flash drive. Everything I've tried allows me to "copy" the contents of the folder, but when I access the flash drive it does not allow me to "paste".  What do I do??

    I want to move pic's in a folder from iPhoto to a flash drive. Everything I've tried allows me to "copy" the folder but no "paste" to the flash drive.  What do I do?  What am I doing wrong??

    Welcome to Apple Support Communities
    Your USB drive is formatted in NTFS, and OS X can't write on disks with NTFS. To fix this:
    1. Use an app like Paragon NTFS.
    2. Format the USB drive in another filesystem like "Mac OS Extended (Journaled)", "MS-DOS (FAT)" or "exFAT" > http://pondini.org/OSX/DU1.html Make a backup of your files on the external disk.
    After doing that, you will be able to copy your photos to the external disk. Note that you can also use the Export feature in iPhoto to get more export options

  • How to regain access to public folder items

    Hi All,
    We have a few public folder items (mainly calendars) for which i (the admin) have no(or limited) access to.
    In outlook 2010 if i go to the properties of the public calendar i can only see an entry for Administrators for which has the access of only "Author"
    If i log into the exchange server powerscript shell and try and run
    Get-PublicFolderClientPermission -Identity \"<Item name>"
    I get the following error:
    No existing 'PublicFolderEntry' matches the following Identity: '\<Item name>'. Make sure that you specif
    ied the correct 'PublicFolderEntry' Identity and that you have the necessary permissions to view 'PublicFolderEntry'.
        + CategoryInfo          : NotSpecified: (0:Int32) [Get-PublicFolderClientPermission], MapiObjectNotFoundException
        + FullyQualifiedErrorId : C8510C4,Microsoft.Exchange.Management.MapiTasks.GetPublicFolderClientPermission
    These are items have had existed in exchange since before it started and from Exchange 2003 to now Exchange 2010.
    Is there a way i can force the Administrator to have Owner rights on these items again?
    Thanks

    Ok... for all those other unfortunate souls out there who have no answer... here's the deal... The "Failed to Modify MAPI.NET Table" error is due to a problem with your DACL (permissions) table on the public folder(s). But, Exchange 2010 doesn't provide
    any utilities to correct this! exFolders replaces most PVDavAdmin functions but is does not have the "Fix DACL" option built in.
    After all my research and troubleshooting I discovered that the DACL issue was because I had entered explict permissions for the built-in Administrators group. This was resulting in the following error in event viewer: "The mailbox '' contains a folder <NAME
    OF MY PUBLIC FOLDER> with a security descriptor that violates the canonical format."
    Since I could not remove the existing public folders OR modify their permissions, but could still read their content, I copied all the content over to my mailbox. I then wanted to start completely fresh and created a new public folder store following the
    below steps:
    1. Dismount public folder database
    2. Move public folder database file and log (as a backup, not going to reuse it though)
    3. Mount public folder database (creates a new blank public folder database)
    *** NOTE: I could have probably just continued with the new blank public folder database, but I wanted to clear out all the old stuff and be sure it was all new and clean. So I continued through the following steps.
    4. Delete public folder database
    5. Delete database file and log files
    6. Opened ADSIEdit and deleted the existing "Folder Hierarchies" object from this location: Configuration\Services\Microsoft Exchange\<organization name>\Administrative groups
    *** NOTE: The next two steps are optional, as Exchange will do them for you when you create a new public folder database. BUT, exchange does NOT correctly assign the msExchPublicFolderTreeContainer class to the Folder Hierarchies object! It just makes it a
    container. So I opted to manually create it to force it to use the right class
    7. Recreated the "Folder Hierarchies" object in the same location (class is msExchPublicFolderTreeContainer)
    8. Create "Public Folders" object under "Folder Hierarchies" (class is msExchPFTree and attribute msExchPFTreeType MUST be set to 1)
    9. Went back to EMC, Organization Configuration, Mailbox, Database Management, and right clicked to create a new public folder database.
    10. Restart Information Store Service
    Once I had done all that I opened up outlook and created a new public folder. I then highlighted all the items in my mailbox that I had copied out of the original folder and copied them into this new public folder. As long as I do not add public folder permissions
    for the built-in Administrators group, then I am able to manage public folder permissions without any errors. I haven't tested to see if the same error occurs for other built-in security groups.

  • User cannot access redirected Documents folder, but can connect to share in Windows Explorer and access folder on server

    I am in the final stages of a cross-forest migration.  Users have Windows 7 workstations with redirected folders on a Windows Server 2012 box running in the old forest.  User accounts were not migrated.  The accounts in use have always
    been in the "new" forest.  One of our challenges was the large volume of data in redirected folders.  I made sure users in the target forest had continued to have access to their redirected folders in the old forest and robocopied
    the entire users share, copying the permissions with the files.  By doing incremental robocopies, we can get a final copy done now in about six hours.  The plan was simple: copy the files, do an incremental copy every night, on the night of the cutover
    change the folder redirection policy Documents path from
    \\oldserver\users\%USERNAME% to
    \\newserver\users\%USERNAME%. The policy is configured to NOT copy user files from the existing folder to the new redirected folder.  Everything was going well until I tested the policy change.  After the folder redirection policy is updated
    and applied, the user cannot access the private Documents folder.  For example, user Chester Tester logs on as ctester.  I open Windows Explorer and click the Documents shortcut.  I see one subfolder, which is subfolder of Public Documents. 
    So I can look at Public Documents but when I click on the Documents folder (Under the Documents library link) I get an access denied error.  Now for the kicker, if I open another Windows Explorer window and edit the address bar to
    \\newserver\users\ctester, I can navigate the Documents folder tree and see my thousands of documents. What the ....?
    I'm hoping this is something really simple to fix!
    TIA

    HI Vivian,
    Thank you for your reply.  Yes, the path in Group Policy Folder Redirection Root Path was updated to
    \\NEWSERVER\users.  I had planned to point this to the distributed file system, so the first used was actually
    \\domain\dfs\users.  To simplify things I have backed off to copying to just a normal share
    \\newserver\users. 
    We are using BASIC folder redirection and we create a folder for each user under the root path. 
    We did not want the policy to move content, as we were seeing users requiring 15-20 minute logon times  (or higher) after the policy is changed.
    Grant the User exclusive right to Documents - Disabled
    Move the contents of Documents to the new location - Disabled
    Related folder settings
    Video - Follow Documents
    Music - Follow Documents
    Pictures - Follow Documents
    Now when I change the folder redirection from old server to new server I now have TWO My Documents folders in the user's redirection folder on the server.  The redirected Documents points to an empty folder set.  The copied folders with all user
    data are there, but folder redirection refuses to recognize the original folder.
    I am looking at the full view of the folder, nothing hidden, so I'm wondering how a folder can have two subfolders with the exact same name.  For now, I just want the redirection to move from the old server to the new server properly.  I deleted
    the new My Documents folder, rebooted the user's workstation and tried again.  The behavior repeats itself, i.e., a new My Documents folder is always created when the redirection policy is changed from the old server to the new server.  The environment
    has about 1500 users with approximately 1.3TB of data in the redirected Documents folders.  OUCH!

  • How can I access the savestore.js contents if the command about:sessionrestore shows a blank box even for already succesfully used backups?

    -------------------------------------------------------------------------------------------------------------------------------------------
    How can I access the savestore.js contents if the command about:sessionrestore shows a blank box even for already succesfully used backups?
    Is there a recent known problem with the about:sessionrestore command or is there any other way understandable to Firefox 29.0.1 through which recover the information stored in the sessionstore.js files.
    It seems the command about:sessionrestore is not capable anymore to read the contents of the sessionstore.js file present in the user profile folder.
    The box where windows and tabs should be listed is empty.
    I tried to paste a few old sessionstore.js files in the user directory while the firefox.exe process was not active, then opened Firefox again and tried to launch the about:sessionrestore command without any result.
    I think the files are not corrupted because I used most of them in other occasions and I stored them in folders not connected to the common use of any process.
    Also, I already successfully used the about:sessionrestore command in Firefox 29.0.1 in a few other occasions.
    I did a "clean reinstall" of Firefox 29.0.1 and the box contained in the tab where about:sessionrestore is executed is still empty even if the files themselves contain such information as tabs location and html addresses.
    After this I recovered the profile data I had stored in another folder and this is what you can see attached to this question.
    ---------------------------------------------------------------------------------------------------------

    If I select the "show my windows and tabs from last time" option in the startup settings the contents of any savestore.js file i paste in the user profile folder are opened without any problem.
    still, the box in the tab loaded by the about:sessionrestore command is blank and empty, so it's not possible to "de-select" any window or tab. it's necessary to find an editor to modify session backup files which may contain "bad addresses".
    does such an editor already exists?

  • How do I restrict access to a folder-like attaching a password in order for someone to open it.

    I want to locate a folder on my desktop, but want to restrict access so that anyone on my laptop can't access the folder, even though they will see it sitting on the desktop.  How do I set up folder permissions?

    Any file on YOUR desktop already has permissions set such that no other user account can access. But if you want to use the OS's native capability to encrypt the contents of a folder, place that folder within an encrypted image.
    Use Disk Utility to create a disk image, and encrypt it with the same utility (use settings in "new image") . Make sure you size the image to a size great enough to hold all your files. Once created, and placed on your desktop, open it, using your password. Once the image is mounted, place the files you want to protect into that image, and then dismount/eject the image. The image essentially becomes your password encrypted folder. Double click it at any time to access your files (enter password). Eject the mounted image to "re-encrypt".
    If you want a disk image that has cross platform capability, then try TrueCrypt. It is  great App for Mac & Windows, with other advantages as well.

  • Dynamic creation of folder in KM content

    Hi All,
    I've created a webdynpro application which creates a folder in KM Content->Discussion groups dynamically once the application loads.
    I've created a iview of this application and users can access this application through the url of the iview
    But the issue is that the users are not able to execute this application.I've following queries:
    1) Is there any particular role that should be assigned to the user to execute this application
    2) If yes, for the above question can we assign the role to the user only when the application is getting executed and then remove it.
    I'll be grateful if anybody can help me out in this.
    Thanks and Regards,
    Pradeep

    Thanks for the quick response.
    I set the permission for discussiongroups as "read only".
    I observed that the users having 'Content  Admin' role are able to execute the application and the folder is getting created in KM content.
    But the users not having content admin role are not able to execute the application and they get error as  "500-Internal Server Error. Failed to process request.Please contact your system administrator"
    Can you please clarify on this.Is it anything to do with the role
    Reagrds,
    Pradeep

Maybe you are looking for

  • Some questions on SRM 2007

    Hi All As per my earlier knowledge SRM 2007 ( EBP 6.0) is going to be released in Q4 2008. I read some people referring to it as SRM 7.0. 1) Is this wrong or SAP has officially changed it to SRM 7.0. 2) What is the corresponding version for SUS ? 3)

  • Blank PDF with iText

    I am using iText API for creating a PDF file. However when this PDF file shows in a popup-window the file is empty. One solution can be i need to set the length of the response to the browser; see Some browsers also need to know the content-length of

  • I dowload chrome but i can see were is in my dock

    I download chrome and i can see it in my dock

  • Variable impact on WAD objects

    I have a Web Application Designer template containing two Analysis objets, ANALYSIS_1 and ANALYSIS_2. When running the template the user is prompted to select a variable value. If the user selects value u201CXu201D, then ANALYSIS_1 should be visible

  • Help analyzing AWR report

    I need you help to analyze the results of the following awr report: The following awr report is an one hour report of oracle EBS application, oracle version 10203, on hpux with 20 cpus. As you can see , the top wait event is on "CPU time". I read an