public ICFLibAnyObj getObjQualifier(Class qualifyingClass) { ICFLibAnyObj container = this; if (qualifyingClass != null) { while (container != null) { if (container instanceof ICFSecurityClusterObj) { break; } else if (container instanceof ICFSecurityTenantObj) { break; } else if (qualifyingClass.isInstance(container)) { break; } container = container.getObjScope(); } } else { while (container != null) { if (container instanceof ICFSecurityClusterObj) { break; } else if (container instanceof ICFSecurityTenantObj) { break; } container = container.getObjScope(); } } return (container); }
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 String getObjFullName() { String fullName = getObjName(); ICFLibAnyObj container = getObjScope(); String containerName; while (container != null) { if (container instanceof ICFSecurityClusterObj) { container = null; } else if (container instanceof ICFSecurityTenantObj) { container = null; } else { containerName = container.getObjName(); fullName = containerName + "." + fullName; container = container.getObjScope(); } } return (fullName); }
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); }