| 
 | Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.nuxeo.ecm.webengine.session.UserSession
public final class UserSession
Used to store user session. This object is cached in a the HTTP session Principal, subject and credentials are immutable per user session
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap | 
|---|
| AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> | 
| Method Summary | ||
|---|---|---|
| static void | addRequestCleanupHandler(HttpServletRequest request,
                         RequestCleanupHandler handler)Register a cleanup handler that will be invoked when HTTP request terminate. | |
| 
 | findComponent(Class<T> type,
              String name)Finds an existing component. | |
| 
 | getComponent(Class<T> type) | |
| 
 | getComponent(Class<T> type,
             String name)Gets a component given its class and an optional name. | |
| 
 | getComponent(String id)Gets component by ID. | |
| 
 | getComponent(String typeName,
             String name) | |
|  CoreSession | getCoreSession()Deprecated. use SessionFactory.getSession(HttpServletRequest) | |
|  CoreSession | getCoreSession(String repoName)Deprecated. use SessionFactory.getSession(HttpServletRequest, String) | |
| static UserSession | getCurrentSession(HttpServletRequest request) | |
|  Principal | getPrincipal() | |
| Methods inherited from class java.util.HashMap | 
|---|
| clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values | 
| Methods inherited from class java.util.AbstractMap | 
|---|
| equals, hashCode, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface java.util.Map | 
|---|
| equals, hashCode | 
| Method Detail | 
|---|
public static UserSession getCurrentSession(HttpServletRequest request)
public CoreSession getCoreSession(String repoName)
SessionFactory.getSession(HttpServletRequest, String)
If it does not already exist, it will be opened against the given repository.
repoName - 
public CoreSession getCoreSession()
SessionFactory.getSession(HttpServletRequest)
If not already opened, opens a new core session against the default repository.
public Principal getPrincipal()
public static void addRequestCleanupHandler(HttpServletRequest request,
                                            RequestCleanupHandler handler)
public <T extends Component> T findComponent(Class<T> type,
                                             String name)
 The component state will not be modified before being returned as in
 getComponent(Class, String).
 
If the component was not found in that session, returns null.
public <T extends Component> T getComponent(Class<T> type,
                                            String name)
                                 throws SessionException
If the component was not yet created in this session, it will be created and registered against the session.
SessionException
public <T extends Component> T getComponent(Class<T> type)
                                 throws SessionException
SessionException
public <T extends Component> T getComponent(String typeName,
                                            String name)
                                 throws SessionException
SessionException
public <T extends Component> T getComponent(String id)
                                 throws SessionException
 The ID is of the form type#name for non-null names and
 type for null names.
SessionException| 
 | Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||