org.broadleafcommerce.openadmin.server.service.persistence
Class SandBoxServiceImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.SandBoxServiceImpl
- All Implemented Interfaces:
- SandBoxService
@Service(value="blSandBoxService")
public class SandBoxServiceImpl
- extends Object
- implements SandBoxService
|
Method Summary |
SandBox |
createSandBox(Site site,
String sandBoxName,
SandBoxType sandBoxType)
|
protected SandBoxAction |
createSandBoxAction(SandBoxActionType type,
String comment)
|
protected SandBox |
determineNextSandBox(SandBox sandBox)
|
List<SandBoxItemListener> |
getSandboxItemListeners()
|
void |
promoteAllSandBoxItems(SandBox fromSandBox,
String comment)
|
void |
promoteSelectedItems(SandBox fromSandBox,
String comment,
List<SandBoxItem> sandBoxItems)
|
void |
rejectAllSandBoxItems(SandBox originalSandBox,
SandBox sandBox,
String comment)
|
void |
rejectSelectedSandBoxItems(SandBox fromSandBox,
String comment,
List<SandBoxItem> sandBoxItems)
|
SandBox |
retrieveApprovalSandBox(SandBox sandBox)
|
SandBox |
retrieveSandBox(Site site,
String sandBoxName,
SandBoxType sandBoxType)
|
SandBox |
retrieveSandboxById(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,
List<SandBoxItem> sandBoxItems)
|
void |
schedulePromotionForSandBox(SandBox sandBox,
Calendar calendar)
|
void |
schedulePromotionForSandBoxItems(List<SandBoxItem> sandBoxItems,
Calendar calendar)
|
void |
setSandboxItemListeners(List<SandBoxItemListener> sandboxItemListeners)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sandboxItemListeners
protected List<SandBoxItemListener> sandboxItemListeners
sandBoxDao
protected SandBoxDao sandBoxDao
sandBoxItemDao
protected SandBoxItemDao sandBoxItemDao
adminSecurityService
protected AdminSecurityService adminSecurityService
SandBoxServiceImpl
public SandBoxServiceImpl()
retrieveSandboxById
public SandBox retrieveSandboxById(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
@Transactional(value="blTransactionManager")
public void promoteAllSandBoxItems(SandBox fromSandBox,
String comment)
- Specified by:
promoteAllSandBoxItems in interface SandBoxService
promoteSelectedItems
@Transactional(value="blTransactionManager")
public void promoteSelectedItems(SandBox fromSandBox,
String comment,
List<SandBoxItem> sandBoxItems)
- Specified by:
promoteSelectedItems in interface SandBoxService
revertAllSandBoxItems
@Transactional(value="blTransactionManager")
public void revertAllSandBoxItems(SandBox originalSandBox,
SandBox sandBox)
- Specified by:
revertAllSandBoxItems in interface SandBoxService
revertSelectedSandBoxItems
@Transactional(value="blTransactionManager")
public void revertSelectedSandBoxItems(SandBox fromSandBox,
List<SandBoxItem> sandBoxItems)
- Specified by:
revertSelectedSandBoxItems in interface SandBoxService
rejectAllSandBoxItems
@Transactional(value="blTransactionManager")
public void rejectAllSandBoxItems(SandBox originalSandBox,
SandBox sandBox,
String comment)
- Specified by:
rejectAllSandBoxItems in interface SandBoxService
rejectSelectedSandBoxItems
@Transactional(value="blTransactionManager")
public void rejectSelectedSandBoxItems(SandBox fromSandBox,
String comment,
List<SandBoxItem> sandBoxItems)
- Specified by:
rejectSelectedSandBoxItems in interface SandBoxService
schedulePromotionForSandBox
public void schedulePromotionForSandBox(SandBox sandBox,
Calendar calendar)
- Specified by:
schedulePromotionForSandBox in interface SandBoxService
schedulePromotionForSandBoxItems
public void schedulePromotionForSandBoxItems(List<SandBoxItem> sandBoxItems,
Calendar calendar)
- Specified by:
schedulePromotionForSandBoxItems in interface SandBoxService
getSandboxItemListeners
public List<SandBoxItemListener> getSandboxItemListeners()
setSandboxItemListeners
public void setSandboxItemListeners(List<SandBoxItemListener> sandboxItemListeners)
createSandBoxAction
protected SandBoxAction createSandBoxAction(SandBoxActionType type,
String comment)
determineNextSandBox
protected SandBox determineNextSandBox(SandBox sandBox)
retrieveApprovalSandBox
public SandBox retrieveApprovalSandBox(SandBox sandBox)
- Specified by:
retrieveApprovalSandBox in interface SandBoxService
createSandBox
public SandBox createSandBox(Site site,
String sandBoxName,
SandBoxType sandBoxType)
- Specified by:
createSandBox in interface SandBoxService
retrieveSandBox
public SandBox retrieveSandBox(Site site,
String sandBoxName,
SandBoxType sandBoxType)
- Specified by:
retrieveSandBox in interface SandBoxService
Copyright © 2013. All Rights Reserved.