Looking ofr example on accessing entities within VAP, developer guide list many but, several are missing i.e. logon, username
Tried several methods but, all fail. Any help would be appreciated.
Eric,
The Portal Developer's Guide points out that the mappings are configured in PortalInstallDir/config/entity_management.xml. By default, there's a logon alias defined for the username property.
i.e.,
<entity-property-alias alias="logon" property-id="username"/>
You should be able to access this as shown in the "Accessing User At tributes" section of the Java Portlet Specification 1.0.
e.g.,
Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO);
String userName = (userInfo !=null) ? (String) userInfo.get("logon") : "";
John