org.broadleafcommerce.common.sandbox.service
Class SandBoxServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.common.sandbox.service.SandBoxServiceImpl
All Implemented Interfaces:
SandBoxService

@Service(value="blSandBoxService")
public class SandBoxServiceImpl
extends Object
implements SandBoxService


Field Summary
protected  SandBoxDao sandBoxDao
           
 
Constructor Summary
SandBoxServiceImpl()
           
 
Method Summary
 SandBox createDefaultSandBox()
           
 SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType)
           
 SandBox createUserSandBox(Long authorId, SandBox approvalSandBox)
           
 List<SandBox> retrieveAllSandBoxes()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sandBoxDao

protected SandBoxDao sandBoxDao
Constructor Detail

SandBoxServiceImpl

public SandBoxServiceImpl()
Method Detail

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.