@Component(value="blSandBoxResolver") public class BroadleafSandBoxResolverImpl extends Object implements BroadleafSandBoxResolver
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_TIMEZONE |
protected CrossAppAuthService |
crossAppAuthService |
static String |
SANDBOX_VAR
Request attribute to store the current sandbox
|
protected Boolean |
sandBoxPreviewEnabled
Property used to disable sandbox mode.
|
SANDBOX_ID_VAR
Constructor and Description |
---|
BroadleafSandBoxResolverImpl() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getSandBoxPreviewEnabled()
Sets whether or not the site can be viewed in preview mode.
|
SandBox |
resolveSandBox(javax.servlet.http.HttpServletRequest request,
Site site)
Determines the current sandbox based on other parameters on the request such as
the blSandBoxId parameters.
|
SandBox |
resolveSandBox(org.springframework.web.context.request.WebRequest request,
Site site)
Resolve the sandbox for the given site and request
|
void |
setSandBoxPreviewEnabled(Boolean sandBoxPreviewEnabled) |
protected Boolean sandBoxPreviewEnabled
public static String SANDBOX_VAR
public static final String CLIENT_TIMEZONE
@Autowired(required=false) @Qualifier(value="blCrossAppAuthService") protected CrossAppAuthService crossAppAuthService
public SandBox resolveSandBox(javax.servlet.http.HttpServletRequest request, Site site)
getSandBoxPreviewEnabled()
, then this method will not return a user
SandBox.resolveSandBox
in interface BroadleafSandBoxResolver
public SandBox resolveSandBox(org.springframework.web.context.request.WebRequest request, Site site)
BroadleafSandBoxResolver
resolveSandBox
in interface BroadleafSandBoxResolver
public Boolean getSandBoxPreviewEnabled()
public void setSandBoxPreviewEnabled(Boolean sandBoxPreviewEnabled)
Copyright © 2022. All rights reserved.