@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 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 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
public List<SandBox> retrieveAllUserSandBoxes(Long authorId)
SandBoxService
SandBoxType.USER
and belong to the given
user.retrieveAllUserSandBoxes
in interface SandBoxService
Copyright © 2014. All rights reserved.