|
@@ -5,6 +5,7 @@ import com.dragoninfo.dcuc.app.dto.dataresource.ResourceClassify;
|
|
|
import com.dragoninfo.dcuc.app.enumresources.DataResourceEnum;
|
|
|
import com.dragoninfo.dcuc.app.service.IDataResourceService;
|
|
|
import com.dragoninfo.dcuc.app.vo.*;
|
|
|
+import com.dragonsoft.duceap.commons.util.enums.EnumUtils;
|
|
|
import com.google.common.base.Joiner;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -44,6 +45,32 @@ public class DataResourceFacade implements IDataResourceFacade {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public DataResourceClassifyVo getDataResourceTree(String typeCode) {
|
|
|
+ DataResourceClassifyVo result = null;
|
|
|
+ DataResourceEnum dataResourceEnum = Enum.valueOf(DataResourceEnum.class, typeCode);
|
|
|
+ switch (dataResourceEnum){
|
|
|
+ case DATA_CLASSIFY:
|
|
|
+ result = getDataLevelTree();
|
|
|
+ break;
|
|
|
+ case COLUMN_CLASSIFY:
|
|
|
+ result = getFieldClassifyTree();
|
|
|
+ break;
|
|
|
+
|
|
|
+ case DATA_SECURITY_LEVEL:
|
|
|
+ result = getSecurityLevelTree();
|
|
|
+ break;
|
|
|
+ case DATA_RESOURCE_CLASSIFY:
|
|
|
+ result = getDataClassifyTree();
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 数据分级树
|
|
|
*
|