You are here

Luminis 5 equivalent to Lum 4 proxy channel

Submitted by nesslage on Fri, 03/13/2015 - 11:51

Forums:

In our current Luminis 4 environment, I have setup a number of web proxy channels that pass iperson attributes to custom off-server pages. Now that we are preparing to move to Luminis 5, I have not found (in my admittedly limited research) an equivalent method of implementing these in portlets. Is there something similar already available, or can someone point me in a new direction to provide the same functionality?

Luminis Version:

The below jsp code can be used to query attributes. Put the jsp in $CP_ROOT/products/tomcat/tomcat-admin(portal)/webapps/ROOT/myfile.jsp

<%@page import="com.sghe.luminis.session.SessionUserService"%>
<%@page import="com.sghe.luminis.person.entity.Person"%>
<%@page import="java.util.List"%>

<%
SessionUserService mySession = SessionUserService.lookup();
Person myPerson = mySession.getCurrentPerson();
String userName = myPerson.getLoginId();
String firstName = myPerson.getFirstName();
String lastName = myPerson.getLastName();
String personId = myPerson.getPersonId();
String udcIdentifier = myPerson.getUdcIdentifier();
int numRoles = myPerson.getNumRoles();
List listOfRoles = myPerson.getListOfRoles();

String stringRoles = "";
for (int i=0; i < listOfRoles.size(); i++)
{
stringRoles = stringRoles + "," + listOfRoles.get(i);
}
%>
User Attributes:

  • userName(uid): <%= userName %>
  • firstName(givenName): <%= firstName %>
  • lastName(sn): <%= lastName %>
  • personId(cn): <%= personId %>
  • udcIdentifier: <%= udcIdentifier %>
  • numRoles: <%= numRoles %>
  • stringRoles: <%= stringRoles %>

If you want a portlet tutorial, I think I recall that the Luminis SDK documentation that comes with Luminis 5 has sample code for a 'luminis-person-details' portlet.