Class ExtensionManagerEJB
java.lang.Object
de.hybris.platform.persistence.ManagerEJB
de.hybris.platform.persistence.extension.ExtensionManagerEJB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanRemoveItem(ItemRemote item) In case a manager wants to abort the removal of an Item this method should return false.getExtension(String name) voidnotifyItemRemove(ItemRemote item) Callback method to get notified if an item in the hybris platform is going to be removed.Methods inherited from class de.hybris.platform.persistence.ManagerEJB
ejbCreate, ejbPostCreate, getPersistencePool, isReinitialization, prepareItemRemove, removeItem
-
Constructor Details
-
ExtensionManagerEJB
public ExtensionManagerEJB()
-
-
Method Details
-
notifyItemRemove
Description copied from class:ManagerEJBCallback method to get notified if an item in the hybris platform is going to be removed.
Each manager can perform some cleanups.
It is a major failure to throw an exception here to abort item removal; useManagerEJB.canRemoveItem(ItemRemote)instead to signal your veto.- Overrides:
notifyItemRemovein classManagerEJB
-
canRemoveItem
Description copied from class:ManagerEJBIn case a manager wants to abort the removal of an Item this method should return false. Since all manager are asked before you can assume that no changes are made when one manager aborts.- Overrides:
canRemoveItemin classManagerEJB- Throws:
ConsistencyCheckException- you can either throw an exception or return false
-
getAllExtensionNames
-
getExtension
-
getAllExtensions
-