Import com.sapportals.portal.security.usermanagement.IUser;  is deprecated

import com.sapportals.portal.security.usermanagement.IUser;  is deprecated
Is there any alternative???

Hi,
could please tell me, what kind of jar-file I have to add to the project to use
com.sapportals.portal.security.usermanagement.IUser ?
Thank you in advance.
Kind regards, Patrick.

Similar Messages

  • DC for com.sapportals.portal.security.usermanagement .IUser

    Hello all,
    When developing a local application I can reference class com . sapportals . portal . security . usermanagement . IUser via NWDS local libraries using ECLIPSE_HOME variable and referencing jar file com.sap.security.api.ep5.jar.
    There is a standard DC that has this class or jar file?
    Or should I add this JAR to an external library.
    Regards,
    Mauricio

    Hi,
    You will have to add this jar as an enternal library.
    Ashu

  • IUser problem with com.sapportals.portal.security.usermanagement

    I am trying to get the current user so I have written
    IUser user = request.getUser();
    I have imported com.sap.security.api.*;
    The compiler insists I need com.sapportals.portal.security.usermanagement.IUser
    I thought that version was deprecated or at least not the preferred method?
    It keeps saying my classpath is incomplete. Why can't it use the IUser from the com.sap.security.api?
    Any help would be greatly appreciated.
    Thanks
    Paul

    Update
    The offending line appears to be IResourceContext myContext = new ResourceContext(user);
    when this line is added it causes the above error which I can only assume is because ResourceContext(user) accepts a different kind of user object. does anyone know if there is another way to do this? Here is the rest of the code to see where i am headed:
    IUser user = req.getUser();
    RID rid = RID.getRID("/temp");
    IResourceFactory factory = ResourceFactory.getInstance();
    IUserFactory uf = UMFactory.getUserFactory();
    IResourceContext myContext = new ResourceContext(user); //this is the line causing the problems.
    IResource resource = factory.getResource(rid, myContext);
    if(resource.isCollection())
    ICollection collection = (ICollection)resource;
    IResourceList children = collection.getChildren();
    Iterator i = children.listIterator();
    the point is i am trying to get the ACL permissions on the children of the rid

  • How to get current IUser (com.sapportals.portal.security.usermanagement)

    Hi,
    does anybody know how to get IUser for the current user?
    I know how to get current IUser from com.sap.security.api package:
    IWDClientUser wdcu = WDClientUser.getCurrentUser();
    IUser sapUser = wdcu.getSAPUser();
    but I need to have IUser from com.sapportals.portal.security.usermanagement package.
    Regards,
    Ladislav

    Ladislav,
    Try this:
    Get the IUser uisng the API com.sap.security.api.IUser and store it in a variable, say <i>sapUser</i>.
    Then,
    // Convert the logged in user to old EP5 usermanagement API
    com.sapportals.portal.security.usermanagement.IUser user = null;
    try
         com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getEP5User(sapUser);
    catch (UserManagementException e)
         e.printStackTrace();
    Bala

  • Package com.sapportals.portal.security.usermanagement : No javadoc ?

    Dear all,
    I tried to find the javadoc concernig this package "com.sapportals.portal.security.usermanagement" but I did not find it.
    Does anyone have any clue where to find it please ?
    Thank you advance.
    Best Regards.
    Greg.

    Hi Greg,
    I think the reason you're not able to find is because com.sapportals.portal.security.usermanagement is now deprecated. For EP 6.0, the old classes have been re-written to map to the new UME 4.0 classes and methods contained in com.sap.security.api.
    please see the document below for details...
    USING THE NEW USER MANAGEMENT API IN EP 6.0
    https://www.sdn.sap.com/irj/sevlet/prt/portal/prtroot/docs/library/uuid/91f0cd90-0201-0010-a190-c4d7cbd5b463
    hope this helps,
    harman

  • I cant import com.sapportals.htmlb.*

    Hi!
    I just installed netweaver and started out by making a new portal application project. After that I made a new portal application object but when I compile my java-file I get errors regarding the following imports.
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.*;
    import com.sapportals.htmlb.event.*;
    import com.sapportals.htmlb.page.*;
    import com.sapportals.portal.htmlb.page.*;
    import com.sapportals.portal.prt.component.*;
    Error: The import com.sapportals.htmlb cannot be resolved.
    I know that the error might be about me missing af reference to some jar-file which contains the packages. Am I wrong?
    Regards Anders

    Hi Anders,
    Have you downloaded the PDK plugin for EP6?  If so, assign yourself the Java Developer role, and download the required jar files.  Login to the portal Java Development>Development>Downloads.  Download and unpack the Portal Archive Wizards into your eclipse\plugins directory.  Then create classpath references to the required jar files in your par file .classpath file.  For example, htmlb.jar
    <classpathentry kind="lib" path="C:/portal/eclipse/plugins/com.sap.developmentTools.libs_1.2.0/htmlb.jar"/>
    Hope this helps,
    Marty
    PS.
    If you dont have the pdk plugin, here is a workaround (assuming you have a portal installed). You can copy the jar files to your local directory in order to successfully compile a par project.  For example the following three jar files to your eclipse\plugins directory on your local machine.  Then in your classpath, create entries for the ones you require (in your case, htmlb.jar). So something like:
    <classpathentry kind="lib" path="C:/portal/eclipse/plugins/com.sap.developmentTools.libs_1.2.0/htmlb.jar"/>
    Under your portal, C:\usr\sap\<instance>\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.htmlb\lib contains an htmlb.jar and an htmlbbridge.jar
    C:\usr\sap\<instance>\j2ee\j2ee_00\cluster\server\services\servlet_jsp\work\jspTemp\irj\root\WEB-INF\portal\system\lib contains a prtcore.jar file

  • Com.sapportals.portal.htmlb.page.PageProcessorComponent is not allowing

    Hi all
    when i import the following one in the portal component then it is not allowing to me giving error seems in red color.but i added all jar files to the java build path.
    <b>import com.sapportals.portal.htmlb.page.PageProcessorComponent</b> (error)
    <b>public class testapp extends PageProcessorComponent</b>
    can u tell me what r the things required to add to allow the above 2 lines.
    Regards
    Sunil

    Hi,
    Just use the Class Locator.
    Checkout this blog:
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051">https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4051</a>
    or download from here: http://classlocator.sourceforge.net/
    Best Regards,
    Avishai Zamir

  • Com.sapportals.portal.htmlb.* path not found.

    Hi friEnds,
    i have added the path of htmlb.jar file in the project properties using eclipse. I downloaded this htmlb.jar file from server only. But when i am trying to import
    com.sapportals.portal.htmlb.page.* it is giving me error.
    The code on which i am working is the old one which was running in EP6. But now i need to do some changes and i am facing this error.
    rgds,
    Nilz

    Hi Nilz,
         Can you post your portalapp.xml and the stack trace of your error.
    Prakash

  • Com.sapportals.portal.prt.service.soap.SOAPRuntimeContext

    Is there any class like com.sapportals.portal.prt.service.soap.SOAPRuntimeContext
    (which only works in the context of the portal) that can be used from an EJB environment?
    Basically, from inside an EJB, I want to get the authenticated IUser object that represents the user who called a secure web service.
    Of course, I can use code like this:
    String username = myContext.getCallerPrincipal().getName();
    IUser user = WPUMFactory.getUserFactory().getUser(username);
    The problem is the returned IUser object is not authenticated.  The call user.isAuthenticated() returns false.
    If I use the SOAPRuntimeContext object, I get an IUser object that is authenticated.  That means I can pass the IUser object to the knowledge managament APIs and preform functions as the user who logged into the web service.

    Dharmi,
    Please try this,
    Check the jar here
    New Reference for Portal APIs
    Or you can extract the parfile into your local computer and navigate to PORTAL-INF
    -> lib folder there you will find the required jar.
    Ramganesan Karuppaiyah

  • The import com.sapportals.htmlb cannot be resolved

    Hi,
    I am working on EP7 and trying to create a sample application for DynPage Portal Component.
    After I create a new DynPage in NWDS, i get the following error:
    The import com.sapportals.htmlb cannot be resolved
    I found a link similar to this problem but not clear abt how to solve it:
    Re: I cant import com.sapportals.htmlb.*
    How do I resolve this error? Are there some set of files that need to be import before I can develop this application.
    Thanks in advance,
    CD

    Hi CD,
    1. Regarding the availability of the KIT, checkout the link:
    Link: [Role for a Java developer;
    2. Regarding the Path for the mentioned libraries:
            **Program FilesSAPJDTeclipseplugins
    **must be in your C:
    If you do not find the specified jar file there, you can use the JAR File Locator. Checkout the link:
    Link: [Re: EP7 PDK;
    Regards,
    Chander Kararia
    #If problem solved, close the thread after rewarding points.

  • Com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP

    Hi All,
    I am configuring SSO between EP7 and SRM 7.0
    1) I have created a SRM system in EP system connections works fine with logon ticket.
    2) I have uploaded roles from SRM system
    but content from these roles throws following exception
    Although i have SAP_SRM as system name exception shows System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    what is the root cause for this exception.
    Full Message Text
    12:07_02/04/09_0188_7992050
    [EXCEPTION]
    com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template '&lt;System.Access.ITS.protocol&gt;://&lt;System.Access.ITS.hostname&gt;/sap&lt;ESID&gt;/bc/gui/sap/its/&lt;IAC[SAP_ITS_NAMESPACE]&gt;?sap-client=&lt;System.client&gt;&amp;sap-language=&lt;Request.Language&gt;&amp;sap-accessibility=&lt;User.Accessibility[SAP_BOOL]&gt;&amp;DisconnectOnClose=0&amp;DesignBaseUrl=&lt;LAF.BaseUrl[url_ENCODE]&gt;&amp;~design=&lt;LAF.Theme[url_ENCODE]&gt;&amp;&lt;Authentication&gt;&amp;&lt;DynamicParameter[PARAMETER_MAPPING PROCESS_RECURSIVE]&gt;&amp;&lt;ForwardParameters[QUERYSTRING]&gt;&amp;&lt;ApplicationParameter[PROCESS_RECURSIVE]&gt;'; the problem occured at position 121. Cannot process expression &lt;System.client&gt; because Invalid System Attribute:
    System:    &amp;#39;SAP_LocalSystem&amp;#39;,
    Attribute: &amp;#39;client&amp;#39;.
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContentPass(AbstractIntegratorComponent.java:123)
    at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doContent(AbstractIntegratorComponent.java:98)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.sapapplication.bwc.AbstractBWCComponent.doContent(AbstractBWCComponent.java:68)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:523)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:412)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    Regards,
    Murali

    Hi Murali,
    First of all activate the integrated ITS on backend system , follow the below link to do so
    www.arlati.ch/knowhow/archive/Integrated_ITS_WebGui.pdf
    In EP where you have created SRM system , there you have to maintain the ITS defination and test the ITS defination.
    Also Check the permission of the SRM system which you have created.
    Thanks
    Anil

  • EP 6.0 User Export Parameter com.sapportals.portal.navigation:uipmode=2

    When exporting users from EP 6.0  under "User Administration > Export/Import" , I have noticed that the following parameter is being generated in the text file  :
    com.sapportals.portal.navigation:uipmode=2
    I've not been able to find any documentation to what this parameter actually is.
    This only occurs on some users not all users.
    Sometimes the value is =1 and =0.
    This is a sample text file generated :
    User]
    uid=BLOGGJ
    role=
    group=MY_USER_GROUP1;Everyone;GUEST_USERS_COMPANY;Authenticated Users;
    email_address=[email protected]
    first_name=Joe
    last_name=Blogg
    country=GB
    language=en
    time_zone=Etc/GMT
    department=DEMO USET
    com.sapportals.portal.navigation:uipmode=2
    end
    Any help appreciated.

    Hi there
    The import works without problems.
    However, we have Global Work Protect switched on so that it prompts for you to "save" data or "discard" it.
    The "personalize" option to set "work protect" has been disabled so that users cannot set their own own Work Protect Feature.
    It seems that users that were created with uipmode=2, have a personalized Work Protect which over writes the default global settings and does not prompt you to save data.
    When I switched the "personalize" work protect feature back on, this did seem to be the case to check for those users.
    I'm looking for some proper documentation to confirm my findings.
    Any assistance appreciated.

  • Com.sapportals.portal.ivs.cg.ConnectionProperties jar file location ?

    Hi ,
    Could anyone let me know the exact jar location for com.sapportals.portal.ivs.cg.ConnectionProperties class for NW04s SP11 . Thanks.
    Regards
    Vasudevan

    Hi,
    The class mentioned is in com.sap.portal.appintegrator_api.jar. It can be found on the server under location \j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.appintegrator\lib.
    Do reward points if the information is helpful.
    Regards,
    Donald

  • Com.sapportals.portal.pcd.IPcdUMEventHandler

    Hi All,
    Can anyone tell me the exact jar file for
    com.sapportals.portal.pcd.IPcdUMEventHandler class.
    Regards,
    Karthick

    I think you need the JAR Class finder for NetWeaver Developer Studio:
    JAR Class Finder
    and:
    Using JAR Class Finder
    This will help you find the class you're looking for within a directory. If you've got the jar files in one directory, point the JAR class finder to that folder and search
    I haven't found it yet on my home PC installation of the Portal SP15 (preview edition). If I find it at work, I'll post it here for you.

  • Com.sapportals.portal.prt.registry.PortalRegistry

    Hi all,
    Please send me this Jar file (com.sapportals.portal.prt.registry.PortalRegistry)
    Thanks ,
    Rama,
    email:[email protected]

    Dear Matthias,
    Can you please try following path:
    From the server
    The path to download the PAR File from the server
    Usr/sap/GPS/JC00/j2ee/cluster/server0/apps/sap.com/irj/servelet_jsp/irj/root/WEB-INF/deployment/pcd/
    From the Portal
    Login to the portal http://xxx/irj/portal  using Enterprise Portal Administrator user id and password.
    Go to System administrationà Support à Portal Runtime à Browse Deployment.
    The path is ROOT/WEB-INF/deployment/ pcd.
    Find any .par.bak. file & download where com.sapportals.portal.prt.registry.PortalRegistry jar file is used.
    Copy the jar file and use.
    Thanks & Regards,
    Patralekha

Maybe you are looking for