You are here

Luminis 5 Portlets

Submitted by bergesonm on Tue, 03/22/2016 - 16:41

Forums:

Hi,

We are currently getting ready to move to the Luminis 5 Portal. We currently integrate with National Student Clearinghouse Self-Service Site using a Java Servlet and passing the Banner ID to them that way. With Luminis 5, has anyone developed a working Portlet with them, or something similar for SSO? Any help would be appreciated. Also, if there exists any getting starting guides with Portlets that would be helpful too.

Thank you,

Mitch

Luminis Version:

This works for gathering logged in user attributes for LP5. We use this base code for many different sso apps. Make a file under webapps/ROOT/yourCustomCode/yourFile.jsp

Works under 5.2.x and 5.3.x so far.

Put this code in it:

<%@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);
}
%>
LP5 Dev Tomcat-portal

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

Access it at https://yoursite.edu/yourCustomCode/yourFile.jsp