public static interface ApiProxy.Environment
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
Gets the application identifier for the current application.
|
Map<String,Object> |
getAttributes()
Get a
Map containing any attributes that have been set in this
Environment. |
String |
getAuthDomain()
Returns the domain used for authentication.
|
String |
getEmail()
Gets the email address of the currently logged-in user.
|
String |
getModuleId()
Gets the module identifier for the current application instance.
|
long |
getRemainingMillis()
Gets the remaining number of milliseconds left before this request receives a
DeadlineExceededException from App Engine.
|
String |
getRequestNamespace()
Deprecated.
Use
NamespaceManager.getGoogleAppsNamespace() |
String |
getVersionId()
Gets the version identifier for the current application version.
|
boolean |
isAdmin()
Returns true if the currently logged-in user is an administrator.
|
boolean |
isLoggedIn()
Returns true if the user is logged in.
|
String getAppId()
String getModuleId()
String getVersionId()
String getEmail()
boolean isLoggedIn()
boolean isAdmin()
String getAuthDomain()
@Deprecated String getRequestNamespace()
NamespaceManager.getGoogleAppsNamespace()Map<String,Object> getAttributes()
Map containing any attributes that have been set in this
Environment. The returned Map is mutable and is a
useful place to store transient, per-request information.long getRemainingMillis()
If there is no deadline for the request, then this will reply with Long.MAX_VALUE.
Copyright © 2022. All rights reserved.