public void deleteSecAppByIdIdx(long ClusterId, int SecAppId) { CFSecuritySecAppPKey pkey = ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey(); pkey.setRequiredClusterId(ClusterId); pkey.setRequiredSecAppId(SecAppId); ICFSecuritySecAppObj obj = readSecApp(pkey); if (obj != null) { ICFSecuritySecAppEditObj editObj = (ICFSecuritySecAppEditObj) obj.getEdit(); boolean editStarted; if (editObj == null) { editObj = (ICFSecuritySecAppEditObj) obj.beginEdit(); if (editObj != null) { editStarted = true; } else { editStarted = false; } } else { editStarted = false; } if (editObj != null) { editObj.delete(); if (editStarted) { editObj.endEdit(); } } obj.forget(true); } }
public ICFSecuritySecAppObj readSecAppByIdIdx(long ClusterId, int SecAppId, boolean forceRead) { CFSecuritySecAppPKey pkey = ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey(); pkey.setRequiredClusterId(ClusterId); pkey.setRequiredSecAppId(SecAppId); ICFSecuritySecAppObj obj = readSecApp(pkey, forceRead); return (obj); }
public void forgetSecAppByIdIdx(long ClusterId, int SecAppId) { if (members == null) { return; } CFSecuritySecAppPKey key = ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newPKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecAppId(SecAppId); if (members.containsKey(key)) { ICFSecuritySecAppObj probed = members.get(key); if (probed != null) { probed.forget(true); } } }