@Service(value="blSandBoxService") public class SandBoxServiceImpl extends Object implements SandBoxService
| Modifier and Type | Field and Description |
|---|---|
protected SandBoxDao |
sandBoxDao |
| Constructor and Description |
|---|
SandBoxServiceImpl() |
| 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) |
SandBox |
createUserSandBox(Long authorId,
SandBox approvalSandBox) |
List<SandBox> |
retrieveAllSandBoxes() |
List<SandBox> |
retrieveAllUserSandBoxes(Long authorId)
Deprecated.
|
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 sandboxId) |
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.
|
SandBox |
retrieveUserSandBox(Long authorId,
Long overrideSandBoxId,
String sandBoxName)
Returns the sandbox currently associated with the passed in userId.
|
SandBox |
retrieveUserSandBoxForParent(Long authorId,
Long parentSandBoxId) |
protected SandBoxDao sandBoxDao
public SandBox retrieveSandBoxById(Long sandboxId)
retrieveSandBoxById in interface SandBoxServicepublic List<SandBox> retrieveAllSandBoxes()
retrieveAllSandBoxes in interface SandBoxServicepublic List<SandBox> retrieveSandBoxesByType(SandBoxType type)
retrieveSandBoxesByType in interface SandBoxServicepublic SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
retrieveUserSandBoxForParent in interface SandBoxServicepublic SandBox retrieveSandBoxManagementById(Long sandBoxId)
SandBoxServiceretrieveSandBoxManagementById in interface SandBoxServicepublic List<SandBox> retrievePreviewSandBoxes(Long authorId)
retrievePreviewSandBoxes in interface SandBoxServicepublic SandBox retrieveUserSandBox(Long authorId, Long overrideSandBoxId, String sandBoxName)
SandBoxServiceretrieveUserSandBox in interface SandBoxServicepublic Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
retrieveAuthorNamesForSandBoxes in interface SandBoxServicepublic SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType)
createSandBox in interface SandBoxServicepublic SandBox createUserSandBox(Long authorId, SandBox approvalSandBox)
createUserSandBox in interface SandBoxServicepublic SandBox createDefaultSandBox()
createDefaultSandBox in interface SandBoxServicepublic SandBox retrieveSandBox(String sandBoxName, SandBoxType sandBoxType)
retrieveSandBox in interface SandBoxService@Deprecated public List<SandBox> retrieveAllUserSandBoxes(Long authorId)
retrieveAllUserSandBoxes in interface SandBoxService@Transactional(value="blTransactionManager") public void archiveChildSandboxes(Long parentSandBoxId)
archiveChildSandboxes in interface SandBoxServicepublic List<SandBox> retrieveChildSandBoxesByParentId(Long parentSandBoxId)
retrieveChildSandBoxesByParentId in interface SandBoxServicepublic boolean checkForExistingApprovalSandboxWithName(String sandboxName)
SandBoxServicecheckForExistingApprovalSandboxWithName in interface SandBoxServicepublic boolean checkForExistingSandbox(SandBoxType sandBoxType, String sandboxName, Long authorId)
checkForExistingSandbox in interface SandBoxServiceCopyright © 2017. All rights reserved.