Class ExtensionManagerEJB
- java.lang.Object
-
- de.hybris.platform.persistence.ManagerEJB
-
- de.hybris.platform.persistence.extension.ExtensionManagerEJB
-
public class ExtensionManagerEJB extends ManagerEJB
-
-
Constructor Summary
Constructors Constructor Description ExtensionManagerEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRemoveItem(ItemRemote item)
In case a manager wants to abort the removal of an Item this method should return false.java.util.Collection<java.lang.String>
getAllExtensionNames()
java.util.Collection<ExtensionEJB>
getAllExtensions()
ExtensionEJB
getExtension(java.lang.String name)
void
notifyItemRemove(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
-
-
-
-
Method Detail
-
notifyItemRemove
public void notifyItemRemove(ItemRemote item)
Description copied from class:ManagerEJB
Callback 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:
notifyItemRemove
in classManagerEJB
-
canRemoveItem
public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
Description copied from class:ManagerEJB
In 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:
canRemoveItem
in classManagerEJB
- Throws:
ConsistencyCheckException
- you can either throw an exception or return false
-
getAllExtensionNames
public java.util.Collection<java.lang.String> getAllExtensionNames()
-
getExtension
public ExtensionEJB getExtension(java.lang.String name)
-
getAllExtensions
public java.util.Collection<ExtensionEJB> getAllExtensions()
-
-