页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

1、服务接口

当扩展插件需要调用系统原有方法时,建议使用SDK中的services接口进行调用以统一管理。 服务器端SDK通过Java API提供七项服务接口:

...


2、调用示例

请参考以下调用示例代码。

代码块
languagejava
linenumberstrue
//获取本地连接 
LocalClientConnector conn = new LocalClientConnector(); 

//资源目录树 
CatalogService catalogService = new CatalogService(conn); 
 String elementId = "I2c9490741d4647ab011d4b92363f2061"; 
 String elementType = "SIMPLE_REPORT"; 
boolean result = catalogService.isCatalogElementAccessible(elementId, elementType); 
 System.out.println(result); 

//灵活报表 
SimpleReportService simpleReportService = new SimpleReportService(conn); 
 String reportId = "I2c9490741d2370a8011d2df3b1fd1fa0"; 
 Report report = simpleReportService.openReport(reportId); 
 System.out.println(report.getCurrentReportName()); 

//指标类报表 
ManageReportService reportService = new ManageReportService (conn); 

//用户管理 
UserManagerService userManagerService = new UserManagerService(conn); 
 String departmentId = "DEPARTMENT"; 
 IDepartment department = userManagerService.getDepartmentById(departmentId); 
 System.out.println(department.getName());