public abstract class ManagerEJB extends Object
| Constructor and Description |
|---|
ManagerEJB() |
| 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 |
ejbCreate()
Default implementation of EJB method.
|
void |
ejbPostCreate()
Default implementation of EJB method.
|
protected PersistencePool |
getPersistencePool() |
void |
initializeCreateObjects(Map props)
does nothing right now.
|
void |
initializeCreateTypes(Map props)
creates all composed types for this manager.
|
void |
initializeModifyTypes(Map props)
finishes all composed types for this manager by adding correct attributedescriptors and inheritance relations for
all types created by
initializeCreateTypes(Map ). |
void |
initializeRemoveObjects(Map props)
removes all item data for all item types defined by this manager.
|
boolean |
isReinitialization(Map params) |
void |
notifyItemRemove(ItemRemote item)
Callback method to get notified if an item in the hybris platform is going to be removed.
|
void |
prepareItemRemove(ItemRemote item)
Called before a not stageable item is removed.
|
void |
removeItem(ItemRemote item)
Removes an Item which is not stageable.
|
protected PersistencePool getPersistencePool()
public void notifyItemRemove(ItemRemote item)
canRemoveItem(ItemRemote)
instead to signal your veto. public boolean canRemoveItem(ItemRemote item) throws ConsistencyCheckException
ConsistencyCheckException - you can either throw an exception or return falsepublic boolean isReinitialization(Map params)
public void initializeRemoveObjects(Map props)
you should override this to remove additional data not handled by some item type but don't forget to call super.initializeRemoveObjects.
public void initializeCreateTypes(Map props)
initializeModifyTypes(Map )!
override to create your own types here but dont forget to call super.initializeCreateTypes.
public void initializeModifyTypes(Map props)
initializeCreateTypes(Map ).
override to complete you custom types created in initializeCreateTypes(Map ) but dont forget to call
super.initializeModifyTypes.
public void initializeCreateObjects(Map props)
public void removeItem(ItemRemote item) throws ConsistencyCheckException
prepareItemRemove(ItemRemote )
| Productive | Stage |
|---|---|
|
|
|
ConsistencyCheckExceptionprepareItemRemove(ItemRemote )public void prepareItemRemove(ItemRemote item) throws ConsistencyCheckException
ConsistencyCheckExceptionremoveItem(ItemRemote )public void ejbCreate()
public void ejbPostCreate()
Copyright © 2017 SAP SE. All Rights Reserved.