@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 SandBoxService
public List<SandBox> retrieveAllSandBoxes()
retrieveAllSandBoxes
in interface SandBoxService
public List<SandBox> retrieveSandBoxesByType(SandBoxType type)
retrieveSandBoxesByType
in interface SandBoxService
public SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
retrieveUserSandBoxForParent
in interface SandBoxService
public SandBox retrieveSandBoxManagementById(Long sandBoxId)
SandBoxService
retrieveSandBoxManagementById
in interface SandBoxService
public List<SandBox> retrievePreviewSandBoxes(Long authorId)
retrievePreviewSandBoxes
in interface SandBoxService
public SandBox retrieveUserSandBox(Long authorId, Long overrideSandBoxId, String sandBoxName)
SandBoxService
retrieveUserSandBox
in interface SandBoxService
public Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
retrieveAuthorNamesForSandBoxes
in interface SandBoxService
public SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType)
createSandBox
in interface SandBoxService
public SandBox createUserSandBox(Long authorId, SandBox approvalSandBox)
createUserSandBox
in interface SandBoxService
public SandBox createDefaultSandBox()
createDefaultSandBox
in interface SandBoxService
public 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 SandBoxService
public List<SandBox> retrieveChildSandBoxesByParentId(Long parentSandBoxId)
retrieveChildSandBoxesByParentId
in interface SandBoxService
public boolean checkForExistingApprovalSandboxWithName(String sandboxName)
SandBoxService
checkForExistingApprovalSandboxWithName
in interface SandBoxService
public boolean checkForExistingSandbox(SandBoxType sandBoxType, String sandboxName, Long authorId)
checkForExistingSandbox
in interface SandBoxService
Copyright © 2017. All rights reserved.