public ICFLibAnyObj getNamedObject(String objName) { String nextName; String remainingName; ICFLibAnyObj subObj = null; ICFLibAnyObj retObj; int nextDot = objName.indexOf('.'); if (nextDot >= 0) { nextName = objName.substring(0, nextDot); remainingName = objName.substring(nextDot + 1); } else { nextName = objName; remainingName = null; } if (subObj == null) { subObj = ((ICFCrmSchemaObj) getSchema()) .getSecDeviceTableObj() .readSecDeviceByIdIdx(getRequiredSecUserId(), nextName, false); } if (remainingName == null) { retObj = subObj; } else if (subObj == null) { retObj = null; } else { retObj = subObj.getNamedObject(remainingName); } return (retObj); }
public ICFLibAnyObj getNamedObject(Class qualifyingClass, String objName) { ICFLibAnyObj topContainer = getObjQualifier(qualifyingClass); if (topContainer == null) { return (null); } ICFLibAnyObj namedObject = topContainer.getNamedObject(objName); return (namedObject); }
public ICFLibAnyObj getNamedObject(String objName) { String nextName; String remainingName; ICFLibAnyObj subObj = null; ICFLibAnyObj retObj; int nextDot = objName.indexOf('.'); if (nextDot >= 0) { nextName = objName.substring(0, nextDot); remainingName = objName.substring(nextDot + 1); } else { nextName = objName; remainingName = null; } if (subObj == null) { subObj = ((ICFInternetSchemaObj) getSchema()) .getHostNodeTableObj() .readHostNodeByHostNameIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFInternetSchemaObj) getSchema()) .getTenantTableObj() .readTenantByUNameIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFInternetSchemaObj) getSchema()) .getSecAppTableObj() .readSecAppByUJEEMountIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFInternetSchemaObj) getSchema()) .getSecGroupTableObj() .readSecGroupByUNameIdx(getRequiredId(), nextName, false); } if (remainingName == null) { retObj = subObj; } else if (subObj == null) { retObj = null; } else { retObj = subObj.getNamedObject(remainingName); } return (retObj); }
public ICFLibAnyObj getNamedObject(String objName) { String nextName; String remainingName; ICFLibAnyObj subObj = null; ICFLibAnyObj retObj; int nextDot = objName.indexOf('.'); if (nextDot >= 0) { nextName = objName.substring(0, nextDot); remainingName = objName.substring(nextDot + 1); } else { nextName = objName; remainingName = null; } if (remainingName == null) { retObj = subObj; } else if (subObj == null) { retObj = null; } else { retObj = subObj.getNamedObject(remainingName); } return (retObj); }