public void deleteTSecGroupMemberByUUserIdx(long TenantId, int TSecGroupId, UUID SecUserId) { if (indexByUUserIdx == null) { indexByUUserIdx = new HashMap<CFSecurityTSecGroupMemberByUUserIdxKey, ICFSecurityTSecGroupMemberObj>(); } CFSecurityTSecGroupMemberByUUserIdxKey key = ((ICFCrmSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); ICFSecurityTSecGroupMemberObj obj = null; if (indexByUUserIdx.containsKey(key)) { obj = indexByUUserIdx.get(key); ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByUUserIdx( schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); obj.forget(true); } else { ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByUUserIdx( schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); } }
public void deleteSecGroupIncludeByUIncludeIdx( long ClusterId, int SecGroupId, int IncludeGroupId) { if (indexByUIncludeIdx == null) { indexByUIncludeIdx = new HashMap<CFSecuritySecGroupIncludeByUIncludeIdxKey, ICFSecuritySecGroupIncludeObj>(); } CFSecuritySecGroupIncludeByUIncludeIdxKey key = ((ICFInternetSchema) schema.getBackingStore()) .getFactorySecGroupInclude() .newUIncludeIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecGroupId(SecGroupId); key.setRequiredIncludeGroupId(IncludeGroupId); ICFSecuritySecGroupIncludeObj obj = null; if (indexByUIncludeIdx.containsKey(key)) { obj = indexByUIncludeIdx.get(key); ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .deleteSecGroupIncludeByUIncludeIdx( schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId); obj.forget(true); } else { ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .deleteSecGroupIncludeByUIncludeIdx( schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId); } }
public void deleteSecDeviceByUserIdx(UUID SecUserId) { CFSecuritySecDeviceByUserIdxKey key = ((ICFSecuritySchema) schema.getBackingStore()).getFactorySecDevice().newUserIdxKey(); key.setRequiredSecUserId(SecUserId); if (indexByUserIdx == null) { indexByUserIdx = new HashMap< CFSecuritySecDeviceByUserIdxKey, Map<CFSecuritySecDevicePKey, ICFSecuritySecDeviceObj>>(); } if (indexByUserIdx.containsKey(key)) { Map<CFSecuritySecDevicePKey, ICFSecuritySecDeviceObj> dict = indexByUserIdx.get(key); ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecDevice() .deleteSecDeviceByUserIdx(schema.getAuthorization(), SecUserId); Iterator<ICFSecuritySecDeviceObj> iter = dict.values().iterator(); ICFSecuritySecDeviceObj obj; List<ICFSecuritySecDeviceObj> toForget = new LinkedList<ICFSecuritySecDeviceObj>(); while (iter.hasNext()) { obj = iter.next(); toForget.add(obj); } iter = toForget.iterator(); while (iter.hasNext()) { obj = iter.next(); obj.forget(true); } indexByUserIdx.remove(key); } else { ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecDevice() .deleteSecDeviceByUserIdx(schema.getAuthorization(), SecUserId); } }
public ICFSecurityServiceTypeObj readServiceTypeByUDescrIdx( String Description, boolean forceRead) { if (indexByUDescrIdx == null) { indexByUDescrIdx = new HashMap<CFSecurityServiceTypeByUDescrIdxKey, ICFSecurityServiceTypeObj>(); } CFSecurityServiceTypeByUDescrIdxKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newUDescrIdxKey(); key.setRequiredDescription(Description); ICFSecurityServiceTypeObj obj = null; if ((!forceRead) && indexByUDescrIdx.containsKey(key)) { obj = indexByUDescrIdx.get(key); } else { CFSecurityServiceTypeBuff buff = ((ICFAccSchema) schema.getBackingStore()) .getTableServiceType() .readDerivedByUDescrIdx(schema.getAuthorization(), Description); if (buff != null) { obj = schema.getServiceTypeTableObj().newInstance(); obj.setPKey(((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newPKey()); obj.setBuff(buff); obj = (ICFSecurityServiceTypeObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUDescrIdx.put(key, null); } } return (obj); }
public void deleteSecDevice(ICFSecuritySecDeviceObj Obj) { ICFSecuritySecDeviceObj obj = Obj; ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecDevice() .deleteSecDevice(schema.getAuthorization(), obj.getSecDeviceBuff()); obj.forget(true); }
public void deleteISOCountry(ICFSecurityISOCountryObj Obj) { ICFSecurityISOCountryObj obj = Obj; ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .deleteISOCountry(schema.getAuthorization(), obj.getISOCountryBuff()); obj.forget(true); }
public void loadData(boolean forceReload) { ICFSecuritySchemaObj schemaObj = (ICFSecuritySchemaObj) javafxSchema.getSchema(); if ((containingCluster == null) || forceReload) { CFSecurityAuthorization auth = schemaObj.getAuthorization(); long containingClusterId = auth.getSecClusterId(); containingCluster = schemaObj.getClusterTableObj().readClusterByIdIdx(containingClusterId); } if ((listOfSysCluster == null) || forceReload) { observableListOfSysCluster = null; listOfSysCluster = schemaObj .getSysClusterTableObj() .readSysClusterByClusterIdx(containingCluster.getRequiredId(), javafxIsInitializing); if (listOfSysCluster != null) { observableListOfSysCluster = FXCollections.observableArrayList(listOfSysCluster); observableListOfSysCluster.sort(compareSysClusterByQualName); } else { observableListOfSysCluster = FXCollections.observableArrayList(); } dataTable.setItems(observableListOfSysCluster); // Hack from stackoverflow to fix JavaFX TableView refresh issue ((TableColumn) dataTable.getColumns().get(0)).setVisible(false); ((TableColumn) dataTable.getColumns().get(0)).setVisible(true); } }
public ICFSecuritySecGroupIncludeObj readSecGroupInclude( CFSecuritySecGroupIncludePKey pkey, boolean forceRead) { ICFSecuritySecGroupIncludeObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecuritySecGroupIncludeBuff readBuff = ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredClusterId(), pkey.getRequiredSecGroupIncludeId()); if (readBuff != null) { obj = schema.getSecGroupIncludeTableObj().newInstance(); obj.setPKey( ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey()); obj.setBuff(readBuff); obj = (ICFSecuritySecGroupIncludeObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
public ICFSecuritySecGroupIncludeObj readSecGroupIncludeByUIncludeIdx( long ClusterId, int SecGroupId, int IncludeGroupId, boolean forceRead) { if (indexByUIncludeIdx == null) { indexByUIncludeIdx = new HashMap<CFSecuritySecGroupIncludeByUIncludeIdxKey, ICFSecuritySecGroupIncludeObj>(); } CFSecuritySecGroupIncludeByUIncludeIdxKey key = ((ICFInternetSchema) schema.getBackingStore()) .getFactorySecGroupInclude() .newUIncludeIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredSecGroupId(SecGroupId); key.setRequiredIncludeGroupId(IncludeGroupId); ICFSecuritySecGroupIncludeObj obj = null; if ((!forceRead) && indexByUIncludeIdx.containsKey(key)) { obj = indexByUIncludeIdx.get(key); } else { CFSecuritySecGroupIncludeBuff buff = ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .readDerivedByUIncludeIdx( schema.getAuthorization(), ClusterId, SecGroupId, IncludeGroupId); if (buff != null) { obj = schema.getSecGroupIncludeTableObj().newInstance(); obj.setPKey( ((ICFInternetSchema) schema.getBackingStore()).getFactorySecGroupInclude().newPKey()); obj.setBuff(buff); obj = (ICFSecuritySecGroupIncludeObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUIncludeIdx.put(key, null); } } return (obj); }
public ICFSecurityTSecGroupMemberObj readTSecGroupMember( CFSecurityTSecGroupMemberPKey pkey, boolean forceRead) { ICFSecurityTSecGroupMemberObj obj = null; if ((!forceRead) && members.containsKey(pkey)) { obj = members.get(pkey); } else { CFSecurityTSecGroupMemberBuff readBuff = ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .readDerivedByIdIdx( schema.getAuthorization(), pkey.getRequiredTenantId(), pkey.getRequiredTSecGroupMemberId()); if (readBuff != null) { obj = schema.getTSecGroupMemberTableObj().newInstance(); obj.setPKey( ((ICFCrmSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey()); obj.setBuff(readBuff); obj = (ICFSecurityTSecGroupMemberObj) obj.realize(); } else if (schema.getCacheMisses()) { members.put(pkey, null); } } return (obj); }
public ICFSecurityISOCountryObj readISOCountryByNameIdx(String Name, boolean forceRead) { if (indexByNameIdx == null) { indexByNameIdx = new HashMap<CFSecurityISOCountryByNameIdxKey, ICFSecurityISOCountryObj>(); } CFSecurityISOCountryByNameIdxKey key = ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey(); key.setRequiredName(Name); ICFSecurityISOCountryObj obj = null; if ((!forceRead) && indexByNameIdx.containsKey(key)) { obj = indexByNameIdx.get(key); } else { CFSecurityISOCountryBuff buff = ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .readDerivedByNameIdx(schema.getAuthorization(), Name); if (buff != null) { obj = schema.getISOCountryTableObj().newInstance(); obj.setPKey( ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newPKey()); obj.setBuff(buff); obj = (ICFSecurityISOCountryObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByNameIdx.put(key, null); } } return (obj); }
public void deleteTenant(ICFSecurityTenantObj Obj) { ICFSecurityTenantObj obj = Obj; ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .deleteTenant(schema.getAuthorization(), obj.getTenantBuff()); obj.forget(true); }
public ICFSecurityTenantObj readTenantByUNameIdx( long ClusterId, String TenantName, boolean forceRead) { if (indexByUNameIdx == null) { indexByUNameIdx = new HashMap<CFSecurityTenantByUNameIdxKey, ICFSecurityTenantObj>(); } CFSecurityTenantByUNameIdxKey key = ((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newUNameIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredTenantName(TenantName); ICFSecurityTenantObj obj = null; if ((!forceRead) && indexByUNameIdx.containsKey(key)) { obj = indexByUNameIdx.get(key); } else { CFSecurityTenantBuff buff = ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .readDerivedByUNameIdx(schema.getAuthorization(), ClusterId, TenantName); if (buff != null) { obj = schema.getTenantTableObj().newInstance(); obj.setPKey(((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newPKey()); obj.setBuff(buff); obj = (ICFSecurityTenantObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUNameIdx.put(key, null); } } return (obj); }
public void deleteTSecGroupMember(ICFSecurityTSecGroupMemberObj Obj) { ICFSecurityTSecGroupMemberObj obj = Obj; ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMember(schema.getAuthorization(), obj.getTSecGroupMemberBuff()); obj.forget(true); }
public void deleteSecGroupInclude(ICFSecuritySecGroupIncludeObj Obj) { ICFSecuritySecGroupIncludeObj obj = Obj; ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .deleteSecGroupInclude(schema.getAuthorization(), obj.getSecGroupIncludeBuff()); obj.forget(true); }
public ICFSecurityTSecGroupMemberObj readTSecGroupMemberByUUserIdx( long TenantId, int TSecGroupId, UUID SecUserId, boolean forceRead) { if (indexByUUserIdx == null) { indexByUUserIdx = new HashMap<CFSecurityTSecGroupMemberByUUserIdxKey, ICFSecurityTSecGroupMemberObj>(); } CFSecurityTSecGroupMemberByUUserIdxKey key = ((ICFCrmSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newUUserIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); key.setRequiredSecUserId(SecUserId); ICFSecurityTSecGroupMemberObj obj = null; if ((!forceRead) && indexByUUserIdx.containsKey(key)) { obj = indexByUUserIdx.get(key); } else { CFSecurityTSecGroupMemberBuff buff = ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .readDerivedByUUserIdx(schema.getAuthorization(), TenantId, TSecGroupId, SecUserId); if (buff != null) { obj = schema.getTSecGroupMemberTableObj().newInstance(); obj.setPKey( ((ICFCrmSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newPKey()); obj.setBuff(buff); obj = (ICFSecurityTSecGroupMemberObj) obj.realize(); } else if (schema.getCacheMisses()) { indexByUUserIdx.put(key, null); } } return (obj); }
public ICFSecurityTenantObj updateTenant(ICFSecurityTenantObj Obj) { ICFSecurityTenantObj obj = Obj; ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .updateTenant(schema.getAuthorization(), Obj.getTenantBuff()); obj = (ICFSecurityTenantObj) Obj.realize(); return (obj); }
public ICFSecurityTSecGroupMemberObj updateTSecGroupMember(ICFSecurityTSecGroupMemberObj Obj) { ICFSecurityTSecGroupMemberObj obj = Obj; ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .updateTSecGroupMember(schema.getAuthorization(), Obj.getTSecGroupMemberBuff()); obj = (ICFSecurityTSecGroupMemberObj) Obj.realize(); return (obj); }
public ICFSecurityISOCountryObj updateISOCountry(ICFSecurityISOCountryObj Obj) { ICFSecurityISOCountryObj obj = Obj; ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .updateISOCountry(schema.getAuthorization(), Obj.getISOCountryBuff()); obj = (ICFSecurityISOCountryObj) Obj.realize(); return (obj); }
public ICFSecuritySecDeviceObj updateSecDevice(ICFSecuritySecDeviceObj Obj) { ICFSecuritySecDeviceObj obj = Obj; ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecDevice() .updateSecDevice(schema.getAuthorization(), Obj.getSecDeviceBuff()); obj = (ICFSecuritySecDeviceObj) Obj.realize(); return (obj); }
public ICFSecurityTSecGroupMemberObj createTSecGroupMember(ICFSecurityTSecGroupMemberObj Obj) { ICFSecurityTSecGroupMemberObj obj = Obj; CFSecurityTSecGroupMemberBuff buff = obj.getTSecGroupMemberBuff(); ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .createTSecGroupMember(schema.getAuthorization(), buff); obj.copyBuffToPKey(); obj = obj.realize(); return (obj); }
public ICFSecurityISOCountryObj createISOCountry(ICFSecurityISOCountryObj Obj) { ICFSecurityISOCountryObj obj = Obj; CFSecurityISOCountryBuff buff = obj.getISOCountryBuff(); ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .createISOCountry(schema.getAuthorization(), buff); obj.copyBuffToPKey(); obj = obj.realize(); return (obj); }
public ICFSecuritySecDeviceObj createSecDevice(ICFSecuritySecDeviceObj Obj) { ICFSecuritySecDeviceObj obj = Obj; CFSecuritySecDeviceBuff buff = obj.getSecDeviceBuff(); ((ICFSecuritySchema) schema.getBackingStore()) .getTableSecDevice() .createSecDevice(schema.getAuthorization(), buff); obj.copyBuffToPKey(); obj = obj.realize(); return (obj); }
public void deleteISOCountryByNameIdx(String Name) { if (indexByNameIdx == null) { indexByNameIdx = new HashMap<CFSecurityISOCountryByNameIdxKey, ICFSecurityISOCountryObj>(); } CFSecurityISOCountryByNameIdxKey key = ((ICFInternetSchema) schema.getBackingStore()).getFactoryISOCountry().newNameIdxKey(); key.setRequiredName(Name); ICFSecurityISOCountryObj obj = null; if (indexByNameIdx.containsKey(key)) { obj = indexByNameIdx.get(key); ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .deleteISOCountryByNameIdx(schema.getAuthorization(), Name); obj.forget(true); } else { ((ICFInternetSchema) schema.getBackingStore()) .getTableISOCountry() .deleteISOCountryByNameIdx(schema.getAuthorization(), Name); } }
public void deleteSecAppByUJEEMountIdx(long ClusterId, String JEEMountName) { if (indexByUJEEMountIdx == null) { indexByUJEEMountIdx = new HashMap<CFSecuritySecAppByUJEEMountIdxKey, ICFSecuritySecAppObj>(); } CFSecuritySecAppByUJEEMountIdxKey key = ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredJEEMountName(JEEMountName); ICFSecuritySecAppObj obj = null; if (indexByUJEEMountIdx.containsKey(key)) { obj = indexByUJEEMountIdx.get(key); ((ICFCrmSchema) schema.getBackingStore()) .getTableSecApp() .deleteSecAppByUJEEMountIdx(schema.getAuthorization(), ClusterId, JEEMountName); obj.forget(true); } else { ((ICFCrmSchema) schema.getBackingStore()) .getTableSecApp() .deleteSecAppByUJEEMountIdx(schema.getAuthorization(), ClusterId, JEEMountName); } }
public void deleteServiceTypeByUDescrIdx(String Description) { if (indexByUDescrIdx == null) { indexByUDescrIdx = new HashMap<CFSecurityServiceTypeByUDescrIdxKey, ICFSecurityServiceTypeObj>(); } CFSecurityServiceTypeByUDescrIdxKey key = ((ICFAccSchema) schema.getBackingStore()).getFactoryServiceType().newUDescrIdxKey(); key.setRequiredDescription(Description); ICFSecurityServiceTypeObj obj = null; if (indexByUDescrIdx.containsKey(key)) { obj = indexByUDescrIdx.get(key); ((ICFAccSchema) schema.getBackingStore()) .getTableServiceType() .deleteServiceTypeByUDescrIdx(schema.getAuthorization(), Description); obj.forget(true); } else { ((ICFAccSchema) schema.getBackingStore()) .getTableServiceType() .deleteServiceTypeByUDescrIdx(schema.getAuthorization(), Description); } }
public void deleteTenantByUNameIdx(long ClusterId, String TenantName) { if (indexByUNameIdx == null) { indexByUNameIdx = new HashMap<CFSecurityTenantByUNameIdxKey, ICFSecurityTenantObj>(); } CFSecurityTenantByUNameIdxKey key = ((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newUNameIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredTenantName(TenantName); ICFSecurityTenantObj obj = null; if (indexByUNameIdx.containsKey(key)) { obj = indexByUNameIdx.get(key); ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .deleteTenantByUNameIdx(schema.getAuthorization(), ClusterId, TenantName); obj.forget(true); } else { ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .deleteTenantByUNameIdx(schema.getAuthorization(), ClusterId, TenantName); } }
public void deleteSecGroupIncludeByIncludeIdx(long ClusterId, int IncludeGroupId) { CFSecuritySecGroupIncludeByIncludeIdxKey key = ((ICFInternetSchema) schema.getBackingStore()) .getFactorySecGroupInclude() .newIncludeIdxKey(); key.setRequiredClusterId(ClusterId); key.setRequiredIncludeGroupId(IncludeGroupId); if (indexByIncludeIdx == null) { indexByIncludeIdx = new HashMap< CFSecuritySecGroupIncludeByIncludeIdxKey, Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj>>(); } if (indexByIncludeIdx.containsKey(key)) { Map<CFSecuritySecGroupIncludePKey, ICFSecuritySecGroupIncludeObj> dict = indexByIncludeIdx.get(key); ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .deleteSecGroupIncludeByIncludeIdx(schema.getAuthorization(), ClusterId, IncludeGroupId); Iterator<ICFSecuritySecGroupIncludeObj> iter = dict.values().iterator(); ICFSecuritySecGroupIncludeObj obj; List<ICFSecuritySecGroupIncludeObj> toForget = new LinkedList<ICFSecuritySecGroupIncludeObj>(); while (iter.hasNext()) { obj = iter.next(); toForget.add(obj); } iter = toForget.iterator(); while (iter.hasNext()) { obj = iter.next(); obj.forget(true); } indexByIncludeIdx.remove(key); } else { ((ICFInternetSchema) schema.getBackingStore()) .getTableSecGroupInclude() .deleteSecGroupIncludeByIncludeIdx(schema.getAuthorization(), ClusterId, IncludeGroupId); } }
public void deleteTSecGroupMemberByGroupIdx(long TenantId, int TSecGroupId) { CFSecurityTSecGroupMemberByGroupIdxKey key = ((ICFCrmSchema) schema.getBackingStore()).getFactoryTSecGroupMember().newGroupIdxKey(); key.setRequiredTenantId(TenantId); key.setRequiredTSecGroupId(TSecGroupId); if (indexByGroupIdx == null) { indexByGroupIdx = new HashMap< CFSecurityTSecGroupMemberByGroupIdxKey, Map<CFSecurityTSecGroupMemberPKey, ICFSecurityTSecGroupMemberObj>>(); } if (indexByGroupIdx.containsKey(key)) { Map<CFSecurityTSecGroupMemberPKey, ICFSecurityTSecGroupMemberObj> dict = indexByGroupIdx.get(key); ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByGroupIdx(schema.getAuthorization(), TenantId, TSecGroupId); Iterator<ICFSecurityTSecGroupMemberObj> iter = dict.values().iterator(); ICFSecurityTSecGroupMemberObj obj; List<ICFSecurityTSecGroupMemberObj> toForget = new LinkedList<ICFSecurityTSecGroupMemberObj>(); while (iter.hasNext()) { obj = iter.next(); toForget.add(obj); } iter = toForget.iterator(); while (iter.hasNext()) { obj = iter.next(); obj.forget(true); } indexByGroupIdx.remove(key); } else { ((ICFCrmSchema) schema.getBackingStore()) .getTableTSecGroupMember() .deleteTSecGroupMemberByGroupIdx(schema.getAuthorization(), TenantId, TSecGroupId); } }
public ICFSecurityTenantObj lockTenant(CFSecurityTenantPKey pkey) { ICFSecurityTenantObj locked = null; CFSecurityTenantBuff lockBuff = ((ICFSecuritySchema) schema.getBackingStore()) .getTableTenant() .lockDerived(schema.getAuthorization(), pkey); if (lockBuff != null) { locked = schema.getTenantTableObj().newInstance(); locked.setPKey(((ICFSecuritySchema) schema.getBackingStore()).getFactoryTenant().newPKey()); locked.setBuff(lockBuff); locked = (ICFSecurityTenantObj) locked.realize(); } else { throw CFLib.getDefaultExceptionFactory() .newCollisionDetectedException(getClass(), "lockTenant", pkey); } return (locked); }