logger.debug("IN");
if (obj == null) {
logger.warn("BIObject in input is null!!");
return null;
}
SDKDocument aDoc = new SDKDocument();
aDoc.setId(obj.getId());
aDoc.setLabel(obj.getLabel());
aDoc.setName(obj.getName());
aDoc.setDescription(obj.getDescription());
aDoc.setType(obj.getBiObjectTypeCode());
aDoc.setState(obj.getStateCode());
Engine engine = obj.getEngine();
if (engine != null) {
aDoc.setEngineId(engine.getId());
}
Integer dataSetId = obj.getDataSetId();
if (dataSetId != null) {
aDoc.setDataSetId(dataSetId);
}
Integer dataSourceId = obj.getDataSourceId();
if (dataSourceId != null) {
aDoc.setDataSourceId(dataSourceId);
}
logger.debug("OUT");
return aDoc;
}