After log into SAP Portal, Terms&Conditions Window should open

Hi Team,
As per one of the requirement in my project, i have to develop below applicaiton.
Requirement: Once user logged into portal & trying to access his role first time in a year, Terms & condtions window should open, once user accepted the terms& condtions,  user can access his role. if user entered into portal second time in a year, direclty can access his roles.
For this: i have created webdynpro-java application with empty view & portal abstract portal component with terms & conditions text, then i have created  portal Iviews for both webdynpro-java application and abstract portal comonent, then i am calling abstract portal component Iview into webdynpro-java component controller wdDoinit() method via  WDPortalNavigation.navigateAbsolute() method. 
Finally, i have assingned webdypro-java ivew to Test Role: once click on role it is calling Terms&Conditions pop window.
Questions: 
1. how can i use same Iview in user actual role, i mean, once user click on his role first time terms & codition window should open? after accepting terms & condtions only his role can access...
2. how can i navigate from terms & condtions to his role?
3. if user didn't accept terms&conditions, he can't access his roles, how can i handle this?
4. how can i check, if it is user first login into portal or not in a year ? where i have to store this user data? what are the parameters i have to use?
can you please help me on this?
Thanks
Sandeep.

sandeep kumar wrote:
> 1. how can i use same Iview in user actual role, i mean, once user click on his role first time terms & codition window should open? after accepting terms & condtions only his role can access...
> 2. how can i navigate from terms & condtions to his role?
> 3. if user didn't accept terms&conditions, he can't access his roles, how can i handle this?
> 4. how can i check, if it is user first login into portal or not in a year ? where i have to store this user data? what are the parameters i have to use?
I would redefine com.sap.portal.navigation.portallauncher.default component for your purpose
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/42c08f81ce2152e10000000a114a6b/content.htm
so WDJ is not really an option here.
To store whether display T&C screen you can use custom attribute on user profile 
http://help.sap.com/saphelp_nw70ehp2/helpdata/en/44/0316d50bbe025ce10000000a1553f7/content.htm
public class MyPortalLauncher extends PortalLauncher
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          INodeList nodeList = request.getNode().getChildNodes();
          if(nodeList != null && nodeList.item(0) != null)
//Check value in user profile whether he accepted T&C this year
//if no - navigate to T&C page
               IResource jspResource = request.getResource("jsp", "jsp/termsAndConditions.jsp");
               response.include(request, jspResource);
//else - process as usuall
               response.include(request, nodeList.item(0));
          else
               IResource jspResource = request.getResource("jsp", "jsp/noRoles.jsp");
               response.include(request, jspResource);
//implement
public void onAcceptClick() throws PageException
//set user attribute value if accepted, logoff is rejected

