|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.common.web.BroadleafSandBoxResolverImpl
@Component(value="blSandBoxResolver") public class BroadleafSandBoxResolverImpl
Responsible for determining the SandBox to use for the current request. SandBox's are used to store a user's changes to products, content-items, etc. until they are ready to be pushed to production. If a request is being served with a SandBox parameter, it indicates that the user wants to see the site as if their changes were applied.
| Field Summary | |
|---|---|
static String |
SANDBOX_VAR
Request attribute to store the current sandbox |
protected Boolean |
sandBoxPreviewEnabled
Property used to disable sandbox mode. |
| Constructor Summary | |
|---|---|
BroadleafSandBoxResolverImpl()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Boolean sandBoxPreviewEnabled
public static String SANDBOX_VAR
| Constructor Detail |
|---|
public BroadleafSandBoxResolverImpl()
| Method Detail |
|---|
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 BroadleafSandBoxResolverpublic Boolean getSandBoxPreviewEnabled()
public void setSandBoxPreviewEnabled(Boolean sandBoxPreviewEnabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||