You are here

Luminis 5 create a portlet

Submitted by zhenchen on Tue, 06/04/2013 - 13:31

I am trying to create a portlet in Luminis 5 env. and looking for jar file for the following imports

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.security.Authentication;
import org.springframework.security.context.SecurityContext;
import org.springframework.security.context.SecurityContextHolder;
import com.sghe.luminis.person.entity.Person;
import com.sghe.luminis.person.exception.PersonException;
import com.sghe.luminis.person.services.DelegatingPersonService;
import com.sghe.luminis.person.services.PersonService;
import com.sghe.luminis.core.spring.SpringContextUtility;

Thanks.

Luminis Version:

Comments

My 5.1.1 installation, it appears that at least the Person class comes with luminis by default.

Stick this code in tomcat-admin/webapps/ROOT/test.jsp and see if it works.


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

<%
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();
%>

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