public class NotifyManagerEJB extends ManagerEJB
| Constructor and Description |
|---|
NotifyManagerEJB() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRemoveItem(ItemRemote item)
In case a manager wants to abort the removal of an Item this method should return false.
|
void |
initializeCreateObjects(java.util.Map params)
does nothing right now.
|
void |
initializeCreateTypes(java.util.Map params)
creates all composed types for this manager.
|
void |
initializeModifyTypes(java.util.Map params)
finishes all composed types for this manager by adding correct attributedescriptors and inheritance relations for
all types created by
ManagerEJB.initializeCreateTypes(Map ). |
void |
initializeRemoveObjects(java.util.Map params)
removes all item data for all item types defined by this manager.
|
void |
notifyItemRemove(ItemRemote item)
Callback method to get notified if an item in the hybris platform is going to be removed.
|
ejbCreate, ejbPostCreate, getPersistencePool, isReinitialization, prepareItemRemove, removeItempublic boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
ManagerEJBcanRemoveItem in class ManagerEJBConsistencyCheckException - you can either throw an exception or return falsepublic void notifyItemRemove(ItemRemote item)
ManagerEJBManagerEJB.canRemoveItem(ItemRemote)
instead to signal your veto. notifyItemRemove in class ManagerEJBnotifyItemRemove(ItemRemote )public void initializeRemoveObjects(java.util.Map params)
ManagerEJByou should override this to remove additional data not handled by some item type but don't forget to call super.initializeRemoveObjects.
public void initializeCreateTypes(java.util.Map params)
ManagerEJBManagerEJB.initializeModifyTypes(Map )!
override to create your own types here but dont forget to call super.initializeCreateTypes.
public void initializeModifyTypes(java.util.Map params)
ManagerEJBManagerEJB.initializeCreateTypes(Map ).
override to complete you custom types created in ManagerEJB.initializeCreateTypes(Map ) but dont forget to call
super.initializeModifyTypes.
public void initializeCreateObjects(java.util.Map params)
ManagerEJBinitializeCreateObjects in class ManagerEJBCopyright © 2018 SAP SE. All Rights Reserved.