org.broadleafcommerce.openadmin.server.service.persistence
Interface SandBoxService

All Known Implementing Classes:
SandBoxServiceImpl

public interface SandBoxService


Method Summary
 SandBox createSandBox(Site site, String sandBoxName, SandBoxType sandBoxType)
           
 void promoteAllSandBoxItems(SandBox sandBox, String comment)
           
 void promoteSelectedItems(SandBox sandBox, String comment, List<SandBoxItem> sandBoxItems)
           
 void rejectAllSandBoxItems(SandBox originalSandBox, SandBox sandBox, String comment)
           
 void rejectSelectedSandBoxItems(SandBox sandBox, String comment, List<SandBoxItem> sandBoxItems)
           
 SandBox retrieveApprovalSandBox(SandBox sandBox)
           
 SandBox retrieveSandBox(Site site, String sandBoxName, SandBoxType sandBoxType)
           
 SandBox retrieveSandboxById(Long id)
           
 SandBox retrieveUserSandBox(Site site, AdminUser adminUser)
          Returns the sandbox currently associated with the passed in userId.
 void revertAllSandBoxItems(SandBox originalSandBox, SandBox sandBox)
           
 void revertSelectedSandBoxItems(SandBox sandBox, List<SandBoxItem> sandBoxItems)
           
 void schedulePromotionForSandBox(SandBox sandBox, Calendar calendar)
           
 void schedulePromotionForSandBoxItems(List<SandBoxItem> sandBoxItems, Calendar calendar)
           
 

Method Detail

retrieveSandboxById

SandBox retrieveSandboxById(Long id)

retrieveUserSandBox

SandBox retrieveUserSandBox(Site site,
                            AdminUser adminUser)
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:

promoteAllSandBoxItems

void promoteAllSandBoxItems(SandBox sandBox,
                            String comment)

promoteSelectedItems

void promoteSelectedItems(SandBox sandBox,
                          String comment,
                          List<SandBoxItem> sandBoxItems)

schedulePromotionForSandBox

void schedulePromotionForSandBox(SandBox sandBox,
                                 Calendar calendar)

schedulePromotionForSandBoxItems

void schedulePromotionForSandBoxItems(List<SandBoxItem> sandBoxItems,
                                      Calendar calendar)

revertAllSandBoxItems

void revertAllSandBoxItems(SandBox originalSandBox,
                           SandBox sandBox)

revertSelectedSandBoxItems

void revertSelectedSandBoxItems(SandBox sandBox,
                                List<SandBoxItem> sandBoxItems)

rejectAllSandBoxItems

void rejectAllSandBoxItems(SandBox originalSandBox,
                           SandBox sandBox,
                           String comment)

rejectSelectedSandBoxItems

void rejectSelectedSandBoxItems(SandBox sandBox,
                                String comment,
                                List<SandBoxItem> sandBoxItems)

retrieveApprovalSandBox

SandBox retrieveApprovalSandBox(SandBox sandBox)

createSandBox

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

retrieveSandBox

SandBox retrieveSandBox(Site site,
                        String sandBoxName,
                        SandBoxType sandBoxType)


Copyright © 2013. All Rights Reserved.