Class DefaultCustomUserAttributes

Object
com.liferay.portlet.DefaultCustomUserAttributes
All Implemented Interfaces:
com.liferay.portal.kernel.portlet.CustomUserAttributes, Cloneable

public class DefaultCustomUserAttributes extends Object implements com.liferay.portal.kernel.portlet.CustomUserAttributes

A separate instance of this class is created every time renderRequest.getAttribute(PortletRequest.USER_INFO) is called. It is safe to cache attributes in this instance because you can assume that all calls to this instance belong to the same user.

Author:
Brian Wing Shun Chan
  • Constructor Details

    • DefaultCustomUserAttributes

      public DefaultCustomUserAttributes()
  • Method Details

    • clone

      public Object clone()
      Specified by:
      clone in interface com.liferay.portal.kernel.portlet.CustomUserAttributes
      Overrides:
      clone in class Object
    • getValue

      public String getValue(String name, Map<String,String> userInfo)
      Specified by:
      getValue in interface com.liferay.portal.kernel.portlet.CustomUserAttributes