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 booleancanRemoveItem(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()ExtensionEJBgetExtension(java.lang.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
-
-
-
-
Method Detail
-
notifyItemRemove
public void notifyItemRemove(ItemRemote item)
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
public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
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
public java.util.Collection<java.lang.String> getAllExtensionNames()
-
getExtension
public ExtensionEJB getExtension(java.lang.String name)
-
getAllExtensions
public java.util.Collection<ExtensionEJB> getAllExtensions()
-
-