@Name(value="actionContextProvider") @Scope(value=STATELESS) public class ActionContextProvider extends Object implements Serializable
Constructor and Description |
---|
ActionContextProvider() |
Modifier and Type | Method and Description |
---|---|
ActionContext |
createActionContext() |
ActionContext |
createActionContext(DocumentModel document)
Returns an action context computed from current core session and current user, and document given as parameter.
|
public ActionContextProvider()
@Factory(value="currentActionContext", scope=EVENT) public ActionContext createActionContext()
public ActionContext createActionContext(DocumentModel document)
The action context uses the JSF context if available, or fallbacks on a Seam context only (useful for Seam remoting calls, for instance in contextual menu)
Copyright © 2015 Nuxeo SA. All rights reserved.