Constructor and Description |
---|
Context() |
Modifier and Type | Method and Description |
---|---|
static AppContextLoader |
app() |
static boolean |
currentUserCanAccessEndpoint(RestEndpointBase endpoint)
Determines if the currently active user, based on the current active request, is allowed
to access the passed in endpoint.
|
static DataAccessRegistry |
dal() |
static DataAccessRegistry |
dataAccess() |
static DB |
db() |
static AppContextLoader |
getApp()
Deprecated.
|
static DataAccessRegistry |
getDal() |
static DataAccessRegistry |
getDataAccess() |
static DB |
getDb() |
static IOrg |
getOrg() |
static PluginRegistry |
getPluginRegistry() |
static IRequest |
getRequest()
The current request, as stashed on a thread local variable.
|
static StResponse |
getResponse()
The current response, as stashed on a thread local variable.
|
static Settings |
getSettings() |
static TemplateRenderer |
getTemplateRenderer() |
static IUser |
getUser() |
static UserController |
getUserController() |
static String |
getValetEmail() |
static Long |
getValetUserId() |
static PluginRegistry |
pluginRegistry() |
static IRequest |
request()
Alias for getRequest();
|
static void |
resetThreadContext() |
static StResponse |
response()
Alias for getResponse();
|
static void |
setOrg(IOrg org) |
static void |
setRequest(StRequest request) |
static void |
setResponse(StResponse response) |
static Settings |
settings() |
static void |
setUser(IUser user) |
static void |
setValet(Long valetUserId,
String valetEmail) |
static TemplateRenderer |
templateRenderer() |
static UserController |
userController() |
public Context()
public static AppContextLoader app()
public static UserController getUserController()
public static UserController userController()
public static TemplateRenderer templateRenderer()
public static TemplateRenderer getTemplateRenderer()
public static PluginRegistry pluginRegistry()
public static PluginRegistry getPluginRegistry()
public static DataAccessRegistry dal()
public static DataAccessRegistry getDal()
public static DataAccessRegistry dataAccess()
public static DataAccessRegistry getDataAccess()
public static IRequest getRequest()
public static StResponse response()
public static StResponse getResponse()
public static boolean currentUserCanAccessEndpoint(RestEndpointBase endpoint)
endpoint
- @Deprecated public static AppContextLoader getApp()
public static void setRequest(StRequest request)
public static void setResponse(StResponse response)
public static Settings getSettings()
public static void resetThreadContext()
public static String getValetEmail()
public static Long getValetUserId()
Copyright © 2016. All rights reserved.