Class UserContext
java.lang.Object
ro.sync.ecss.extensions.api.webapp.plugin.UserContext
The context of the user that opened the URL.
- Since:
- 17
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
UserContext is used both for real users connected with their web browser and for plugins that try to open an URL on their own behalf.
-
Constructor Details
-
UserContext
- Parameters:
headersMap
- The cookies that are part of the context of this URL.sessionId
- The session ID of the user.
-
-
Method Details
-
getCookies
- Returns:
- Returns the cookies.
-
getHeaders
- Returns:
- the an immutable request headers map.
-
getSessionId
- Returns:
- The id of the session of the user maintained by the Servlet container.
-
isServiceAccount
public boolean isServiceAccount()UserContext is used both for real users connected with their web browser and for plugins that try to open an URL on their own behalf. For example, in a concurrent editing session, users join and leave. In order to have a robust way to save changes, a plugin may choose to use a dedicated set of credentials that do not belong to any of those users. Such credentials belong to a "service account".- Returns:
false
if the user context represents a real user connected with their web browser.
-