org.broadleafcommerce.openadmin.server.service.persistence
Class SandBoxServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.persistence.SandBoxServiceImpl
All Implemented Interfaces:
SandBoxService

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


Field Summary
protected  AdminSecurityService adminSecurityService
           
protected  SandBoxDao sandBoxDao
           
protected  java.util.List<SandBoxItemListener> sandboxItemListeners
           
 
Constructor Summary
SandBoxServiceImpl()
           
 
Method Summary
protected  SandBoxAction createSandBoxAction(SandBoxActionType type, java.lang.String comment)
           
protected  SandBox determineNextSandBox(SandBox sandBox)
           
 java.util.List<SandBoxItemListener> getSandboxItemListeners()
           
 void promoteAllSandBoxItems(SandBox fromSandBox, java.lang.String comment)
           
 void promoteSelectedItems(SandBox fromSandBox, java.lang.String comment, java.util.List<SandBoxItem> sandBoxItems)
           
 void rejectAllSandBoxItems(SandBox originalSandBox, SandBox sandBox, java.lang.String comment)
           
 void rejectSelectedSandBoxItems(SandBox fromSandBox, java.lang.String comment, java.util.List<SandBoxItem> sandBoxItems)
           
 SandBox retrieveApprovalSandBox(SandBox sandBox)
           
 SandBox retrieveSandboxById(java.lang.Long sandboxId)
           
 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 fromSandBox, java.util.List<SandBoxItem> sandBoxItems)
           
 void schedulePromotionForSandBox(SandBox sandBox, java.util.Calendar calendar)
           
 void schedulePromotionForSandBoxItems(java.util.List<SandBoxItem> sandBoxItems, java.util.Calendar calendar)
           
 void setSandboxItemListeners(java.util.List<SandBoxItemListener> sandboxItemListeners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sandboxItemListeners

protected java.util.List<SandBoxItemListener> sandboxItemListeners

sandBoxDao

protected SandBoxDao sandBoxDao

adminSecurityService

protected AdminSecurityService adminSecurityService
Constructor Detail

SandBoxServiceImpl

public SandBoxServiceImpl()
Method Detail

retrieveSandboxById

public SandBox retrieveSandboxById(java.lang.Long sandboxId)
Specified by:
retrieveSandboxById in interface SandBoxService

retrieveUserSandBox

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

promoteAllSandBoxItems

public void promoteAllSandBoxItems(SandBox fromSandBox,
                                   java.lang.String comment)
Specified by:
promoteAllSandBoxItems in interface SandBoxService

promoteSelectedItems

public void promoteSelectedItems(SandBox fromSandBox,
                                 java.lang.String comment,
                                 java.util.List<SandBoxItem> sandBoxItems)
Specified by:
promoteSelectedItems in interface SandBoxService

revertAllSandBoxItems

public void revertAllSandBoxItems(SandBox originalSandBox,
                                  SandBox sandBox)
Specified by:
revertAllSandBoxItems in interface SandBoxService

revertSelectedSandBoxItems

public void revertSelectedSandBoxItems(SandBox fromSandBox,
                                       java.util.List<SandBoxItem> sandBoxItems)
Specified by:
revertSelectedSandBoxItems in interface SandBoxService

rejectAllSandBoxItems

public void rejectAllSandBoxItems(SandBox originalSandBox,
                                  SandBox sandBox,
                                  java.lang.String comment)
Specified by:
rejectAllSandBoxItems in interface SandBoxService

rejectSelectedSandBoxItems

public void rejectSelectedSandBoxItems(SandBox fromSandBox,
                                       java.lang.String comment,
                                       java.util.List<SandBoxItem> sandBoxItems)
Specified by:
rejectSelectedSandBoxItems in interface SandBoxService

schedulePromotionForSandBox

public void schedulePromotionForSandBox(SandBox sandBox,
                                        java.util.Calendar calendar)
Specified by:
schedulePromotionForSandBox in interface SandBoxService

schedulePromotionForSandBoxItems

public void schedulePromotionForSandBoxItems(java.util.List<SandBoxItem> sandBoxItems,
                                             java.util.Calendar calendar)
Specified by:
schedulePromotionForSandBoxItems in interface SandBoxService

getSandboxItemListeners

public java.util.List<SandBoxItemListener> getSandboxItemListeners()

setSandboxItemListeners

public void setSandboxItemListeners(java.util.List<SandBoxItemListener> sandboxItemListeners)

createSandBoxAction

protected SandBoxAction createSandBoxAction(SandBoxActionType type,
                                            java.lang.String comment)

determineNextSandBox

protected SandBox determineNextSandBox(SandBox sandBox)

retrieveApprovalSandBox

public SandBox retrieveApprovalSandBox(SandBox sandBox)
Specified by:
retrieveApprovalSandBox in interface SandBoxService


Copyright © 2011. All Rights Reserved.