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

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

public class JsrUser
extends java.lang.Object
implements java.security.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
 
Method Summary
 java.lang.String getName()
           
 java.lang.String[] getRoles()
           
 boolean isAnonymous()
           
 java.lang.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(fr.paris.lutece.portal.service.security.LuteceUser user)
Constructor from a LuteceUser

Parameters:
user -

JsrUser

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

Parameters:
user -
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

isAnonymous

public boolean isAnonymous()

toString

public java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

getRoles

public java.lang.String[] getRoles()


Copyright © 2008 Mairie de Paris. All Rights Reserved.