@Startup @Name(value="userSession") @Scope(value=SESSION) public class UserSessionBean extends Object implements Serializable, UserSession
Constructor and Description |
---|
UserSessionBean() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
NuxeoPrincipal |
getCurrentNuxeoPrincipal() |
Principal |
getCurrentUser() |
boolean |
isAdministrator() |
public UserSessionBean()
@Factory(value="currentUser", scope=SESSION) public Principal getCurrentUser()
getCurrentUser
in interface UserSession
@Factory(value="currentNuxeoPrincipal", scope=SESSION) public NuxeoPrincipal getCurrentNuxeoPrincipal()
getCurrentNuxeoPrincipal
in interface UserSession
public boolean isAdministrator()
isAdministrator
in interface UserSession
@Destroy public void destroy()
destroy
in interface UserSession
Copyright © 2018 Nuxeo. All rights reserved.