Class SandBoxServiceImpl
java.lang.Object
org.broadleafcommerce.common.sandbox.service.SandBoxServiceImpl
- All Implemented Interfaces:
SandBoxService
@Service("blSandBoxService")
public class SandBoxServiceImpl
extends Object
implements SandBoxService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveChildSandboxes(Long parentSandBoxId) booleancheckForExistingApprovalSandboxWithName(String sandboxName) Returns true if an existing sandboxName exists with the passed in name.booleancheckForExistingSandbox(SandBoxType sandBoxType, String sandboxName, Long authorId) createSandBox(String sandBoxName, SandBoxType sandBoxType) createUserSandBox(Long authorId, Long approvalSandbox) createUserSandBox(Long authorId, SandBox approvalSandBox) retrieveAllUserSandBoxes(Long authorId) Deprecated.retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds) retrieveChildSandBoxesByParentId(Long parentSandBoxId) retrievePreviewSandBoxes(Long authorId) retrieveSandBox(String sandBoxName, SandBoxType sandBoxType) retrieveSandBoxById(Long sandboxId) retrieveSandBoxManagementById(Long sandBoxId) Returns the SandBox by id but only if the SandBox is associated with the current site.retrieveSandboxNamesForSandBoxes(Set<Long> sandBoxIds) Returns a map of SanboxId and Sandbox nameretrieveUserSandBox(Long authorId, Long overrideSandBoxId, String sandBoxName) Returns the sandbox currently associated with the passed in userId.retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
-
Field Details
-
sandBoxDao
-
-
Constructor Details
-
SandBoxServiceImpl
public SandBoxServiceImpl()
-
-
Method Details
-
retrieveSandBoxById
- Specified by:
retrieveSandBoxByIdin interfaceSandBoxService
-
retrieveAllSandBoxes
- Specified by:
retrieveAllSandBoxesin interfaceSandBoxService
-
retrieveSandBoxesByType
- Specified by:
retrieveSandBoxesByTypein interfaceSandBoxService
-
retrieveUserSandBoxForParent
- Specified by:
retrieveUserSandBoxForParentin interfaceSandBoxService
-
retrieveSandBoxManagementById
Description copied from interface:SandBoxServiceReturns the SandBox by id but only if the SandBox is associated with the current site.- Specified by:
retrieveSandBoxManagementByIdin interfaceSandBoxService- Returns:
-
retrievePreviewSandBoxes
- Specified by:
retrievePreviewSandBoxesin interfaceSandBoxService
-
retrieveUserSandBox
Description copied from interface:SandBoxServiceReturns the sandbox currently associated with the passed in userId. If one is not associated, it uses (or creates) a default user sandbox with the name: user:username.- Specified by:
retrieveUserSandBoxin interfaceSandBoxService- Returns:
-
retrieveAuthorNamesForSandBoxes
- Specified by:
retrieveAuthorNamesForSandBoxesin interfaceSandBoxService
-
retrieveSandboxNamesForSandBoxes
Description copied from interface:SandBoxServiceReturns a map of SanboxId and Sandbox name- Specified by:
retrieveSandboxNamesForSandBoxesin interfaceSandBoxService- Returns:
-
createSandBox
- Specified by:
createSandBoxin interfaceSandBoxService
-
createUserSandBox
- Specified by:
createUserSandBoxin interfaceSandBoxService
-
createUserSandBox
- Specified by:
createUserSandBoxin interfaceSandBoxService
-
createDefaultSandBox
- Specified by:
createDefaultSandBoxin interfaceSandBoxService
-
retrieveSandBox
- Specified by:
retrieveSandBoxin interfaceSandBoxService
-
retrieveAllUserSandBoxes
Deprecated.- Specified by:
retrieveAllUserSandBoxesin interfaceSandBoxService- Returns:
- a list of SandBox belonging to the user
-
archiveChildSandboxes
- Specified by:
archiveChildSandboxesin interfaceSandBoxService
-
retrieveChildSandBoxesByParentId
- Specified by:
retrieveChildSandBoxesByParentIdin interfaceSandBoxService
-
checkForExistingApprovalSandboxWithName
Description copied from interface:SandBoxServiceReturns true if an existing sandboxName exists with the passed in name.- Specified by:
checkForExistingApprovalSandboxWithNamein interfaceSandBoxService- Returns:
-
checkForExistingSandbox
- Specified by:
checkForExistingSandboxin interfaceSandBoxService
-