@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 |
|---|---|
SandBox |
createDefaultSandBox() |
SandBox |
createSandBox(String sandBoxName,
SandBoxType sandBoxType) |
SandBox |
createUserSandBox(Long authorId,
SandBox approvalSandBox) |
List<SandBox> |
retrieveAllSandBoxes() |
List<SandBox> |
retrieveAllUserSandBoxes(Long authorId)
Reads all SandBoxes that are of type
SandBoxType.USER and belong to the given
user. |
Map<Long,String> |
retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds) |
List<SandBox> |
retrievePreviewSandBoxes(Long authorId) |
SandBox |
retrieveSandBox(String sandBoxName,
SandBoxType sandBoxType) |
SandBox |
retrieveSandBoxById(Long sandboxId) |
List<SandBox> |
retrieveSandBoxesByType(SandBoxType type) |
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 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 SandBoxServicepublic List<SandBox> retrieveAllUserSandBoxes(Long authorId)
SandBoxServiceSandBoxType.USER and belong to the given
user.retrieveAllUserSandBoxes in interface SandBoxServiceCopyright © 2014. All rights reserved.