com.hof.data.SessionBean methods

Ingo Klose shared this question 8 years ago
Answered

Hello,


We are currently working on a custom header and we need to know what information are availabel in com.hof.data.SessionBean.


We know we can get the User Name like this:


<%@ page import="com.hof.data.SessionBean" %>

<%@ page import="com.hof.util.*" %>

<%


SessionBean sb = (SessionBean)session.getAttribute(Const.SESSION_BEAN);

String personFullName = sb.getPrsnBean().getFormattedFullName();


%>


From the standard header we know it is possible to retrieve the role and the client-org name. Basically we want to use all the information from the standard and add some additional stuff.


Is there any documentiation about this class or can someone share the code for the standard header?


Many thanks and best regards,

Ingo

Replies (2)

photo
1

Hi Ingo,

Thanks for your patience on this one. Would it be possible to elaborate on the information you are trying to pull into your header? Currently, we only publicly provide information on retrieving the full name (as you mentioned in your OP), the user role, and the client org as seen below:


User Role:

com.hof.data.SessionBean sb = (com.hof.data.SessionBean)

session.getAttribute(com.hof.util.Const.SESSION_BEAN);

out.write(sb.getCurrRole().getRoleDescription());

Client Org:

com.hof.data.SessionBean sb = (com.hof.data.SessionBean)

session.getAttribute(com.hof.util.Const.SESSION_BEAN);

out.write(com.hof.util.OrgCache.getInstance().getOrgName(sb.getPersonSearchIpOrg()));


Is there specific information (other than fullname/role/clientorg) that you are trying to pull in through the header? Let us know, and we will be happy to see if it is possible to return the information you are looking for.

Kind Regards,

Dustin

photo
1

Hi Dustin,


For the moment that's all we need...we got stuck with the client org. We will test your code and are good for now.


I was just interested to see what other information are available.


Best regards,

Ingo

Leave a Comment
 
Attach a file