Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.security
Class UserSessionBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.security.UserSessionBean
All Implemented Interfaces:
Serializable, UserSession

@Startup
@Name(value="userSession")
@Scope(value=SESSION)
public class UserSessionBean
extends Object
implements Serializable, UserSession

See Also:
Serialized Form

Constructor Summary
UserSessionBean()
           
 
Method Summary
 void destroy()
           
 NuxeoPrincipal getCurrentNuxeoPrincipal()
           
 Principal getCurrentUser()
           
 boolean isAdministrator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserSessionBean

public UserSessionBean()
Method Detail

getCurrentUser

@Factory(value="currentUser",
         scope=SESSION)
public Principal getCurrentUser()
Specified by:
getCurrentUser in interface UserSession

getCurrentNuxeoPrincipal

@Factory(value="currentNuxeoPrincipal",
         scope=SESSION)
public NuxeoPrincipal getCurrentNuxeoPrincipal()
Specified by:
getCurrentNuxeoPrincipal in interface UserSession

isAdministrator

public boolean isAdministrator()
Specified by:
isAdministrator in interface UserSession

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface UserSession

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.