public void setRequiredParentApp(ICFSecuritySecAppObj value) {
   if (buff == null) {
     getSecGroupFormBuff();
   }
   if (value != null) {
     getPKey().setRequiredClusterId(value.getRequiredClusterId());
     getSecGroupFormBuff().setRequiredClusterId(value.getRequiredClusterId());
     getSecGroupFormBuff().setRequiredSecAppId(value.getRequiredSecAppId());
   } else {
   }
   requiredParentApp = value;
 }
 public void setRequiredContainerApplication(ICFSecuritySecAppObj value) {
   if (buff == null) {
     getSecFormBuff();
   }
   requiredOwnerCluster = null;
   requiredContainerApplication = null;
   if (value != null) {
     getPKey().setRequiredClusterId(value.getRequiredClusterId());
     getSecFormBuff().setRequiredClusterId(value.getRequiredClusterId());
     getSecFormBuff().setRequiredSecAppId(value.getRequiredSecAppId());
   }
   requiredContainerApplication = value;
 }
  public void forgetSecApp(ICFSecuritySecAppObj Obj, boolean forgetSubObjects) {
    ICFSecuritySecAppObj obj = Obj;
    CFSecuritySecAppPKey pkey = obj.getPKey();
    if (members.containsKey(pkey)) {
      ICFSecuritySecAppObj keepObj = members.get(pkey);
      // Detach object from alternate, duplicate, all and PKey indexes

      if (indexByClusterIdx != null) {
        CFSecuritySecAppByClusterIdxKey keyClusterIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecAppPKey, ICFSecuritySecAppObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByUJEEMountIdx != null) {
        CFSecuritySecAppByUJEEMountIdxKey keyUJEEMountIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey();
        keyUJEEMountIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUJEEMountIdx.setRequiredJEEMountName(keepObj.getRequiredJEEMountName());
        indexByUJEEMountIdx.remove(keyUJEEMountIdx);
      }

      if (allSecApp != null) {
        allSecApp.remove(keepObj.getPKey());
      }
      members.remove(pkey);
      if (forgetSubObjects) {
        ((ICFSecuritySchemaObj) schema)
            .getSecFormTableObj()
            .forgetSecFormBySecAppIdx(
                keepObj.getRequiredClusterId(), keepObj.getRequiredSecAppId());
      }
    }
  }
 public ICFSecuritySecAppObj getRequiredContainerApplication(boolean forceRead) {
   if (forceRead || (requiredContainerApplication == null)) {
     boolean anyMissing = false;
     if (!anyMissing) {
       ICFSecuritySecAppObj obj =
           ((ICFSecuritySchemaObj) getOrigAsSecForm().getSchema())
               .getSecAppTableObj()
               .readSecAppByIdIdx(
                   getPKey().getRequiredClusterId(), getSecFormBuff().getRequiredSecAppId());
       requiredContainerApplication = obj;
       if (obj != null) {
         getSecFormBuff().setRequiredClusterId(obj.getRequiredClusterId());
         getSecFormBuff().setRequiredSecAppId(obj.getRequiredSecAppId());
         requiredContainerApplication = obj;
       }
     }
   }
   return (requiredContainerApplication);
 }
  public ICFSecuritySecAppObj realizeSecApp(ICFSecuritySecAppObj Obj) {
    ICFSecuritySecAppObj obj = Obj;
    CFSecuritySecAppPKey pkey = obj.getPKey();
    ICFSecuritySecAppObj keepObj = null;
    if (members.containsKey(pkey) && (null != members.get(pkey))) {
      ICFSecuritySecAppObj existingObj = members.get(pkey);
      keepObj = existingObj;

      /*
       *	We always rebind the data because if we're being called, some index has
       *	been updated and is refreshing it's data, which may or may not have changed
       */

      // Detach object from alternate and duplicate indexes, leave PKey alone

      if (indexByClusterIdx != null) {
        CFSecuritySecAppByClusterIdxKey keyClusterIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecAppPKey, ICFSecuritySecAppObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.remove(keepObj.getPKey());
        }
      }

      if (indexByUJEEMountIdx != null) {
        CFSecuritySecAppByUJEEMountIdxKey keyUJEEMountIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey();
        keyUJEEMountIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUJEEMountIdx.setRequiredJEEMountName(keepObj.getRequiredJEEMountName());
        indexByUJEEMountIdx.remove(keyUJEEMountIdx);
      }

      keepObj.setBuff(Obj.getBuff());
      // Attach new object to alternate and duplicate indexes -- PKey stay stable

      if (indexByClusterIdx != null) {
        CFSecuritySecAppByClusterIdxKey keyClusterIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecAppPKey, ICFSecuritySecAppObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.put(keepObj.getPKey(), keepObj);
        }
      }

      if (indexByUJEEMountIdx != null) {
        CFSecuritySecAppByUJEEMountIdxKey keyUJEEMountIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey();
        keyUJEEMountIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUJEEMountIdx.setRequiredJEEMountName(keepObj.getRequiredJEEMountName());
        indexByUJEEMountIdx.put(keyUJEEMountIdx, keepObj);
      }
      if (allSecApp != null) {
        allSecApp.put(keepObj.getPKey(), keepObj);
      }
    } else {
      keepObj = obj;
      keepObj.setIsNew(false);
      // Attach new object to PKey, all, alternate, and duplicate indexes
      members.put(keepObj.getPKey(), keepObj);
      if (allSecApp != null) {
        allSecApp.put(keepObj.getPKey(), keepObj);
      }

      if (indexByClusterIdx != null) {
        CFSecuritySecAppByClusterIdxKey keyClusterIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newClusterIdxKey();
        keyClusterIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        Map<CFSecuritySecAppPKey, ICFSecuritySecAppObj> mapClusterIdx =
            indexByClusterIdx.get(keyClusterIdx);
        if (mapClusterIdx != null) {
          mapClusterIdx.put(keepObj.getPKey(), keepObj);
        }
      }

      if (indexByUJEEMountIdx != null) {
        CFSecuritySecAppByUJEEMountIdxKey keyUJEEMountIdx =
            ((ICFCrmSchema) schema.getBackingStore()).getFactorySecApp().newUJEEMountIdxKey();
        keyUJEEMountIdx.setRequiredClusterId(keepObj.getRequiredClusterId());
        keyUJEEMountIdx.setRequiredJEEMountName(keepObj.getRequiredJEEMountName());
        indexByUJEEMountIdx.put(keyUJEEMountIdx, keepObj);
      }
    }
    return (keepObj);
  }