Friday, April 6, 2012

How to get Logged In portal user profile in theme

a) To get basic user information in theme if the user is logged in

1) Use following tag lib to get basic user attribute value
<%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-fmt" prefix="portal-fmt" %>


<portal-logic:if loggedIn="yes">
<portal-fmt:user attribute="cn"/>
</portal-logic:if>

attribute value can be any value defined in your websphere member manager directory. 

2) To get the list of groups the user belongs to use the below code snippet
<%
com.ibm.portal.puma.User user= (com.ibm.portal.puma.User)request.getAttribute(com.ibm.portal.RequestConstants.REQUEST_USER_OBJECT);
if(user!=null) {
    java.util.List groupsList = user.getGroups();
        for (int i=0; i< groups.size() ; i++){
            com.ibm.portal.puma.Group group = (com.ibm.portal.puma.Group)groupsList.get(i);
            System.out.println("group common name = " +group.getCommonName());
            System.out.println("group  name = " +group.getName());
        }
}
%>

44 comments:

  1. I am a professional blogger and I own three blogs on different subject like, creative writing, academic writing and technical writing. I also provide Assignment Writing Help UK online and this logged in query going to helpful for me.

    ReplyDelete
  2. Thanks for sharing this blog. A great information you shared through this blog. Keep it up and best of luck for your future blogs and posts.
    I have an important information regarding Web Application Development Company.

    ReplyDelete
  3. Nice blog post.. We provide free essays help services for all students who needs essay services.So hurry up get help from our Essay Writer, and do top in your college and school.


    ReplyDelete
  4. Nice article. I think it is useful and unique article. I love this kind of article and this kind of blog. I have enjoyed it very much. Thanks for your website.
    Click Here : Gulf News Classifieds Used Cars Online

    ReplyDelete
  5. Our assignment help is the best solution to all the problems that you face while writing a paper. From creating quality content to finishing it before the deadline, we can assist you with anything and everything. You can get the assistance of our Operations assignment help experts at any time of the day.

    ReplyDelete
  6. Online assignment help allows students to overcome the various assignment writing challenges that they face in academics. This service is not only reliable but is also affordable for every student. One of the most popular academic service by Online Assignment Expert, is Nursing Assignment Help. The subject experts have a vast knowledge in the field of Nursing and have solved hundreds of assessments till date. Moreover, the myob assignment help by our experts has proven to meet all the expectations of students. We excel in providing assignments written exactly as per the guidelines provided by a student's university.

    ReplyDelete
  7. Such a nice blog post on this topic. The best Dissertation help writer can even be addressed as a dissertation expert due to a great combination of experience and professionalism. Expert uk dissertation writers ensure to prepare and deliver your dissertation material on or before the deadline date specified from your end. Yes, they never delay on their work so that you receive the help material right on time within the service account inbox!

    ReplyDelete
  8. Thank you for sharing this amazing post. Hope readers will like it. I really appreciate for putting such efforts.

    Cheeksandtoez
    Register at Cheeksandtoez


    Adult site


    Nude Pics

    ReplyDelete
  9. MyAssignmentHelp offers instant dissertation writing help and solution for every student in need for the writing proposal. If you have urgency, we will get your cover. The eminent Malaysian team of dissertation guidance in associated with the firm will always come into play whenever a student will find things difficult to manage and prepare dissertation papers thoroughly.

    ReplyDelete
  10. Thanks for providing such a valuable info but what to do if someone forget their login password? I forget my login password and how can I get it back? By: buy dissertation online

    ReplyDelete
  11. Phenomenal Blog! I ought to thank for the endeavors you have made in framing this post. I have not a fundamental extent of data about it yet rather I have an extra groundbreaking information in your the tangling post. I am searching for an equivalent best work after you later on as well.assignment helps

    ReplyDelete
  12. A responsibility of thankfulness is all together for offering this best data to us. Stay in contact with us to get more data. my crm system

    ReplyDelete
  13. Everything thought about when someone doesn't have the foggiest idea about some time later its up to others that they will help, so here it happens. Visit ..Dissertation helps

    ReplyDelete
  14. It's constantly scrambling and central. it's an astoundingly cool blog. Interfacing is an especially head thing. You have genuinely helped stores of individuals who visit the blog and give them goliath data. Regards math assignments

    ReplyDelete
  15. It's astoundingly baffling article for me or each one considering the course that bit of room starting at now need to done different data that is the clarification it's in a general sense scrambling for me.math assignments

    ReplyDelete
  16. it is a general epic site I take in various things from the site you posted scattering articals so I what's unfalteringly expected to post a general bewildering article my site math assignments

    ReplyDelete
  17. it is a general epic site I take in various things from the site you posted dispersing articals so I what's truly expected to post a general dazzling article my site statistical analysis

    ReplyDelete
  18. This is brilliant guaranteed factors which you portrayed here, it's so significant post and direct. killer queen lyrics

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. Hello there, great stuff you’ve shared here I will be checking regularly for more articles.
    amazon product description writer
    .

    ReplyDelete

  21. I am Irene Garcia, a Corporate Sales Specialist operating in the Latin American region. We are experts in Market Research (Mercado Español de Comida a Domicilio Online). We provide market reports across various industry verticals and also help with procurement and supply chain intelligence. By giving you better insights, we help you make informed business decisions.

    ReplyDelete
  22. How lucky to find your article after turning internet upside down. An article critique is an assignment that requires a student to critically read a research article and reflect upon it. The key task is to identify the strong and weak sides of the piece and assess how well the author interprets its sources. Simply put, a critique reflects upon the validity and effectiveness of the arguments the article’s author used in his or her work. Article Critique Writers is here for you.

    ReplyDelete
  23. Excellent information Providing by your Article, thank you for taking the time to share with us such a nice article. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. Investmango goal is to offer unique and specialized services to our clients and in return create a long-lasting working relationship. We provide the Best Ats one hamlet and 2/3/4 BHK Flats, Apartments, Penthouse, Corporate Properties, Commercial Properties in Noida, Greater Noida West, Delhi NCR with Great Discount and Deals. Learn more about the Investmango visit our website and call now :- +918076042671

    ReplyDelete
  24. Excellent post however I was wondering if you could write a little more on this subject? I’d be very thankful if you could elaborate a little bit more. Many thanks!
    To know how to troubleshoot your problems regarding microphones visit this profile for your test your mic
    process and get best result out of your input.

    ReplyDelete
  25. . le phase.f can be said to be motivated by the Boltzmann equation, ∂tf + vi∂xif = C(f) ,when f 7→ C(f) which is the collision operator that acts on the condition that assignment help

    ReplyDelete
  26. I visited your site. I found that site very useful and this survey is very interesting. I wrote an article on Typing Speed Test which gives you benefits of fast typing and helps you to increase your speed. So read my article and get information.

    ReplyDelete

  27. That is a very good tip especially to those new to the blogosphere.A very excellent blog post.Thanks for the nice blog. It was very useful for me.I am thankful for your blog post.visit my profile about Number Wheel Spinner




    ReplyDelete
  28. Increased demand across industrial sectors is driving the India Industrial Gaskets Market (refineries, automotive, power generation and other industries). Government regulations aimed at preventing leakage, degradation, and environmental harm as a result of unintentional emissions are propelling the India Industrial Gaskets Market forward.

    ReplyDelete
  29. Every time peoples are searching for some informative and creative idea from a different platform. If think, you have to creative ideas, then peoples are crazy to read your post. I hope this post is very useful for everyone. Engineering textbook solutions manual

    ReplyDelete
  30. According to the Alpine Club of Pakistan (ACP), three climbers were stranded on Sunday due to bad weather. Read this complete news at Urdu Khabar.

    ReplyDelete
  31. Get professional coursework helper of UK native experts to boost your grades. We at assignment editors pro have a dedicated team of coursework experts that provide the
    best consultancy to students and academic professionals.

    ReplyDelete
  32. With our online assignments, students may get the most help possible. Assignmenthelped assist students in completing Financial Economics Assignment Help in order to improve their marks and achieve high possible grade in universities and colleges. Financial Economics Assignment Help

    ReplyDelete
  33. This comment has been removed by the author.

    ReplyDelete
  34. Nice Content. If you are looking for a accounting Service Quickbooks Customer Service you can reach us at.+1 888-698-6548,SD.

    ReplyDelete
  35. It's a nice time surfing through this piece of the inspiring weblog. An excellent write-up and satisfying content of blog. Thanks for sharing a decent article.-schlumberger aptitude test past question free download

    ReplyDelete
  36. Global Assignment Help is a service provider that helps the students by delivering plagiarism-free quality assignments on time. The hired professional writers of the organization are highly qualified and experienced in providing good quality assignments by adding information about the recent technological development and correct concepts. Many students have gained benefit from our services and achieved high academic grades. By considering assistance from us, students can unlock their potential through expert guidance, manage their time schedule properly, and open the door to future success. Moreover the low cost and 24/7 customer services makes us one of the best assignment help services in the world.

    ReplyDelete
  37. Global Assignment Help is an organization that helps the students across the world by providing them quality assignments on time. The experts of the organization are highly qualified, and professional. They are dedicated to enhancing the quality of the assignments by writing plagiarism-free assignments, with correct and proper information about the concepts. Not only writing the assignments but also after work like proofreading and editing is done by us so that the students can maintain proper formatting, and quality, and secure good grades in their academics. With our 24/7 customer service, affordable pricing, and on-time delivery makes us one of the best assignment help service providers in the world.

    ReplyDelete

comments