org.broadleafcommerce.common.sandbox.service
Class SandBoxServiceImpl
java.lang.Object
org.broadleafcommerce.common.sandbox.service.SandBoxServiceImpl
- All Implemented Interfaces:
- SandBoxService
@Service(value="blSandBoxService")
public class SandBoxServiceImpl
- extends Object
- implements SandBoxService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sandBoxDao
protected SandBoxDao sandBoxDao
SandBoxServiceImpl
public SandBoxServiceImpl()
retrieveSandBoxById
public SandBox retrieveSandBoxById(Long sandboxId)
- Specified by:
retrieveSandBoxById in interface SandBoxService
retrieveAllSandBoxes
public List<SandBox> retrieveAllSandBoxes()
- Specified by:
retrieveAllSandBoxes in interface SandBoxService
retrieveSandBoxesByType
public List<SandBox> retrieveSandBoxesByType(SandBoxType type)
- Specified by:
retrieveSandBoxesByType in interface SandBoxService
retrieveUserSandBoxForParent
public SandBox retrieveUserSandBoxForParent(Long authorId,
Long parentSandBoxId)
- Specified by:
retrieveUserSandBoxForParent in interface SandBoxService
retrievePreviewSandBoxes
public List<SandBox> retrievePreviewSandBoxes(Long authorId)
- Specified by:
retrievePreviewSandBoxes in interface SandBoxService
retrieveUserSandBox
public SandBox retrieveUserSandBox(Long authorId,
Long overrideSandBoxId,
String sandBoxName)
- Description copied from interface:
SandBoxService
- Returns the sandbox currently associated with the passed in userId.
If one is not associated, it uses (or creates) a default user sandbox with the
name: user:username.
- Specified by:
retrieveUserSandBox in interface SandBoxService
- Returns:
retrieveAuthorNamesForSandBoxes
public Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
- Specified by:
retrieveAuthorNamesForSandBoxes in interface SandBoxService
createSandBox
public SandBox createSandBox(String sandBoxName,
SandBoxType sandBoxType)
- Specified by:
createSandBox in interface SandBoxService
createUserSandBox
public SandBox createUserSandBox(Long authorId,
SandBox approvalSandBox)
- Specified by:
createUserSandBox in interface SandBoxService
createDefaultSandBox
public SandBox createDefaultSandBox()
- Specified by:
createDefaultSandBox in interface SandBoxService
retrieveSandBox
public SandBox retrieveSandBox(String sandBoxName,
SandBoxType sandBoxType)
- Specified by:
retrieveSandBox in interface SandBoxService
Copyright © 2013. All Rights Reserved.