Interface SandBoxService
- All Known Implementing Classes:
SandBoxServiceImpl
public interface SandBoxService
-
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.Not used in BLC.retrieveAuthorNamesForSandBoxes
(Set<Long> sandBoxIds) retrieveChildSandBoxesByParentId
(Long parentSandBoxId) retrievePreviewSandBoxes
(Long authorId) retrieveSandBox
(String sandBoxName, SandBoxType sandBoxType) 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)
-
Method Details
-
retrieveSandBoxById
-
retrieveAllSandBoxes
-
retrieveUserSandBox
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.- Parameters:
authorId
-overrideSandBoxId
-sandBoxName
-- Returns:
-
retrieveUserSandBoxForParent
-
retrieveSandBoxManagementById
Returns the SandBox by id but only if the SandBox is associated with the current site.- Parameters:
sandBoxId
-- Returns:
-
retrievePreviewSandBoxes
-
retrieveSandBoxesByType
-
retrieveAuthorNamesForSandBoxes
-
retrieveSandboxNamesForSandBoxes
Returns a map of SanboxId and Sandbox name- Parameters:
sandBoxIds
-- Returns:
-
createSandBox
- Throws:
Exception
-
createUserSandBox
-
createUserSandBox
-
retrieveSandBox
-
createDefaultSandBox
SandBox createDefaultSandBox() -
checkForExistingApprovalSandboxWithName
Returns true if an existing sandboxName exists with the passed in name.- Parameters:
sandboxName
-- Returns:
-
retrieveAllUserSandBoxes
Deprecated.Not used in BLC. May return incorrect results in MT installations. Reads all SandBoxes that are of typeSandBoxType.USER
and belong to the given user.- Parameters:
authorId
-- Returns:
- a list of SandBox belonging to the user
-
archiveChildSandboxes
-
retrieveChildSandBoxesByParentId
-
checkForExistingSandbox
-