org.broadleafcommerce.common.sandbox.service
Interface SandBoxService

All Known Implementing Classes:
SandBoxServiceImpl

public interface SandBoxService


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 id)
           
 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)
           
 

Method Detail

retrieveSandBoxById

SandBox retrieveSandBoxById(Long id)

retrieveAllSandBoxes

List<SandBox> retrieveAllSandBoxes()

retrieveUserSandBox

SandBox retrieveUserSandBox(Long authorId,
                            Long overrideSandBoxId,
                            String sandBoxName)
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.

Parameters:
adminUser -
Returns:

retrieveUserSandBoxForParent

SandBox retrieveUserSandBoxForParent(Long authorId,
                                     Long parentSandBoxId)

retrievePreviewSandBoxes

List<SandBox> retrievePreviewSandBoxes(Long authorId)

retrieveSandBoxesByType

List<SandBox> retrieveSandBoxesByType(SandBoxType type)

retrieveAuthorNamesForSandBoxes

Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)

createSandBox

SandBox createSandBox(String sandBoxName,
                      SandBoxType sandBoxType)
                      throws Exception
Throws:
Exception

createUserSandBox

SandBox createUserSandBox(Long authorId,
                          SandBox approvalSandBox)

retrieveSandBox

SandBox retrieveSandBox(String sandBoxName,
                        SandBoxType sandBoxType)

createDefaultSandBox

SandBox createDefaultSandBox()


Copyright © 2013. All Rights Reserved.