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 TypeMethodDescriptionvoid
archiveChildSandboxes
(Long parentSandBoxId) boolean
checkForExistingApprovalSandboxWithName
(String sandboxName) Returns true if an existing sandboxName exists with the passed in name.boolean
checkForExistingSandbox
(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:
retrieveSandBoxById
in interfaceSandBoxService
-
retrieveAllSandBoxes
- Specified by:
retrieveAllSandBoxes
in interfaceSandBoxService
-
retrieveSandBoxesByType
- Specified by:
retrieveSandBoxesByType
in interfaceSandBoxService
-
retrieveUserSandBoxForParent
- Specified by:
retrieveUserSandBoxForParent
in interfaceSandBoxService
-
retrieveSandBoxManagementById
Description copied from interface:SandBoxService
Returns the SandBox by id but only if the SandBox is associated with the current site.- Specified by:
retrieveSandBoxManagementById
in interfaceSandBoxService
- Returns:
-
retrievePreviewSandBoxes
- Specified by:
retrievePreviewSandBoxes
in interfaceSandBoxService
-
retrieveUserSandBox
Description copied from interface:SandBoxService
Returns 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:
retrieveUserSandBox
in interfaceSandBoxService
- Returns:
-
retrieveAuthorNamesForSandBoxes
- Specified by:
retrieveAuthorNamesForSandBoxes
in interfaceSandBoxService
-
retrieveSandboxNamesForSandBoxes
Description copied from interface:SandBoxService
Returns a map of SanboxId and Sandbox name- Specified by:
retrieveSandboxNamesForSandBoxes
in interfaceSandBoxService
- Returns:
-
createSandBox
- Specified by:
createSandBox
in interfaceSandBoxService
-
createUserSandBox
- Specified by:
createUserSandBox
in interfaceSandBoxService
-
createUserSandBox
- Specified by:
createUserSandBox
in interfaceSandBoxService
-
createDefaultSandBox
- Specified by:
createDefaultSandBox
in interfaceSandBoxService
-
retrieveSandBox
- Specified by:
retrieveSandBox
in interfaceSandBoxService
-
retrieveAllUserSandBoxes
Deprecated.- Specified by:
retrieveAllUserSandBoxes
in interfaceSandBoxService
- Returns:
- a list of SandBox belonging to the user
-
archiveChildSandboxes
- Specified by:
archiveChildSandboxes
in interfaceSandBoxService
-
retrieveChildSandBoxesByParentId
- Specified by:
retrieveChildSandBoxesByParentId
in interfaceSandBoxService
-
checkForExistingApprovalSandboxWithName
Description copied from interface:SandBoxService
Returns true if an existing sandboxName exists with the passed in name.- Specified by:
checkForExistingApprovalSandboxWithName
in interfaceSandBoxService
- Returns:
-
checkForExistingSandbox
- Specified by:
checkForExistingSandbox
in interfaceSandBoxService
-