private void handleDeleteOffer() { String webKey = decodeStringArgument(); Integer id = AcUspsDomesticSkeletonRouteOfferTools.getIdFromWebKey(webKey); if (id == null) error("Invalid offer id."); getUspsDomesticSkeletonRouteOfferService().delete(id); print(); }
private void handleEditOffer() { String webKey = decodeStringArgument(); Integer id = AcUspsDomesticSkeletonRouteOfferTools.getIdFromWebKey(webKey); if (id == null) error("Invalid offer id."); getPageSession().setUspsDomesticSkeletonRouteOfferWebKey(webKey); AcUspsDomesticSkeletonRouteOfferEditPage.instance.print(); }