Skip to content

Instantly share code, notes, and snippets.

@egealpay
Created February 26, 2019 06:35
Show Gist options
  • Select an option

  • Save egealpay/9bcf198002a45fbfbe0d6dc4f56f548e to your computer and use it in GitHub Desktop.

Select an option

Save egealpay/9bcf198002a45fbfbe0d6dc4f56f548e to your computer and use it in GitHub Desktop.
public void registerItem(Item item) {
if (item != null) {
ItemRegistry registry = peristentStore.getItemRegistry();
if (registry != null) {
Item existing = registry.getItem(item.getID());
if (existing.getBillingPeriod().hasRetailOwner()) {
existing.register(item);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment