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 = ((ICFAsteriskSchemaObj) getSchema()) .getLicenseTableObj() .readLicenseByUNameIdx(getRequiredTenantId(), getRequiredId(), 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 = ((ICFDbTestSchemaObj) getSchema()) .getHostNodeTableObj() .readHostNodeByHostNameIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFDbTestSchemaObj) getSchema()) .getTenantTableObj() .readTenantByUNameIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFDbTestSchemaObj) getSchema()) .getSecAppTableObj() .readSecAppByUJEEMountIdx(getRequiredId(), nextName, false); } if (subObj == null) { subObj = ((ICFDbTestSchemaObj) 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); }