package gw.api.admin uses com.guidewire.pl.system.bundle.EntityBundleImpl /** * Defines utility functions for PC Administration UI. */ @ReadOnly public class PCAdminUtil extends BaseAdminUtil { /** * Deletes the given dataflow masks and commits the change immediately. This * should not throw an exception unless there is a low level database error, * but if there is such an error none of the masks will be deleted (the * deletions are committed as a single transaction). * * @param masks the masks to be deleted */ public static function deleteDataFlowMasks(masks : EntityFlowMaskData[]) { gw.transaction.Transaction.runWithNewBundle(\ bundle -> { for (var mask in masks) { mask = bundle.add(mask) mask.remove() } }) } }