public class ExtensionManagerEJB extends ManagerEJB
| Constructor and Description |
|---|
ExtensionManagerEJB() |
| 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.
|
java.util.Collection<java.lang.String> |
getAllExtensionNames() |
java.util.Collection<ExtensionEJB> |
getAllExtensions() |
ExtensionEJB |
getExtension(java.lang.String name) |
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 void notifyItemRemove(ItemRemote item)
ManagerEJBManagerEJB.canRemoveItem(ItemRemote)
instead to signal your veto. notifyItemRemove in class ManagerEJBNotifyManagerEJB.notifyItemRemove(ItemRemote )public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
ManagerEJBcanRemoveItem in class ManagerEJBConsistencyCheckException - you can either throw an exception or return falsepublic 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 ManagerEJBpublic java.util.Collection<java.lang.String> getAllExtensionNames()
public ExtensionEJB getExtension(java.lang.String name)
public java.util.Collection<ExtensionEJB> getAllExtensions()
Copyright © 2018 SAP SE. All Rights Reserved.