fr.paris.lutece.plugins.jcr.authentication
Class JsrUser

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.authentication.JsrUser
All Implemented Interfaces:
Principal

public class JsrUser
extends Object
implements Principal

Simple LuteceUser implementation for JCR


Field Summary
static JsrUser ANONYMOUS
           
 
Constructor Summary
JsrUser(fr.paris.lutece.portal.business.user.AdminUser user)
          Constructor from a LuteceUser
JsrUser(fr.paris.lutece.portal.service.security.LuteceUser user)
          Constructor from a LuteceUser
JsrUser(String strLogin)
           
 
Method Summary
 String getName()
           
 String[] getRoles()
           
 boolean isAnonymous()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Field Detail

ANONYMOUS

public static final JsrUser ANONYMOUS
Constructor Detail

JsrUser

public JsrUser(String strLogin)

JsrUser

public JsrUser(fr.paris.lutece.portal.service.security.LuteceUser user)
Constructor from a LuteceUser

Parameters:
user - a valid LuteceUser

JsrUser

public JsrUser(fr.paris.lutece.portal.business.user.AdminUser user)
Constructor from a LuteceUser

Parameters:
user - a valid AdminUser
Method Detail

getName

public String getName()
Specified by:
getName in interface Principal

isAnonymous

public boolean isAnonymous()
Returns:
true if user is not connected

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object

getRoles

public String[] getRoles()


Copyright © 2014 Mairie de Paris. All Rights Reserved.