public interface SandBoxService
Modifier and Type | Method and Description |
---|---|
void |
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) |
SandBox |
createDefaultSandBox() |
SandBox |
createSandBox(String sandBoxName,
SandBoxType sandBoxType) |
Long |
createUserSandBox(Long authorId,
Long approvalSandbox) |
SandBox |
createUserSandBox(Long authorId,
SandBox approvalSandBox) |
List<SandBox> |
retrieveAllSandBoxes() |
List<SandBox> |
retrieveAllUserSandBoxes(Long authorId)
Deprecated.
Not used in BLC. May return incorrect results in MT installations.
Reads all SandBoxes that are of type
SandBoxType.USER and belong to the given
user. |
Map<Long,String> |
retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds) |
List<SandBox> |
retrieveChildSandBoxesByParentId(Long parentSandBoxId) |
List<SandBox> |
retrievePreviewSandBoxes(Long authorId) |
SandBox |
retrieveSandBox(String sandBoxName,
SandBoxType sandBoxType) |
SandBox |
retrieveSandBoxById(Long id) |
List<SandBox> |
retrieveSandBoxesByType(SandBoxType type) |
SandBox |
retrieveSandBoxManagementById(Long sandBoxId)
Returns the SandBox by id but only if the SandBox is associated with the current site.
|
Map<Long,String> |
retrieveSandboxNamesForSandBoxes(Set<Long> sandBoxIds)
Returns a map of SanboxId and Sandbox name
|
SandBox |
retrieveUserSandBox(Long authorId,
Long overrideSandBoxId,
String sandBoxName)
Returns the sandbox currently associated with the passed in userId.
|
SandBox |
retrieveUserSandBoxForParent(Long authorId,
Long parentSandBoxId) |
SandBox retrieveUserSandBox(Long authorId, Long overrideSandBoxId, String sandBoxName)
adminUser
- SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
SandBox retrieveSandBoxManagementById(Long sandBoxId)
sandBoxId
- List<SandBox> retrieveSandBoxesByType(SandBoxType type)
Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
Map<Long,String> retrieveSandboxNamesForSandBoxes(Set<Long> sandBoxIds)
sandBoxIds
- SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType) throws Exception
Exception
SandBox retrieveSandBox(String sandBoxName, SandBoxType sandBoxType)
SandBox createDefaultSandBox()
boolean checkForExistingApprovalSandboxWithName(String sandboxName)
sandboxName
- List<SandBox> retrieveAllUserSandBoxes(Long authorId)
SandBoxType.USER
and belong to the given
user.authorId
- void archiveChildSandboxes(Long parentSandBoxId)
List<SandBox> retrieveChildSandBoxesByParentId(Long parentSandBoxId)
boolean checkForExistingSandbox(SandBoxType sandBoxType, String sandboxName, Long authorId)
Copyright © 2022. All rights reserved.