B2BRepositoryFormHandler can remove references to repository items when they are deleted from the repository. It overrides deleteItem to check for references to each repository item before deleting it. Only when the last reference has disappeared is the item actually deleted from the repository. In B2B commerce, multiple organizations often refer to same items. For example, the USMW Retail and USMW Wholesale divisions might share a shipping address. Removing this shipping address from the Retail division should not remove it from the repository, because the Wholesale division still refers to it. However, when the address is removed from all divisions, it should be removed from the repository. B2BRepositoryFormHandler adds logic to the deleteItem method to ensure that repository items are not removed from the repository until all references to them have been removed.


Copyright © 1997, 2019 Oracle and/or its affiliates. All rights reserved. Legal Notices