Similar Messages

  • When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history pa

    When a pop up window comes up it is - search bookmarks and history window! I cannot log into my bank as login button should open new window to log in but I get the search page. I cannot see larger images as again I get the search bookmarks and history page etc. Happens on all options that should open new page. I am so frustrated, this has been happening since Firefox updated itself 2 days ago to Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0C) was fine before that. using windows vista. Can you please advise what I should do? Also can you go back to previous version? Error console eg
    Warning: Error in parsing value for 'cursor'. Declaration dropped.
    Source File: https://ib.nab.com.au/nabib/styles/menu_nab.css?id=009
    Line: 116
    ib.nab.com.au : server does not support RFC 5746, see CVE-2009-3555 and Warning: Selector expected. Ruleset ignored due to bad selector.
    Source File: https://ib.nab.com.au/nabib/styles/nabstyle.css?id=014
    Line: 837
    == This happened ==
    Every time Firefox opened
    == 2 days ago after update.

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Menu is not visible after logging into the portal(SSO)...please help.

    Hello Experts,
    I am facing one EP issue...its like once the user logs in to the portal through SSO...he is not able to see any menu on the left side of the page. Actually there is a Detailed Navigation Tab on Left side which contains links to other servers.
    Since there is no Detailed navigation tab on his page this particular user is not able to navigate to other servers...
    Please letme know where to look for as I am very very new to EP...please give in your valuable inputs...
    Regards,
    Jignesh.

    Hi Joshi,
    Check ur detailed navigation is open or closed
    goto cont adminportal content-- go to ur  default frame work page-- desktop innerpage-- open --- see detailed navigation iview is checked for visible or not
    hope this helps u
    Regards
    Krishna.

  • Blank page after logged into portal system

    Hi,
    After logged into our portal system, we are getting blank page with white space. This is not quite common for all users, few users able to view screens at portal systems.
    Please help me to resolve this issue.
    Thanks in advance
    Regards
    Srinias

    Srinivas,
    Looks like the users not seeing anything have roles which does not have any content in them. Take any of these users and look for assigned roles in 'User Administration'. If there is no content assigned to these roles then assign some relevant content, else make these users part of the group that other users seeing content are part of.
    Hope this helps.
    Vishwas.

  • Unable to log into the portal-After Upgrade from NetWeaver 7.0 to 7.3EHP1

    Dear Experts,
    We have poltal landscape(NW 7.0 Dualstack SPS27) with our customozed themes and par files(Company name,logos and colours)
    Recently we upgraded the one of portal from NW 7.0 to NW 7.3EHP1 . Upgrade has been successfilly completed with small issue.
    After upgrade all urls are working(/nwa, /sld) except /irj/portal.We know that NW 7.3 EHp1 accepts only ear file i.e we converted the our customized log on par file to ear file through par migration tool and the same was deployed successfully through NWDS 7.3 version.After deploying we are able to access the
    /irj/portal url with our customized par(means ear file) without issues,
    We are unable to log into the portal after giving the correct user id and password,getting the portal runtime error as foloows.
    Portal runtime error
    An exception occured while processing your request.Send the exception ID your administrator
    Exception id:
    see log files for details about this exception
    Default.trc log file(/server0/log)
    #EP-PIN-PRT#tc~epbc~prtc~api#C00061FD2733006C00000005000056CB#9034950000000004#sap.com/com.sap.portal.runtime.system.hooks#com.sap.portal.prt.
    runtime#J2EE_ADMIN#4##43E00B85A79911E380F800000089DCC6#3a483a0fa79911e3903000000089dcc6#3a483a0fa79911e3903000000089dcc6#0#Thread[HTTP Worker
    [@900472845],5,Dedicated_Application_Thread]#Plain##
    08:14_09/03/14_0005_9034950
    [EXCEPTION]
    java.lang.RuntimeException: Could not create Resource Repository root folder in PCD
    at com.sap.portal.resource.repository.ResourceRepositorySrv.initRepositoryRootContext(ResourceRepositorySrv.java:140)
    at com.sap.portal.resource.repository.ResourceRepositorySrv.init(ResourceRepositorySrv.java:93)
    at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher$3.service(RequestDispatcherFactory.java:518)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:363)
    at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher.init(RequestDispatcherFactory.java:503)
    at com.sap.portal.prt.broker.PortalServiceItem.initServiceInstance(PortalServiceItem.java:347)
    at com.sap.portal.prt.broker.PortalServiceItem.getServiceInstance(PortalServiceItem.java:210)
    at com.sap.portal.prt.broker.PortalServiceItem.load(PortalServiceItem.java:578)
    at com.sap.portal.prt.om.ObjectsManager.createObejctHandle(ObjectsManager.java:234)
    at com.sap.portal.prt.om.ObjectsManager.getObjectHandle(ObjectsManager.java:147)
    at com.sap.portal.prt.broker.PortalAppBroker.getPortalService(PortalAppBroker.java:498)
    at com.sap.portal.prt.service.ServiceManager.getPortalServiceItem(ServiceManager.java:431)
    at com.sap.portal.prt.service.ServiceManager.get(ServiceManager.java:220)
    at com.sap.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:130)
    at com.sap.portal.resource.repository.WebResourceRepositorySrv.init(WebResourceRepositorySrv.java:71)
    at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher$3.service(RequestDispatcherFactory.java:518)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:363)
    at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher.init(RequestDispatcherFactory.java:503)
    at com.sap.portal.prt.broker.PortalServiceItem.initServiceInstance(PortalServiceItem.java:347)
    at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:363)
    at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher.init(RequestDispatcherFactory.java:503)
    at com.sap.portal.prt.broker.PortalServiceItem.initServiceInstance(PortalServiceItem.java:347)
            at com.sap.portal.prt.broker.PortalServiceItem.getServiceInstance(PortalServiceItem.java:210)
            at com.sap.portal.prt.broker.PortalServiceItem.load(PortalServiceItem.java:578)
            at com.sap.portal.prt.om.ObjectsManager.createObejctHandle(ObjectsManager.java:234)
            at com.sap.portal.prt.om.ObjectsManager.getObjectHandle(ObjectsManager.java:147)
            at com.sap.portal.prt.broker.PortalAppBroker.getPortalService(PortalAppBroker.java:498)
            at com.sap.portal.prt.service.ServiceManager.getPortalServiceItem(ServiceManager.java:431)
            at com.sap.portal.prt.service.ServiceManager.get(ServiceManager.java:220)
            at com.sap.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:130)
            at com.sap.portal.resource.repository.WebResourceImportService$ResourceImporter.<init>(WebResourceImportService.java:248)
            at com.sap.portal.resource.repository.WebResourceImportService.importApplicationResources(WebResourceImportService.java:172)
            at com.sapportals.portal.navigation.NavigationMimeRepositoryService.loadAllPicsToWRR(NavigationMimeRepositoryService.java:186)
            at com.sapportals.portal.navigation.NavigationMimeRepositoryService.init(NavigationMimeRepositoryService.java:160)
            at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher$3.service(RequestDispatcherFactory.java:518)
            at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:363)
            at com.sap.portal.prt.core.RequestDispatcherFactory$ServiceRequestDispatcher.init(RequestDispatcherFactory.java:503)
            at com.sap.portal.prt.broker.PortalServiceItem.initServiceInstance(PortalServiceItem.java:347)
            at com.sap.portal.prt.broker.PortalServiceItem.getServiceInstance(PortalServiceItem.java:210)
            at com.sap.portal.prt.broker.PortalServiceItem.load(PortalServiceItem.java:578)
            at com.sap.portal.prt.om.ObjectsManager.createObejctHandle(ObjectsManager.java:234)
            at com.sap.portal.prt.om.ObjectsManager.getObjectHandle(ObjectsManager.java:147)
            at com.sap.portal.prt.broker.PortalAppBroker.getPortalService(PortalAppBroker.java:498)
            at com.sap.portal.prt.service.ServiceManager.getPortalServiceItem(ServiceManager.java:431)
            at com.sap.portal.prt.service.ServiceManager.get(ServiceManager.java:220)
    at com.sap.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:130)
            at com.sap.portal.pcm.iview.admin.PcmIviewCommon.getAdditionalAttributes(PcmIviewCommon.java:358)
            at com.sap.portal.pcm.iview.admin.PcmIviewCommon.initLayers(PcmIviewCommon.java:173)
            at com.sap.portal.pcm.iview.admin.AdminBaseiView.createAttrSetLayersList(AdminBaseiView.java:177)
            at com.sap.portal.pcm.page.admin.AdminBasePage.getCustomImplementation(AdminBasePage.java:76)
            at com.sap.portal.pcm.admin.PcmAdminBase.getImplementation(PcmAdminBase.java:642)
            at com.sapportals.portal.navigation.LightningHelperService.getFrameworkPageAttributesValues(LightningHelperService.java:143)
            at com.sapportals.portal.navigation.LightningHelperService.getFrameworkPageAttributesValues(LightningHelperService.java:171)
            at com.sapportals.portal.navigation.fpm.util.PhaseConfiguration.prepareAttributes(PhaseConfiguration.java:71)
            at com.sapportals.portal.navigation.fpm.util.PhaseConfiguration.storeRelatedAttributesInSharedStorage(PhaseConfiguration.java:35)
            at com.sapportals.portal.navigation.fpm.NavigationFpmListener.doFrameworkPhase(NavigationFpmListener.java:535)
            at com.sapportals.portal.navigation.fpm.NavigationFpmListener.doPhase(NavigationFpmListener.java:122)
            at com.sapportals.portal.pb.fpm.FPMContainer.distributeEvent(FPMContainer.java:63)
            at com.sapportals.portal.pb.fpm.FPM.doDocumentHook(FPM.java:179)
            at com.sapportals.portal.prt.service.document.DocumentHookMulticaster.doDocumentHook(DocumentHookMulticaster.java:100)
            at com.sapportals.portal.prt.service.document.DocumentHookService.doDocumentHook(DocumentHookService.java:119)
            at com.sapportals.portal.prt.service.document.DocumentHookServiceNew.doDocumentHook(DocumentHookServiceNew.java:186)
            at com.sapportals.portal.prt.connection.PortalHook.doDocumentHook(PortalHook.java:665)
            at com.sap.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:183)
            at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:107)
            at com.sap.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:141)
            at com.sap.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:206)
            at com.sapportals.portal.navigation.PortalLauncher.doContent(PortalLauncher.java:116)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:213)
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:129)
    at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
            at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)
            at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
            at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
            at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)
            at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
            at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
            at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)
            at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)
            at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
            at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
            at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
            at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
    Caused by: javax.naming.InvalidNameException: Character not allowed: ':' in 'pcd:resource_repository'
    at com.sapportals.portal.pcd.pl.PcdName.checkComponent(PcdName.java:64)
            at com.sapportals.portal.pcd.pl.PcdName.checkNameComponent(PcdName.java:39)
            at com.sapportals.portal.pcd.pl.PcdName.padd(PcdName.java:636)
            at com.sapportals.portal.pcd.pl.PcdName.add(PcdName.java:626)
            at com.sapportals.portal.pcd.gl.util.StringUtils.tokenizeIntoPcdName(StringUtils.java:112)
            at com.sapportals.portal.pcd.pl.PcdName.appendUrlInternal(PcdName.java:408)
            at com.sapportals.portal.pcd.pl.PcdName.<init>(PcdName.java:245)
            at com.sap.portal.resource.repository.ResourceRepositorySrv.initRepositoryRootContext(ResourceRepositorySrv.java:121)
            ... 132 more
    1)We are suspecting this issue is related to the theme issue.How to update the theme in the upgraded portal(have a backup of themes)
    2)Want to know if we update a theme where it stored at the operating system level(in NW 7.3 EHP1 as well as NW 7.0)
    3)Is there any post steps after portal upgrade.
    Request you suggest.
    Regards
    Maruthi

    Hi
    Refer the SAP Notes
    1942399 - Fix usage of unregistered class loader while processing HTTP request in an application being updated or stopped at the same time
    1744820 - Migration 7.3 fails while executing migration of pcd_upgrade
    1703578 - WPC migration stops during connection creation
    1918086 - ERROR: Unable to get iView
    Regards
    Ram

  • UPC fonts in crystal runtime reset after fresh logging into SAP B1 desktop client?

    Dear Experts,
    I have a client who has SAP version: Business One 8.82 (8.82.069) PL: 06 Hotfix2 and Crystal Reports version: 12.1.0.892 Product Type: Full.
    They have a shipping report that is printed from production module. They needed UPC barcodes on the report. The achieved that through IDAutomation Fonts. The crystal report uses the IDAutomation Function that takes the field and converts and the font is IDAutomation Font that shows the fields are barcodes.
    This repeated works when logged into SAP server using specific id.
    IDAutionation is installed on SAP Server.
    Here is the problem?
    The shipping users have a desktop which has SAP B1 client. That desktop also has IDAutomation fonts installed.
    Shipping personnel logs into SAP B1 with the same id that worked on SAP Server, the report prints okay just the first time after it was saved in SAP Server through crystal report edit and save. Next time they log out of SAP client and log back in with same shipper ID, the report does not pick up the UPC IDAutionation fonts. It comes out as some stange text.
    The fonts are present in control panel fonts on both server and desktop.
    I called IDAutiomation support, they could not help besides saying, put the fonts on both server and client, which I have already done. He also said, there were crystal report runtime issues with fonts?
    Could someone help me out here. What am I missing? I even tried installing full crystal report on the desktop and it did not get resolved. Customer is quite desperate to get this resolved.
    Thank you,
    Syed

    After removing every xf86-video-* package except  xf86-video-nouveau, xf86-video-vesa and  xf86-video-nv plus installing nouveau-dri and rebooting, it works. Thanks karol!

  • Empty Screen after logging into portal

    Hi,
    I have installed SAPNetweaver 2004S,  SP9 trial edition.
    After logging into portal , Masthead and Tool area are visible and reamining part is empty screen . Toplevel navigation , detailed navigation, desktop innerpage are not getting displayed.
    Can somebody please help me in resolving this.
    Regards
    Venkata Chithirala
    Message was edited by:
            Venkata Chithirala

    Hi
    The portal display creates problem when you try to access the portal using the IPADDRESS instead of the host name for the portal.
    What you can do is make a entry in the hosts file for the portal server and then try to access the portal using the name given in the hosts file.
    http://servername:<port>/irj
    servername is the entry which you have given in the hosts file.
    Dont use the IPAddress while accessing the portal, if by chance you are using it.
    This shoud solve your problem.
    Regards
      Sumit Jain
    **Reward with points if useful.

  • Error while trying to log into dealer portal - Organisational data not main

    Error while trying to log into dealer portal - Organisational data not maintained. This is happening for a specific user.
    This information is used in the URL for the VMS dealer portal.
    <Protocol>://< Host Name>:<Port>/sap/bc/bsp/sapdii/dwb/c_vms_main.do?sap-client=<Client number>
    Does anyone have any experience of similar problem ?

    so why are you   posting this to Oracle database forum?
    I see nothing involving the database.

  • Report on who has logged into the portal

    Hello everyone..
    Anyone know a way to get a report of which users have logged into the portal recently?

    Hello Craig,
    Check the Help portal under
    http://help.sap.com/saphelp_nw04/helpdata/en/58/728ea01cf64fff996b827f2a06f9b1/frameset.htm
    regards
    Mahesh

  • Integration of BI Administrator into SAP Portal

    Hi!
    I would like to integrate BI Administrator into SAP Portal.
    All the necessary steps has been succesfully executed
    (Activation of technical content in SAP BI, Deployment of Business Package BI Administration 1.0).
    The problem I have:
    When I start one of the functions of SAP BI Administrator I get the Portal runtime error:
    Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 10:42_19/01/09_0073_21754250
    Refer to the log file for details about this exception.
    Can some one help me to solve this error?
    Thank you very much!
    regards
    Axel

    Hi!
    Thank you very much!
    Yes, I did (add the everyone group there and have the enduser checked).
    Do you know how to find (name of the log file ) the appropriate log file?
    Thank you very much!
    regards
    Axel

  • Is there a R3 table to track who are currently logon into SAP portal?

    Hey, Gurus,
    Is there a R3 table to track who are currently logon into SAP portal?
    Thanks inadvance!
    Fisher

    What I am trying to accomplish is that we have a customized SAP web dynpro program with Java that access R3 data.
    I would like to create a lock in R3 to prevent the record in R3 being accessed by more than one person.
    The problem was that in our customized portal programs will not always exit gracefully and the lock will not be cleared correctly all the time.
    If there is a way that I can access the user logon data in portal (java stack), I will try to figure out how to unlock the record after the person exit.
    Thanks!
    Fisher

  • Sharepoint portal goes down Whenever a specific user logs into the portal

    hi All,
    Sharepoint portal goes down Whenever a specific user logs into the portal
    When a specific user logs into the portal , the iis goes down and no one able to access the portal.
    once we reset  iis then portal works fine .Please help us to identify the root cause for this issue.

    What is the error message it throws for everyone after that user user logged into the site. Did you encountered the same behavior for the other web application in the same farm as well?
    It would be worth to check health of that particular application pool and the account used for it during the time you face the issue.
    Veeramani.S

  • Payroll locks when user is logged into the portal

    When users are logged into the portal, and HCM runs payroll
    they call and ask the user to log out, because payroll can't run and gets hung-up.
    Seems very odd,  anyone else hear of this?
    Thanks
    Edited by: Gareth Nicholas on Jul 17, 2008 10:20 PM

    hi
    strange behaviour
    did u open oss note to sap ?
    dont forget to revert back here with the solution
    regards,
    vijay.

  • How to get a List of Users Currently Logged into the portal

    Hi,
    Im trying to get the list of all users logged into the portal to do a web service, but I can't find the way to do this, is there any way to find this info thrugh a java class or some object in the RCU/schema/WCP database?
    Greetings
    Mike

    Try the analytics tables. Before you can use them, you need to setup the analytics server and configure it for your application:
    http://docs.oracle.com/cd/E23943_01/webcenter.1111/e12405/wcadm_analytics.htm#BEIDBHHG
    This gives an overview for building reports: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_analytics.htm#BABFDGEG
    Login metrics: http://docs.oracle.com/cd/E23943_01/webcenter.1111/e10148/jpsdg_analytics.htm#BABFFHGD
    You can use these queries to get the info you want.
    Edited by: Yannick Ongena on Oct 8, 2012 8:00 AM

  • How to capture the user who has logged into the portal.

    Hi,
    How do I capture the user who has logged into the portal.
    HOw do I retrieve the first name and last name of the logged in username.
    Could someone provide me a related link or PDF to work on this.
    Thanks,
    Suvarna

    Hi suvarna,
    Check the following code
    ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
                      IUserFactory usf = UMFactory.getUserFactory();
                      IUser iuser = null;
                      IUserListElement userElement = null;
                      int i = 0;
                      while (rst.hasNext()) {
                            iuser =
                                  UMFactory.getUserFactory().getUser(rst.next().toString());
                            String email = iuser.getEmail();
                            String fname = iuser.getFirstName();
                            String lname = iuser.getLastName();
    regards
    Anil Dichpally

Maybe you are looking for