Class ExtensionManagerEJB


  • public class ExtensionManagerEJB
    extends ManagerEJB
    • Constructor Detail

      • ExtensionManagerEJB

        public ExtensionManagerEJB()
    • 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; use ManagerEJB.canRemoveItem(ItemRemote) instead to signal your veto.
        Overrides:
        notifyItemRemove in class ManagerEJB
      • 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 class ManagerEJB
        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()