Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
e9762b03
Unverified
Commit
e9762b03
authored
Oct 12, 2023
by
zhangyongtian
Committed by
GitHub
Oct 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimization some code (#2379)
parent
96ce0252
Show whitespace changes
Inline
Side-by-side
Showing
33 changed files
with
720 additions
and
54 deletions
+720
-54
AlertGroupController.java
.../main/java/org/dinky/controller/AlertGroupController.java
+0
-2
ClusterInstanceController.java
.../java/org/dinky/controller/ClusterInstanceController.java
+0
-2
JobInstanceController.java
...main/java/org/dinky/controller/JobInstanceController.java
+0
-3
RoleMenuController.java
...rc/main/java/org/dinky/controller/RoleMenuController.java
+1
-3
SysConfigController.java
...c/main/java/org/dinky/controller/SysConfigController.java
+1
-1
AlertGroupService.java
...in/src/main/java/org/dinky/service/AlertGroupService.java
+1
-1
AlertHistoryService.java
.../src/main/java/org/dinky/service/AlertHistoryService.java
+7
-0
CatalogueService.java
...min/src/main/java/org/dinky/service/CatalogueService.java
+75
-0
ClusterConfigurationService.java
...n/java/org/dinky/service/ClusterConfigurationService.java
+30
-1
DataBaseService.java
...dmin/src/main/java/org/dinky/service/DataBaseService.java
+49
-0
GitProjectService.java
...in/src/main/java/org/dinky/service/GitProjectService.java
+10
-4
HistoryService.java
...admin/src/main/java/org/dinky/service/HistoryService.java
+7
-0
JarService.java
dinky-admin/src/main/java/org/dinky/service/JarService.java
+5
-0
JobInstanceService.java
...n/src/main/java/org/dinky/service/JobInstanceService.java
+64
-0
LdapService.java
dinky-admin/src/main/java/org/dinky/service/LdapService.java
+5
-0
LoginLogService.java
...dmin/src/main/java/org/dinky/service/LoginLogService.java
+29
-0
MenuService.java
dinky-admin/src/main/java/org/dinky/service/MenuService.java
+5
-2
MonitorService.java
...admin/src/main/java/org/dinky/service/MonitorService.java
+45
-0
PrintTableService.java
...in/src/main/java/org/dinky/service/PrintTableService.java
+10
-0
RoleMenuService.java
...dmin/src/main/java/org/dinky/service/RoleMenuService.java
+2
-3
RoleService.java
dinky-admin/src/main/java/org/dinky/service/RoleService.java
+6
-0
RowPermissionsService.java
...rc/main/java/org/dinky/service/RowPermissionsService.java
+2
-0
SavepointsService.java
...in/src/main/java/org/dinky/service/SavepointsService.java
+24
-0
StudioService.java
...-admin/src/main/java/org/dinky/service/StudioService.java
+48
-0
SysConfigService.java
...min/src/main/java/org/dinky/service/SysConfigService.java
+14
-0
TaskService.java
dinky-admin/src/main/java/org/dinky/service/TaskService.java
+164
-0
TaskVersionService.java
...n/src/main/java/org/dinky/service/TaskVersionService.java
+5
-0
TokenService.java
...y-admin/src/main/java/org/dinky/service/TokenService.java
+1
-0
UDFTemplateService.java
...n/src/main/java/org/dinky/service/UDFTemplateService.java
+6
-6
UserRoleService.java
...dmin/src/main/java/org/dinky/service/UserRoleService.java
+2
-0
UserService.java
dinky-admin/src/main/java/org/dinky/service/UserService.java
+39
-10
ResourcesService.java
...ain/java/org/dinky/service/resource/ResourcesService.java
+45
-0
ProcessClient.java
...c/main/java/org/dinky/scheduler/client/ProcessClient.java
+18
-16
No files found.
dinky-admin/src/main/java/org/dinky/controller/AlertGroupController.java
View file @
e9762b03
...
@@ -27,7 +27,6 @@ import org.dinky.data.model.AlertGroup;
...
@@ -27,7 +27,6 @@ import org.dinky.data.model.AlertGroup;
import
org.dinky.data.result.ProTableResult
;
import
org.dinky.data.result.ProTableResult
;
import
org.dinky.data.result.Result
;
import
org.dinky.data.result.Result
;
import
org.dinky.service.AlertGroupService
;
import
org.dinky.service.AlertGroupService
;
import
org.dinky.service.AlertHistoryService
;
import
java.util.List
;
import
java.util.List
;
...
@@ -59,7 +58,6 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -59,7 +58,6 @@ import lombok.extern.slf4j.Slf4j;
public
class
AlertGroupController
{
public
class
AlertGroupController
{
private
final
AlertGroupService
alertGroupService
;
private
final
AlertGroupService
alertGroupService
;
private
final
AlertHistoryService
alertHistoryService
;
/**
/**
* save or update alert Group
* save or update alert Group
...
...
dinky-admin/src/main/java/org/dinky/controller/ClusterInstanceController.java
View file @
e9762b03
...
@@ -27,7 +27,6 @@ import org.dinky.data.model.Cluster;
...
@@ -27,7 +27,6 @@ import org.dinky.data.model.Cluster;
import
org.dinky.data.result.ProTableResult
;
import
org.dinky.data.result.ProTableResult
;
import
org.dinky.data.result.Result
;
import
org.dinky.data.result.Result
;
import
org.dinky.service.ClusterInstanceService
;
import
org.dinky.service.ClusterInstanceService
;
import
org.dinky.service.JobInstanceService
;
import
java.util.List
;
import
java.util.List
;
...
@@ -60,7 +59,6 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -60,7 +59,6 @@ import lombok.extern.slf4j.Slf4j;
public
class
ClusterInstanceController
{
public
class
ClusterInstanceController
{
private
final
ClusterInstanceService
clusterInstanceService
;
private
final
ClusterInstanceService
clusterInstanceService
;
private
final
JobInstanceService
jobInstanceService
;
/**
/**
* added or updated cluster instance
* added or updated cluster instance
...
...
dinky-admin/src/main/java/org/dinky/controller/JobInstanceController.java
View file @
e9762b03
...
@@ -33,7 +33,6 @@ import org.dinky.data.result.Result;
...
@@ -33,7 +33,6 @@ import org.dinky.data.result.Result;
import
org.dinky.explainer.lineage.LineageResult
;
import
org.dinky.explainer.lineage.LineageResult
;
import
org.dinky.job.BuildConfiguration
;
import
org.dinky.job.BuildConfiguration
;
import
org.dinky.service.JobInstanceService
;
import
org.dinky.service.JobInstanceService
;
import
org.dinky.service.TaskService
;
import
java.util.HashSet
;
import
java.util.HashSet
;
import
java.util.Set
;
import
java.util.Set
;
...
@@ -66,9 +65,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -66,9 +65,7 @@ import lombok.extern.slf4j.Slf4j;
@RequestMapping
(
"/api/jobInstance"
)
@RequestMapping
(
"/api/jobInstance"
)
@RequiredArgsConstructor
@RequiredArgsConstructor
public
class
JobInstanceController
{
public
class
JobInstanceController
{
private
final
JobInstanceService
jobInstanceService
;
private
final
JobInstanceService
jobInstanceService
;
private
final
TaskService
taskService
;
/**
/**
* 动态查询列表
* 动态查询列表
...
...
dinky-admin/src/main/java/org/dinky/controller/RoleMenuController.java
View file @
e9762b03
...
@@ -50,10 +50,8 @@ public class RoleMenuController {
...
@@ -50,10 +50,8 @@ public class RoleMenuController {
/**
/**
* assign menus to role
* assign menus to role
*
*
* @param roleId
* @param assignMenuToRoleDto
* @param menus
* @return {@link Result} with {@link Void}
* @return {@link Result} with {@link Void}
* @throws Exception {@link Exception}
*/
*/
@PostMapping
(
"assignMenuToRole"
)
@PostMapping
(
"assignMenuToRole"
)
@Log
(
title
=
"Assign Menus to Role "
,
businessType
=
BusinessType
.
GRANT
)
@Log
(
title
=
"Assign Menus to Role "
,
businessType
=
BusinessType
.
GRANT
)
...
...
dinky-admin/src/main/java/org/dinky/controller/SysConfigController.java
View file @
e9762b03
...
@@ -100,7 +100,7 @@ public class SysConfigController {
...
@@ -100,7 +100,7 @@ public class SysConfigController {
example
=
"sys"
)
example
=
"sys"
)
public
Result
<
List
<
Configuration
<?>>>
getOneTypeByKey
(
@RequestParam
(
"type"
)
String
type
)
{
public
Result
<
List
<
Configuration
<?>>>
getOneTypeByKey
(
@RequestParam
(
"type"
)
String
type
)
{
Map
<
String
,
List
<
Configuration
<?>>>
all
=
sysConfigService
.
getAll
();
Map
<
String
,
List
<
Configuration
<?>>>
all
=
sysConfigService
.
getAll
();
//
过滤出 以 type 开头的配置 返回
list
//
Filter out configurations starting with type and return a
list
List
<
Configuration
<?>>
configList
=
all
.
entrySet
().
stream
()
List
<
Configuration
<?>>
configList
=
all
.
entrySet
().
stream
()
.
filter
(
entry
->
entry
.
getKey
().
startsWith
(
type
))
.
filter
(
entry
->
entry
.
getKey
().
startsWith
(
type
))
.
map
(
Map
.
Entry
::
getValue
)
.
map
(
Map
.
Entry
::
getValue
)
...
...
dinky-admin/src/main/java/org/dinky/service/AlertGroupService.java
View file @
e9762b03
...
@@ -46,7 +46,7 @@ public interface AlertGroupService extends ISuperService<AlertGroup> {
...
@@ -46,7 +46,7 @@ public interface AlertGroupService extends ISuperService<AlertGroup> {
* alert group enable or disable by id
* alert group enable or disable by id
*
*
* @param id
* @param id
* @return
* @return
{@link Boolean}
*/
*/
Boolean
modifyAlertGroupStatus
(
Integer
id
);
Boolean
modifyAlertGroupStatus
(
Integer
id
);
...
...
dinky-admin/src/main/java/org/dinky/service/AlertHistoryService.java
View file @
e9762b03
...
@@ -33,7 +33,14 @@ public interface AlertHistoryService extends ISuperService<AlertHistory> {
...
@@ -33,7 +33,14 @@ public interface AlertHistoryService extends ISuperService<AlertHistory> {
* @param alertGroupId {@link Integer}
* @param alertGroupId {@link Integer}
* @return {@link Boolean}
* @return {@link Boolean}
*/
*/
@Deprecated
Boolean
deleteByAlertGroupId
(
Integer
alertGroupId
);
Boolean
deleteByAlertGroupId
(
Integer
alertGroupId
);
/**
* Query alert history records by job instance ID.
*
* @param jobInstanceId The ID of the job instance for which to query alert history records.
* @return A list of {@link AlertHistory} objects representing the alert history records for the specified job instance.
*/
List
<
AlertHistory
>
queryAlertHistoryRecordByJobInstanceId
(
Integer
jobInstanceId
);
List
<
AlertHistory
>
queryAlertHistoryRecordByJobInstanceId
(
Integer
jobInstanceId
);
}
}
dinky-admin/src/main/java/org/dinky/service/CatalogueService.java
View file @
e9762b03
...
@@ -33,27 +33,102 @@ import java.util.List;
...
@@ -33,27 +33,102 @@ import java.util.List;
*/
*/
public
interface
CatalogueService
extends
ISuperService
<
Catalogue
>
{
public
interface
CatalogueService
extends
ISuperService
<
Catalogue
>
{
/**
* Get the catalogue tree
*
* @return A list of {@link Catalogue} objects representing the catalogue tree.
*/
List
<
Catalogue
>
getCatalogueTree
();
List
<
Catalogue
>
getCatalogueTree
();
/**
* Find a catalogue by its parent ID and name.
*
* @param parentId The ID of the parent catalogue to find the child catalogue for.
* @param name The name of the catalogue to find.
* @return A {@link Catalogue} object representing the found catalogue.
*/
Catalogue
findByParentIdAndName
(
Integer
parentId
,
String
name
);
Catalogue
findByParentIdAndName
(
Integer
parentId
,
String
name
);
/**
* Save or update a catalogue and its tasks.
*
* @param catalogueTaskDTO A {@link CatalogueTaskDTO} object representing the updated catalogue and tasks.
* @return A {@link Catalogue} object representing the saved or updated catalogue.
*/
Catalogue
saveOrUpdateCatalogueAndTask
(
CatalogueTaskDTO
catalogueTaskDTO
);
Catalogue
saveOrUpdateCatalogueAndTask
(
CatalogueTaskDTO
catalogueTaskDTO
);
/**
* Create a catalogue and file task based on the given catalogue task DTO.
*
* @param catalogueTaskDTO A {@link CatalogueTaskDTO} object representing the catalogue task to create.
* @param ment The name of the catalogue to create.
* @return A boolean value indicating whether the catalogue was created successfully.
*/
Catalogue
createCatalogAndFileTask
(
CatalogueTaskDTO
catalogueTaskDTO
,
String
ment
);
Catalogue
createCatalogAndFileTask
(
CatalogueTaskDTO
catalogueTaskDTO
,
String
ment
);
/**
* Check if the given catalogue needs to be renamed.
*
* @param catalogue A {@link Catalogue} object representing the catalogue to check.
* @return A boolean value indicating whether the catalogue needs to be renamed.
*/
boolean
toRename
(
Catalogue
catalogue
);
boolean
toRename
(
Catalogue
catalogue
);
/**
* Move the given catalogue from one parent ID to another.
*
* @param originCatalogueId The ID of the catalogue to move.
* @param targetParentId The ID of the new parent for the catalogue.
* @return A boolean value indicating whether the catalogue was moved successfully.
*/
boolean
moveCatalogue
(
Integer
originCatalogueId
,
Integer
targetParentId
);
boolean
moveCatalogue
(
Integer
originCatalogueId
,
Integer
targetParentId
);
/**
* Copy a task from the given catalogue.
*
* @param catalogue A {@link Catalogue} object representing the catalogue to copy the task from.
* @return A boolean value indicating whether the task was copied successfully.
*/
boolean
copyTask
(
Catalogue
catalogue
);
boolean
copyTask
(
Catalogue
catalogue
);
/**
* Add dependent catalogues for the given catalogue names.
*
* @param catalogueNames An array of strings representing the names of the catalogues to add as dependents.
* @return An integer representing the ID of the added catalogue.
*/
Integer
addDependCatalogue
(
String
[]
catalogueNames
);
Integer
addDependCatalogue
(
String
[]
catalogueNames
);
/**
* Traverse the file system based on the given source path and catalogue.
*
* @param sourcePath The path of the source directory to traverse.
* @param catalog A {@link Catalogue} object representing the catalogue to use for filtering files.
*/
void
traverseFile
(
String
sourcePath
,
Catalogue
catalog
);
void
traverseFile
(
String
sourcePath
,
Catalogue
catalog
);
/**
* Get the catalogue with the given parent ID and name.
*
* @param parentId The ID of the parent catalogue to find the child catalogue for.
* @param name The name of the catalogue to find.
* @return A {@link Catalogue} object representing the found catalogue.
*/
Catalogue
getCatalogue
(
Integer
parentId
,
String
name
);
Catalogue
getCatalogue
(
Integer
parentId
,
String
name
);
/**
* Delete a catalogue by its ID.
*
* @param catalogueId The ID of the catalogue to delete.
* @return A {@link Result<Void>} object representing the result of the deletion operation.
*/
Result
<
Void
>
deleteCatalogueById
(
Integer
catalogueId
);
Result
<
Void
>
deleteCatalogueById
(
Integer
catalogueId
);
/**
* Save, update, or rename a catalogue based on the given parameters.
*
* @param catalogue A {@link Catalogue} object representing the catalogue to save, update, or rename.
* @return A boolean value indicating whether the operation was successful.
*/
Boolean
saveOrUpdateOrRename
(
Catalogue
catalogue
);
Boolean
saveOrUpdateOrRename
(
Catalogue
catalogue
);
}
}
dinky-admin/src/main/java/org/dinky/service/ClusterConfigurationService.java
View file @
e9762b03
...
@@ -34,13 +34,42 @@ import java.util.List;
...
@@ -34,13 +34,42 @@ import java.util.List;
*/
*/
public
interface
ClusterConfigurationService
extends
ISuperService
<
ClusterConfiguration
>
{
public
interface
ClusterConfigurationService
extends
ISuperService
<
ClusterConfiguration
>
{
/**
* Get the cluster configuration with the given ID.
*
* @param id The ID of the cluster configuration to get.
* @return A {@link ClusterConfiguration} object representing the found cluster configuration.
*/
ClusterConfiguration
getClusterConfigById
(
Integer
id
);
ClusterConfiguration
getClusterConfigById
(
Integer
id
);
/**
* List all enabled cluster configurations.
*
* @return A list of {@link ClusterConfiguration} objects representing all enabled cluster configurations.
*/
List
<
ClusterConfiguration
>
listEnabledAllClusterConfig
();
List
<
ClusterConfiguration
>
listEnabledAllClusterConfig
();
/**
* Get the Flink cluster configuration with the given ID.
*
* @param id The ID of the Flink cluster configuration to get.
* @return A {@link FlinkClusterConfig} object representing the found Flink cluster configuration.
*/
FlinkClusterConfig
getFlinkClusterCfg
(
Integer
id
);
FlinkClusterConfig
getFlinkClusterCfg
(
Integer
id
);
TestResult
testGateway
(
ClusterConfigurationDTO
clusterConfiguration
);
/**
* Test the given cluster configuration.
*
* @param clusterConfigurationDTO A {@link ClusterConfigurationDTO} object representing the cluster configuration to test.
* @return A {@link TestResult} object representing the test results.
*/
TestResult
testGateway
(
ClusterConfigurationDTO
clusterConfigurationDTO
);
/**
* Modify the status of a cluster configuration based on its ID.
*
* @param id The ID of the cluster configuration to modify.
* @return A boolean value indicating whether the modification was successful.
*/
Boolean
modifyClusterConfigStatus
(
Integer
id
);
Boolean
modifyClusterConfigStatus
(
Integer
id
);
}
}
dinky-admin/src/main/java/org/dinky/service/DataBaseService.java
View file @
e9762b03
...
@@ -97,10 +97,37 @@ public interface DataBaseService extends ISuperService<DataBase> {
...
@@ -97,10 +97,37 @@ public interface DataBaseService extends ISuperService<DataBase> {
*/
*/
List
<
Column
>
listColumns
(
Integer
id
,
String
schemaName
,
String
tableName
);
List
<
Column
>
listColumns
(
Integer
id
,
String
schemaName
,
String
tableName
);
/**
* Get the Flink table SQL for the given ID, schema name, and table name.
*
* @param id The ID of the Flink table to get the SQL for.
* @param schemaName The name of the schema for the Flink table.
* @param tableName The name of the table for the Flink table.
* @return A string representing the Flink table SQL.
*/
@Deprecated
String
getFlinkTableSql
(
Integer
id
,
String
schemaName
,
String
tableName
);
String
getFlinkTableSql
(
Integer
id
,
String
schemaName
,
String
tableName
);
/**
* Get the SQL select statement for the given ID, schema name, and table name.
*
* @param id The ID of the table to get the SQL select statement for.
* @param schemaName The name of the schema for the table.
* @param tableName The name of the table for the SQL select statement.
* @return A string representing the SQL select statement.
*/
@Deprecated
String
getSqlSelect
(
Integer
id
,
String
schemaName
,
String
tableName
);
String
getSqlSelect
(
Integer
id
,
String
schemaName
,
String
tableName
);
/**
* Get the SQL create statement for the given ID, schema name, and table name.
*
* @param id The ID of the table to get the SQL create statement for.
* @param schemaName The name of the schema for the table.
* @param tableName The name of the table for the SQL create statement.
* @return A string representing the SQL create statement.
*/
@Deprecated
String
getSqlCreate
(
Integer
id
,
String
schemaName
,
String
tableName
);
String
getSqlCreate
(
Integer
id
,
String
schemaName
,
String
tableName
);
/**
/**
...
@@ -129,8 +156,18 @@ public interface DataBaseService extends ISuperService<DataBase> {
...
@@ -129,8 +156,18 @@ public interface DataBaseService extends ISuperService<DataBase> {
*/
*/
SqlGeneration
getSqlGeneration
(
Integer
id
,
String
schemaName
,
String
tableName
);
SqlGeneration
getSqlGeneration
(
Integer
id
,
String
schemaName
,
String
tableName
);
/**
* List all enabled Flink with statements.
*
* @return A list of strings representing all enabled Flink with statements.
*/
List
<
String
>
listEnabledFlinkWith
();
List
<
String
>
listEnabledFlinkWith
();
/**
* Get the SQL for enabling Flink with statements.
*
* @return A string representing the SQL for enabling Flink with statements.
*/
String
getEnabledFlinkWithSql
();
String
getEnabledFlinkWithSql
();
/**
/**
...
@@ -141,7 +178,19 @@ public interface DataBaseService extends ISuperService<DataBase> {
...
@@ -141,7 +178,19 @@ public interface DataBaseService extends ISuperService<DataBase> {
*/
*/
Boolean
copyDatabase
(
DataBase
database
);
Boolean
copyDatabase
(
DataBase
database
);
/**
* Explain common SQL statements for the given task.
*
* @param task A {@link TaskDTO} object representing the task to explain.
* @return A list of {@link SqlExplainResult} objects representing the explanation results of common SQL statements.
*/
List
<
SqlExplainResult
>
explainCommonSql
(
TaskDTO
task
);
List
<
SqlExplainResult
>
explainCommonSql
(
TaskDTO
task
);
/**
* Execute the given SQL DTO and return the job result.
*
* @param sqlDTO A {@link SqlDTO} object representing the SQL statement to execute.
* @return A {@link JobResult} object representing the execution result of the SQL statement.
*/
JobResult
executeCommonSql
(
SqlDTO
sqlDTO
);
JobResult
executeCommonSql
(
SqlDTO
sqlDTO
);
}
}
dinky-admin/src/main/java/org/dinky/service/GitProjectService.java
View file @
e9762b03
...
@@ -34,9 +34,9 @@ import java.util.Map;
...
@@ -34,9 +34,9 @@ import java.util.Map;
*/
*/
public
interface
GitProjectService
extends
ISuperService
<
GitProject
>
{
public
interface
GitProjectService
extends
ISuperService
<
GitProject
>
{
/**
/**
*
保存或更新
*
Save or update the given Git project.
*
*
* @param gitProjectDTO
gitProjectDTO
* @param gitProjectDTO
A {@link GitProjectDTO} object representing the Git project to save or update.
*/
*/
void
saveOrUpdate
(
GitProjectDTO
gitProjectDTO
);
void
saveOrUpdate
(
GitProjectDTO
gitProjectDTO
);
...
@@ -55,12 +55,18 @@ public interface GitProjectService extends ISuperService<GitProject> {
...
@@ -55,12 +55,18 @@ public interface GitProjectService extends ISuperService<GitProject> {
*/
*/
Boolean
dragendSortJar
(
GitProjectSortJarParams
gitProjectSortJarParams
);
Boolean
dragendSortJar
(
GitProjectSortJarParams
gitProjectSortJarParams
);
/**
* Get the Git pool as a map of strings.
*
* @return A map of strings representing the Git pool.
*/
Map
<
String
,
String
>
getGitPool
();
Map
<
String
,
String
>
getGitPool
();
/**
/**
*
更新状态
*
Modify the status of a Git project based on its ID.
*
*
* @param id id
* @param id The ID of the Git project to modify the status for.
* @return A boolean value indicating whether the modification was successful.
*/
*/
Boolean
modifyGitProjectStatus
(
Integer
id
);
Boolean
modifyGitProjectStatus
(
Integer
id
);
...
...
dinky-admin/src/main/java/org/dinky/service/HistoryService.java
View file @
e9762b03
...
@@ -29,5 +29,12 @@ import org.dinky.mybatis.service.ISuperService;
...
@@ -29,5 +29,12 @@ import org.dinky.mybatis.service.ISuperService;
*/
*/
public
interface
HistoryService
extends
ISuperService
<
History
>
{
public
interface
HistoryService
extends
ISuperService
<
History
>
{
/**
* Remove the history of a Git project based on its ID.
*
* @param id The ID of the Git project to remove the history for.
* @return A boolean value indicating whether the removal was successful.
*/
@Deprecated
boolean
removeHistoryById
(
Integer
id
);
boolean
removeHistoryById
(
Integer
id
);
}
}
dinky-admin/src/main/java/org/dinky/service/JarService.java
View file @
e9762b03
...
@@ -31,5 +31,10 @@ import java.util.List;
...
@@ -31,5 +31,10 @@ import java.util.List;
*/
*/
public
interface
JarService
extends
ISuperService
<
Jar
>
{
public
interface
JarService
extends
ISuperService
<
Jar
>
{
/**
* List all enabled jar files.
*
* @return A list of {@link Jar} objects representing all enabled jar files.
*/
List
<
Jar
>
listEnabledAll
();
List
<
Jar
>
listEnabledAll
();
}
}
dinky-admin/src/main/java/org/dinky/service/JobInstanceService.java
View file @
e9762b03
...
@@ -37,25 +37,89 @@ import com.fasterxml.jackson.databind.JsonNode;
...
@@ -37,25 +37,89 @@ import com.fasterxml.jackson.databind.JsonNode;
*/
*/
public
interface
JobInstanceService
extends
ISuperService
<
JobInstance
>
{
public
interface
JobInstanceService
extends
ISuperService
<
JobInstance
>
{
/**
* Get the job instance with the given ID without a tenant.
*
* @param id The ID of the job instance to get.
* @return A {@link JobInstance} object representing the found job instance.
*/
@Deprecated
JobInstance
getByIdWithoutTenant
(
Integer
id
);
JobInstance
getByIdWithoutTenant
(
Integer
id
);
/**
* Get the count of job instance statuses.
*
* @param isHistory A boolean indicating whether to get the history status count or not.
* @return An integer representing the count of job instance statuses.
*/
JobInstanceStatus
getStatusCount
(
boolean
isHistory
);
JobInstanceStatus
getStatusCount
(
boolean
isHistory
);
/**
* Get a list of active job instances.
*
* @return A list of {@link JobInstance} objects representing the active job instances.
*/
List
<
JobInstance
>
listJobInstanceActive
();
List
<
JobInstance
>
listJobInstanceActive
();
/**
* Get the job information detail for the given ID.
*
* @param id The ID of the job information detail to get.
* @return A {@link JobInfoDetail} object representing the found job information detail.
*/
JobInfoDetail
getJobInfoDetail
(
Integer
id
);
JobInfoDetail
getJobInfoDetail
(
Integer
id
);
/**
* Get the job information detail for the given job instance.
*
* @param jobInstance The job instance to get the job information detail for.
* @return A {@link JobInfoDetail} object representing the found job information detail.
*/
JobInfoDetail
getJobInfoDetailInfo
(
JobInstance
jobInstance
);
JobInfoDetail
getJobInfoDetailInfo
(
JobInstance
jobInstance
);
/**
* Refresh the job information detail for the given job instance ID.
*
* @param jobInstanceId The ID of the job instance to refresh the job information detail for.
* @return A {@link JobInfoDetail} object representing the refreshed job information detail.
*/
JobInfoDetail
refreshJobInfoDetail
(
Integer
jobInstanceId
);
JobInfoDetail
refreshJobInfoDetail
(
Integer
jobInstanceId
);
/**
* Refresh the job instances for the given task IDs.
*
* @param taskIds The IDs of the tasks to refresh the job instances for.
*/
void
refreshJobByTaskIds
(
Integer
...
taskIds
);
void
refreshJobByTaskIds
(
Integer
...
taskIds
);
/**
* Get the lineage of a job instance with the given ID.
*
* @param id The ID of the job instance to get the lineage for.
* @return A {@link LineageResult} object representing the lineage of the job instance.
*/
LineageResult
getLineage
(
Integer
id
);
LineageResult
getLineage
(
Integer
id
);
/**
* Get the job instance with the given task ID.
*
* @param id The ID of the task to get the job instance for.
* @return A {@link JobInstance} object representing the found job instance.
*/
JobInstance
getJobInstanceByTaskId
(
Integer
id
);
JobInstance
getJobInstanceByTaskId
(
Integer
id
);
/**
* List all job instances in the system.
*
* @param para A {@link JsonNode} object representing the filter conditions for listing job instances.
* @return A {@link ProTableResult<JobInstance>} object representing the list of job instances.
*/
ProTableResult
<
JobInstance
>
listJobInstances
(
JsonNode
para
);
ProTableResult
<
JobInstance
>
listJobInstances
(
JsonNode
para
);
/**
* Initialize the tenant by the given job instance ID.
*
* @param id The ID of the job instance to initialize the tenant for.
*/
void
initTenantByJobInstanceId
(
Integer
id
);
void
initTenantByJobInstanceId
(
Integer
id
);
}
}
dinky-admin/src/main/java/org/dinky/service/LdapService.java
View file @
e9762b03
...
@@ -29,6 +29,11 @@ import javax.naming.NamingException;
...
@@ -29,6 +29,11 @@ import javax.naming.NamingException;
public
interface
LdapService
{
public
interface
LdapService
{
/**
* List all users.
*
* @return A list of {@link User} objects representing all users.
*/
List
<
User
>
listUsers
();
List
<
User
>
listUsers
();
/**
/**
...
...
dinky-admin/src/main/java/org/dinky/service/LoginLogService.java
View file @
e9762b03
...
@@ -28,11 +28,40 @@ import java.util.List;
...
@@ -28,11 +28,40 @@ import java.util.List;
public
interface
LoginLogService
extends
ISuperService
<
LoginLog
>
{
public
interface
LoginLogService
extends
ISuperService
<
LoginLog
>
{
/**
* Save the login log for a user.
*
* @param user A {@link User} object representing the user to save the login log for.
* @param status The status of the login operation.
* @param ip The IP address of the login device.
* @param msg The message associated with the login operation.
*/
@Deprecated
void
saveLoginLog
(
User
user
,
Integer
status
,
String
ip
,
String
msg
);
void
saveLoginLog
(
User
user
,
Integer
status
,
String
ip
,
String
msg
);
/**
* Save the login log for a user with only the status and IP address.
*
* @param user A {@link User} object representing the user to save the login log for.
* @param status The status of the login operation.
* @param ip The IP address of the login device.
*/
@Deprecated
void
saveLoginLog
(
User
user
,
Status
status
,
String
ip
);
void
saveLoginLog
(
User
user
,
Status
status
,
String
ip
);
/**
* Save the login log for a user with only the status.
*
* @param user A {@link User} object representing the user to save the login log for.
* @param status The status of the login operation.
*/
void
saveLoginLog
(
User
user
,
Status
status
);
void
saveLoginLog
(
User
user
,
Status
status
);
/**
* Get the login records for a user.
*
* @param userId The ID of the user to get the login records for.
* @return A list of {@link LoginLog} objects representing the login records for the specified user.
*/
List
<
LoginLog
>
loginRecord
(
Integer
userId
);
List
<
LoginLog
>
loginRecord
(
Integer
userId
);
}
}
dinky-admin/src/main/java/org/dinky/service/MenuService.java
View file @
e9762b03
...
@@ -44,7 +44,8 @@ public interface MenuService extends ISuperService<Menu> {
...
@@ -44,7 +44,8 @@ public interface MenuService extends ISuperService<Menu> {
* @param user login user
* @param user login user
* @return {@link List<Menu>} menu list
* @return {@link List<Menu>} menu list
*/
*/
public
List
<
Menu
>
selectMenuList
(
User
user
);
@Deprecated
List
<
Menu
>
selectMenuList
(
User
user
);
/**
/**
* query menu list by menu and user
* query menu list by menu and user
...
@@ -52,8 +53,9 @@ public interface MenuService extends ISuperService<Menu> {
...
@@ -52,8 +53,9 @@ public interface MenuService extends ISuperService<Menu> {
* @param menu menu
* @param menu menu
* @return {@link List<Menu>} menu list
* @return {@link List<Menu>} menu list
*/
*/
public
List
<
Menu
>
selectMenuList
(
Menu
menu
,
User
user
);
List
<
Menu
>
selectMenuList
(
Menu
menu
,
User
user
);
@Deprecated
List
<
Menu
>
listMenusBySuperFlag
(
Integer
superFlag
);
List
<
Menu
>
listMenusBySuperFlag
(
Integer
superFlag
);
/**
/**
...
@@ -70,6 +72,7 @@ public interface MenuService extends ISuperService<Menu> {
...
@@ -70,6 +72,7 @@ public interface MenuService extends ISuperService<Menu> {
* @param user login user
* @param user login user
* @return {@link Menu} menu
* @return {@link Menu} menu
*/
*/
@Deprecated
List
<
Menu
>
selectMenuTreeByUserId
(
User
user
);
List
<
Menu
>
selectMenuTreeByUserId
(
User
user
);
/**
/**
...
...
dinky-admin/src/main/java/org/dinky/service/MonitorService.java
View file @
e9762b03
...
@@ -34,18 +34,63 @@ import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
...
@@ -34,18 +34,63 @@ import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
public
interface
MonitorService
extends
IService
<
Metrics
>
{
public
interface
MonitorService
extends
IService
<
Metrics
>
{
/**
* Get the metrics data for a specified time range and job IDs.
*
* @param startTime The start time of the time range.
* @param endTime The end time of the time range.
* @param jobIds A list of job IDs to get the metrics data for.
* @return A list of {@link MetricsVO} objects representing the metrics data for the specified time range and job IDs.
*/
List
<
MetricsVO
>
getData
(
Date
startTime
,
Date
endTime
,
List
<
String
>
jobIds
);
List
<
MetricsVO
>
getData
(
Date
startTime
,
Date
endTime
,
List
<
String
>
jobIds
);
/**
* Send the latest data to the specified SSE emitter.
*
* @param sseEmitter The SSE emitter to send the latest data to.
* @param lastDate The last date to include in the data.
* @param keys A list of keys to filter the data by.
* @return {@link SseEmitter}
*/
SseEmitter
sendLatestData
(
SseEmitter
sseEmitter
,
LocalDateTime
lastDate
,
List
<
String
>
keys
);
SseEmitter
sendLatestData
(
SseEmitter
sseEmitter
,
LocalDateTime
lastDate
,
List
<
String
>
keys
);
/**
* Send the JVM information to the specified SSE emitter.
*
* @param sseEmitter The SSE emitter to send the JVM information to.
* @return {@link SseEmitter}
*/
SseEmitter
sendJvmInfo
(
SseEmitter
sseEmitter
);
SseEmitter
sendJvmInfo
(
SseEmitter
sseEmitter
);
/**
* Save the Flink metric layout.
*
* @param layout The name of the layout to save.
* @param metricsList A list of {@link MetricsLayoutDTO} objects representing the metrics to save.
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
void
saveFlinkMetricLayout
(
String
layout
,
List
<
MetricsLayoutDTO
>
metricsList
);
void
saveFlinkMetricLayout
(
String
layout
,
List
<
MetricsLayoutDTO
>
metricsList
);
/**
* Get the metrics layout as a map.
*
* @return A map where the keys are layout names and the values are lists of {@link Metrics} objects representing the metrics in each layout.
*/
Map
<
String
,
List
<
Metrics
>>
getMetricsLayout
();
Map
<
String
,
List
<
Metrics
>>
getMetricsLayout
();
/**
* Get the metrics layout by name.
*
* @param layoutName The name of the layout to get.
* @return A list of {@link Metrics} objects representing the metrics in the specified layout.
*/
List
<
Metrics
>
getMetricsLayoutByName
(
String
layoutName
);
List
<
Metrics
>
getMetricsLayoutByName
(
String
layoutName
);
/**
* Get the job metrics for a specified task ID.
*
* @param taskId The ID of the task to get the job metrics for.
* @return A list of {@link Metrics} objects representing the job metrics for the specified task ID.
*/
List
<
Metrics
>
getJobMetrics
(
Integer
taskId
);
List
<
Metrics
>
getJobMetrics
(
Integer
taskId
);
}
}
dinky-admin/src/main/java/org/dinky/service/PrintTableService.java
View file @
e9762b03
...
@@ -22,7 +22,17 @@ package org.dinky.service;
...
@@ -22,7 +22,17 @@ package org.dinky.service;
import
org.springframework.web.servlet.mvc.method.annotation.SseEmitter
;
import
org.springframework.web.servlet.mvc.method.annotation.SseEmitter
;
public
interface
PrintTableService
{
public
interface
PrintTableService
{
/**
* Register a listen entry for a specified table.
*
* @param table The name of the table to register the listen entry for.
*/
SseEmitter
registerListenEntry
(
String
table
);
SseEmitter
registerListenEntry
(
String
table
);
/**
* Unregister a listen entry for a specified table.
*
* @param table The name of the table to unregister the listen entry for.
*/
void
unRegisterListenEntry
(
String
table
);
void
unRegisterListenEntry
(
String
table
);
}
}
dinky-admin/src/main/java/org/dinky/service/RoleMenuService.java
View file @
e9762b03
...
@@ -29,9 +29,8 @@ public interface RoleMenuService extends ISuperService<RoleMenu> {
...
@@ -29,9 +29,8 @@ public interface RoleMenuService extends ISuperService<RoleMenu> {
/**
/**
* Assign menu to role
* Assign menu to role
*
*
* @param roleId role id
* @param assignMenuToRoleDto
* @param menuId menu id
* @return
* @return boolean {@code true} if success, {@code false} if failed
*/
*/
Result
<
Void
>
assignMenuToRole
(
AssignMenuToRoleDto
assignMenuToRoleDto
);
Result
<
Void
>
assignMenuToRole
(
AssignMenuToRoleDto
assignMenuToRoleDto
);
}
}
dinky-admin/src/main/java/org/dinky/service/RoleService.java
View file @
e9762b03
...
@@ -75,5 +75,11 @@ public interface RoleService extends ISuperService<Role> {
...
@@ -75,5 +75,11 @@ public interface RoleService extends ISuperService<Role> {
*/
*/
List
<
Integer
>
selectRoleListByUserId
(
Integer
userId
);
List
<
Integer
>
selectRoleListByUserId
(
Integer
userId
);
/**
* Get a list of users with the specified role ID.
*
* @param roleId The ID of the role to filter the users by.
* @return A list of {@link User} objects representing the users with the specified role ID.
*/
List
<
User
>
getUserListByRoleId
(
Integer
roleId
);
List
<
User
>
getUserListByRoleId
(
Integer
roleId
);
}
}
dinky-admin/src/main/java/org/dinky/service/RowPermissionsService.java
View file @
e9762b03
...
@@ -32,6 +32,7 @@ public interface RowPermissionsService extends ISuperService<RowPermissions> {
...
@@ -32,6 +32,7 @@ public interface RowPermissionsService extends ISuperService<RowPermissions> {
* @param roleIds role id
* @param roleIds role id
* @return delete status
* @return delete status
*/
*/
@Deprecated
boolean
deleteByRoleIds
(
List
<
Integer
>
roleIds
);
boolean
deleteByRoleIds
(
List
<
Integer
>
roleIds
);
/**
/**
...
@@ -40,6 +41,7 @@ public interface RowPermissionsService extends ISuperService<RowPermissions> {
...
@@ -40,6 +41,7 @@ public interface RowPermissionsService extends ISuperService<RowPermissions> {
* @param roleId role id
* @param roleId role id
* @return List<RowPermissions>
* @return List<RowPermissions>
*/
*/
@Deprecated
List
<
RowPermissions
>
listAllByRoleId
(
Integer
roleId
);
List
<
RowPermissions
>
listAllByRoleId
(
Integer
roleId
);
/**
/**
...
...
dinky-admin/src/main/java/org/dinky/service/SavepointsService.java
View file @
e9762b03
...
@@ -32,11 +32,35 @@ import java.util.List;
...
@@ -32,11 +32,35 @@ import java.util.List;
*/
*/
public
interface
SavepointsService
extends
ISuperService
<
Savepoints
>
{
public
interface
SavepointsService
extends
ISuperService
<
Savepoints
>
{
/**
* Get a list of savepoints for a specified task ID.
*
* @param taskId The ID of the task to get the savepoints for.
* @return A list of {@link Savepoints} objects representing the savepoints for the specified task ID.
*/
List
<
Savepoints
>
listSavepointsByTaskId
(
Integer
taskId
);
List
<
Savepoints
>
listSavepointsByTaskId
(
Integer
taskId
);
/**
* Get the latest savepoint for a specified task ID.
*
* @param taskId The ID of the task to get the latest savepoint for.
* @return A {@link Savepoints} object representing the latest savepoint for the specified task ID.
*/
Savepoints
getLatestSavepointByTaskId
(
Integer
taskId
);
Savepoints
getLatestSavepointByTaskId
(
Integer
taskId
);
/**
* Get the earliest savepoint for a specified task ID.
*
* @param taskId The ID of the task to get the earliest savepoint for.
* @return A {@link Savepoints} object representing the earliest savepoint for the specified task ID.
*/
Savepoints
getEarliestSavepointByTaskId
(
Integer
taskId
);
Savepoints
getEarliestSavepointByTaskId
(
Integer
taskId
);
/**
* Get a savepoint for a specified task using the specified strategy.
*
* @param task A {@link TaskDTO} object representing the task to get the savepoint for.
* @return A {@link Savepoints} object representing the savepoint for the specified task.
*/
Savepoints
getSavePointWithStrategy
(
TaskDTO
task
);
Savepoints
getSavePointWithStrategy
(
TaskDTO
task
);
}
}
dinky-admin/src/main/java/org/dinky/service/StudioService.java
View file @
e9762b03
...
@@ -41,19 +41,67 @@ import com.fasterxml.jackson.databind.JsonNode;
...
@@ -41,19 +41,67 @@ import com.fasterxml.jackson.databind.JsonNode;
*/
*/
public
interface
StudioService
{
public
interface
StudioService
{
/**
* Execute a DDL statement and return the result.
*
* @param studioDDLDTO A {@link StudioDDLDTO} object representing the DDL statement to execute.
* @return An {@link IResult} object representing the result of the DDL statement execution.
*/
IResult
executeDDL
(
StudioDDLDTO
studioDDLDTO
);
IResult
executeDDL
(
StudioDDLDTO
studioDDLDTO
);
/**
* Get common SQL data based on the specified task ID.
*
* @param taskId The ID of the task to get the common SQL data for.
* @return A {@link JdbcSelectResult} object representing the common SQL data for the specified task ID.
*/
JdbcSelectResult
getCommonSqlData
(
Integer
taskId
);
JdbcSelectResult
getCommonSqlData
(
Integer
taskId
);
/**
* Get job data based on the specified job ID.
*
* @param jobId The ID of the job to get the job data for.
* @return A {@link SelectResult} object representing the job data for the specified job ID.
*/
SelectResult
getJobData
(
String
jobId
);
SelectResult
getJobData
(
String
jobId
);
/**
* Get the lineage information for a specified studio CAD.
*
* @param studioCADTO A {@link StudioCADTO} object representing the studio CAD to get the lineage information for.
* @return A {@link LineageResult} object representing the lineage information for the specified studio CAD.
*/
LineageResult
getLineage
(
StudioCADTO
studioCADTO
);
LineageResult
getLineage
(
StudioCADTO
studioCADTO
);
/**
* Get a list of Flink jobs based on the specified cluster ID.
*
* @param clusterId The ID of the cluster to get the Flink jobs for.
* @return A list of {@link JsonNode} objects representing the Flink jobs for the specified cluster ID.
*/
List
<
JsonNode
>
listFlinkJobs
(
Integer
clusterId
);
List
<
JsonNode
>
listFlinkJobs
(
Integer
clusterId
);
/**
* Get MS catalogs based on the specified studio meta store DTO.
*
* @param studioMetaStoreDTO A {@link StudioMetaStoreDTO} object representing the studio meta store DTO to get the MS catalogs for.
* @return A list of {@link Catalog} objects representing the MS catalogs for the specified studio meta store DTO.
*/
List
<
Catalog
>
getMSCatalogs
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
List
<
Catalog
>
getMSCatalogs
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
/**
* Get the schema information for a specified MS catalog.
*
* @param studioMetaStoreDTO A {@link StudioMetaStoreDTO} object representing the MS catalog to get the schema information for.
* @return A {@link Schema} object representing the schema information for the specified MS catalog.
*/
Schema
getMSSchemaInfo
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
Schema
getMSSchemaInfo
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
/**
* Get a list of Flink columns based on the specified MS catalog.
*
* @param studioMetaStoreDTO A {@link StudioMetaStoreDTO} object representing the MS catalog to get the Flink columns for.
* @return A list of {@link FlinkColumn} objects representing the Flink columns for the specified MS catalog.
*/
List
<
FlinkColumn
>
getMSFlinkColumns
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
List
<
FlinkColumn
>
getMSFlinkColumns
(
StudioMetaStoreDTO
studioMetaStoreDTO
);
}
}
dinky-admin/src/main/java/org/dinky/service/SysConfigService.java
View file @
e9762b03
...
@@ -33,9 +33,23 @@ import java.util.Map;
...
@@ -33,9 +33,23 @@ import java.util.Map;
*/
*/
public
interface
SysConfigService
extends
ISuperService
<
SysConfig
>
{
public
interface
SysConfigService
extends
ISuperService
<
SysConfig
>
{
/**
* Get all configurations.
*
* @return A map of string keys to lists of {@link Configuration} objects.
*/
Map
<
String
,
List
<
Configuration
<?>>>
getAll
();
Map
<
String
,
List
<
Configuration
<?>>>
getAll
();
/**
* Initialize system configurations.
*/
void
initSysConfig
();
void
initSysConfig
();
/**
* Update system configurations by key-value pairs.
*
* @param key The key of the configuration to update.
* @param value The new value of the configuration.
*/
void
updateSysConfigByKv
(
String
key
,
String
value
);
void
updateSysConfigByKv
(
String
key
,
String
value
);
}
}
dinky-admin/src/main/java/org/dinky/service/TaskService.java
View file @
e9762b03
...
@@ -50,57 +50,221 @@ import cn.hutool.core.lang.tree.Tree;
...
@@ -50,57 +50,221 @@ import cn.hutool.core.lang.tree.Tree;
*/
*/
public
interface
TaskService
extends
ISuperService
<
Task
>
{
public
interface
TaskService
extends
ISuperService
<
Task
>
{
/**
* Build SQL statements for environment based on the given task.
*
* @param task The {@link AbstractStatementDTO} object representing the task to build SQL statements for.
* @return A string containing the built SQL statements.
*/
String
buildEnvSql
(
AbstractStatementDTO
task
);
String
buildEnvSql
(
AbstractStatementDTO
task
);
/**
* Submit the given task and return the job result.
*
* @param id The ID of the task to submit.
* @param savePointPath The path of the save point for the job execution.
* @return A {@link JobResult} object representing the result of the submitted task.
* @throws ExcuteException If there is an error executing the task.
*/
JobResult
submitTask
(
Integer
id
,
String
savePointPath
)
throws
ExcuteException
;
JobResult
submitTask
(
Integer
id
,
String
savePointPath
)
throws
ExcuteException
;
/**
* Restart the given task and return the job result.
*
* @param id The ID of the task to restart.
* @param savePointPath The path of the save point for the job execution.
* @return A {@link JobResult} object representing the result of the restarted task.
* @throws ExcuteException If there is an error restarting the task.
*/
JobResult
restartTask
(
Integer
id
,
String
savePointPath
)
throws
ExcuteException
;
JobResult
restartTask
(
Integer
id
,
String
savePointPath
)
throws
ExcuteException
;
/**
* Savepoint the given task job and return the savepoint result.
*
* @param task The {@link TaskDTO} object representing the task to savepoint.
* @param savePointType The type of savepoint to create.
* @return A {@link SavePointResult} object representing the savepoint result.
*/
SavePointResult
savepointTaskJob
(
TaskDTO
task
,
String
savePointType
);
SavePointResult
savepointTaskJob
(
TaskDTO
task
,
String
savePointType
);
/**
* Explain the given task and return a list of SQL explain results.
*
* @param task The {@link TaskDTO} object representing the task to explain.
* @return A list of {@link SqlExplainResult} objects representing the SQL explain results.
* @throws NotSupportExplainExcepition If the task does not support SQL explain.
*/
List
<
SqlExplainResult
>
explainTask
(
TaskDTO
task
)
throws
NotSupportExplainExcepition
;
List
<
SqlExplainResult
>
explainTask
(
TaskDTO
task
)
throws
NotSupportExplainExcepition
;
/**
* Cancel the execution of the given task job.
*
* @param task The {@link TaskDTO} object representing the task to cancel.
* @return true if the task job is successfully cancelled, false otherwise.
*/
boolean
cancelTaskJob
(
TaskDTO
task
);
boolean
cancelTaskJob
(
TaskDTO
task
);
/**
* Get the stream graph of the given task job.
*
* @param taskDTO The {@link TaskDTO} object representing the task to get the stream graph for.
* @return A JSON object representing the stream graph.
*/
ObjectNode
getStreamGraph
(
TaskDTO
taskDTO
);
ObjectNode
getStreamGraph
(
TaskDTO
taskDTO
);
/**
* Export the SQL statements for the given task ID.
*
* @param id The ID of the task to export SQL statements for.
* @return A string containing the exported SQL statements.
*/
String
exportSql
(
Integer
id
);
String
exportSql
(
Integer
id
);
/**
* Get the job plan for the given task.
*
* @param task The {@link TaskDTO} object representing the task to get the job plan for.
* @return A JSON object representing the job plan.
*/
ObjectNode
getJobPlan
(
TaskDTO
task
);
ObjectNode
getJobPlan
(
TaskDTO
task
);
/**
* Get the information of the given task by its ID.
*
* @param id The ID of the task to get information for.
* @return A {@link TaskDTO} object representing the task information.
*/
TaskDTO
getTaskInfoById
(
Integer
id
);
TaskDTO
getTaskInfoById
(
Integer
id
);
/**
* Initialize the tenant by task ID.
*
* @param id The ID of the task to initialize the tenant for.
*/
void
initTenantByTaskId
(
Integer
id
);
void
initTenantByTaskId
(
Integer
id
);
/**
* Change the life cycle of the given task.
*
* @param taskId The ID of the task to change the life cycle for.
* @param lifeCycle The new life cycle of the task.
* @return true if the life cycle is successfully changed, false otherwise.
*/
boolean
changeTaskLifeRecyle
(
Integer
taskId
,
JobLifeCycle
lifeCycle
);
boolean
changeTaskLifeRecyle
(
Integer
taskId
,
JobLifeCycle
lifeCycle
);
/**
* Save or update the given task.
*
* @param task The {@link Task} object representing the task to save or update.
* @return true if the task is successfully saved or updated, false otherwise.
*/
boolean
saveOrUpdateTask
(
Task
task
);
boolean
saveOrUpdateTask
(
Task
task
);
/**
* Get a list of all Flink SQL environments.
*
* @return A list of {@link Task} objects representing the Flink SQL environments.
*/
List
<
Task
>
listFlinkSQLEnv
();
List
<
Task
>
listFlinkSQLEnv
();
/**
* Initialize the default Flink SQL environment for the given tenant ID.
*
* @param tenantId The ID of the tenant to initialize the default Flink SQL environment for.
* @return A {@link Task} object representing the initialized default Flink SQL environment.
*/
Task
initDefaultFlinkSQLEnv
(
Integer
tenantId
);
Task
initDefaultFlinkSQLEnv
(
Integer
tenantId
);
/**
* Get a list of all user-defined functions (UDFs) in the system.
*
* @return A list of {@link Task} objects representing the UDFs.
*/
List
<
Task
>
getAllUDF
();
List
<
Task
>
getAllUDF
();
/**
* Get the API address of the given task.
*
* @return A string containing the API address of the task.
*/
String
getTaskAPIAddress
();
String
getTaskAPIAddress
();
/**
* Rollback the given task version.
*
* @param dto The {@link TaskRollbackVersionDTO} object representing the task to rollback.
* @return A {@link Result} object indicating the result of the rollback operation.
*/
Result
<
Void
>
rollbackTask
(
TaskRollbackVersionDTO
dto
);
Result
<
Void
>
rollbackTask
(
TaskRollbackVersionDTO
dto
);
/**
* Get the size of all tasks with the given name in the system.
*
* @param name The name of the tasks to query.
* @return An integer representing the number of tasks with the given name.
*/
Integer
queryAllSizeByName
(
String
name
);
Integer
queryAllSizeByName
(
String
name
);
/**
* Export the JSON data for the given task ID.
*
* @param taskId The ID of the task to export JSON data for.
* @return A string containing the exported JSON data.
*/
String
exportJsonByTaskId
(
Integer
taskId
);
String
exportJsonByTaskId
(
Integer
taskId
);
/**
* Export the JSON data for multiple tasks by their IDs.
*
* @param para A {@link JsonNode} object representing the task IDs to export JSON data for.
* @return A string containing the exported JSON data.
*/
String
exportJsonByTaskIds
(
JsonNode
para
);
String
exportJsonByTaskIds
(
JsonNode
para
);
/**
* Upload a task JSON file to the server.
*
* @param file A {@link MultipartFile} object representing the task JSON file to upload.
* @return A {@link Result} object indicating the result of the upload operation.
* @throws Exception If an error occurs during the upload process.
*/
Result
<
Void
>
uploadTaskJson
(
MultipartFile
file
)
throws
Exception
;
Result
<
Void
>
uploadTaskJson
(
MultipartFile
file
)
throws
Exception
;
/**
* Query all task catalogs in the system.
*
* @return A {@link Result} object containing a {@link Tree} object representing the task catalogs.
*/
Result
<
Tree
<
Integer
>>
queryAllCatalogue
();
Result
<
Tree
<
Integer
>>
queryAllCatalogue
();
/**
* Get the task with the given name and tenant ID.
*
* @param name The name of the task to get.
* @param tenantId The ID of the tenant to get the task for.
* @return A {@link Task} object representing the found task.
*/
Task
getTaskByNameAndTenantId
(
String
name
,
Integer
tenantId
);
Task
getTaskByNameAndTenantId
(
String
name
,
Integer
tenantId
);
/**
* Get the online rate of all tasks in the system.
*
* @return A list of {@link JobTypeOverView} objects representing the online rates of all tasks.
*/
List
<
JobTypeOverView
>
getTaskOnlineRate
();
List
<
JobTypeOverView
>
getTaskOnlineRate
();
/**
* Get the streaming or batch model overview of all jobs in the system.
*
* @return A {@link JobModelOverview} object representing the job model overview.
*/
JobModelOverview
getJobStreamingOrBatchModelOverview
();
JobModelOverview
getJobStreamingOrBatchModelOverview
();
/**
* Get the print tables for the given SQL statement.
*
* @param statement The SQL statement to get the print tables for.
* @return A list of strings representing the print tables.
*/
List
<
String
>
getPrintTables
(
String
statement
);
List
<
String
>
getPrintTables
(
String
statement
);
}
}
dinky-admin/src/main/java/org/dinky/service/TaskVersionService.java
View file @
e9762b03
...
@@ -34,5 +34,10 @@ public interface TaskVersionService extends ISuperService<TaskVersion> {
...
@@ -34,5 +34,10 @@ public interface TaskVersionService extends ISuperService<TaskVersion> {
*/
*/
List
<
TaskVersion
>
getTaskVersionByTaskId
(
Integer
taskId
);
List
<
TaskVersion
>
getTaskVersionByTaskId
(
Integer
taskId
);
/**
* Create a snapshot of a task version.
*
* @param task A {@link TaskDTO} object representing the task to create a snapshot for.
*/
void
createTaskVersionSnapshot
(
TaskDTO
task
);
void
createTaskVersionSnapshot
(
TaskDTO
task
);
}
}
dinky-admin/src/main/java/org/dinky/service/TokenService.java
View file @
e9762b03
...
@@ -38,5 +38,6 @@ public interface TokenService extends ISuperService<SysToken> {
...
@@ -38,5 +38,6 @@ public interface TokenService extends ISuperService<SysToken> {
* @param token token
* @param token token
* @return add or update code
* @return add or update code
*/
*/
@Deprecated
boolean
saveOrUpdateSysToken
(
SysToken
token
);
boolean
saveOrUpdateSysToken
(
SysToken
token
);
}
}
dinky-admin/src/main/java/org/dinky/service/UDFTemplateService.java
View file @
e9762b03
...
@@ -25,18 +25,18 @@ import org.dinky.mybatis.service.ISuperService;
...
@@ -25,18 +25,18 @@ import org.dinky.mybatis.service.ISuperService;
public
interface
UDFTemplateService
extends
ISuperService
<
UDFTemplate
>
{
public
interface
UDFTemplateService
extends
ISuperService
<
UDFTemplate
>
{
/**
/**
*
保存
*
Save or update a UDF template.
*
*
* @param udfTemplate
udf模板
* @param udfTemplate
A {@link UDFTemplate} object to save or update.
* @return
boolean
* @return
A boolean value indicating whether the save or update operation was successful.
*/
*/
boolean
saveOrUpdate
(
UDFTemplate
udfTemplate
);
boolean
saveOrUpdate
(
UDFTemplate
udfTemplate
);
/**
/**
*
enable or disable udf template
*
Modify the status of a UDF template.
*
*
* @param id
udf template id {@link UDFTemplate#id}
* @param id
The ID of the UDF template to modify.
* @return
{@link Boolean}
* @return
A {@link Boolean} value indicating whether the modification was successful.
*/
*/
Boolean
modifyUDFTemplateStatus
(
Integer
id
);
Boolean
modifyUDFTemplateStatus
(
Integer
id
);
}
}
dinky-admin/src/main/java/org/dinky/service/UserRoleService.java
View file @
e9762b03
...
@@ -49,6 +49,7 @@ public interface UserRoleService extends ISuperService<UserRole> {
...
@@ -49,6 +49,7 @@ public interface UserRoleService extends ISuperService<UserRole> {
* @param userRoleList
* @param userRoleList
* @return
* @return
*/
*/
@Deprecated
int
deleteBathRelation
(
List
<
UserRole
>
userRoleList
);
int
deleteBathRelation
(
List
<
UserRole
>
userRoleList
);
/**
/**
...
@@ -57,6 +58,7 @@ public interface UserRoleService extends ISuperService<UserRole> {
...
@@ -57,6 +58,7 @@ public interface UserRoleService extends ISuperService<UserRole> {
* @param roleIds role id
* @param roleIds role id
* @return
* @return
*/
*/
@Deprecated
boolean
deleteByRoleIds
(
List
<
Integer
>
roleIds
);
boolean
deleteByRoleIds
(
List
<
Integer
>
roleIds
);
/**
/**
...
...
dinky-admin/src/main/java/org/dinky/service/UserService.java
View file @
e9762b03
...
@@ -41,7 +41,7 @@ import java.util.List;
...
@@ -41,7 +41,7 @@ import java.util.List;
public
interface
UserService
extends
ISuperService
<
User
>
{
public
interface
UserService
extends
ISuperService
<
User
>
{
/**
/**
* register
U
ser
* register
u
ser
*
*
* @param user user
* @param user user
* @return {@link Result}<{@link Void}>
* @return {@link Result}<{@link Void}>
...
@@ -49,7 +49,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -49,7 +49,7 @@ public interface UserService extends ISuperService<User> {
Result
<
Void
>
registerUser
(
User
user
);
Result
<
Void
>
registerUser
(
User
user
);
/**
/**
* modify
U
ser
* modify
u
ser
*
*
* @param user user
* @param user user
* @return {@link Boolean}
* @return {@link Boolean}
...
@@ -57,7 +57,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -57,7 +57,7 @@ public interface UserService extends ISuperService<User> {
Boolean
modifyUser
(
User
user
);
Boolean
modifyUser
(
User
user
);
/**
/**
* modify
P
assword
* modify
p
assword
*
*
* @param modifyPasswordDTO {@link ModifyPasswordDTO}
* @param modifyPasswordDTO {@link ModifyPasswordDTO}
* @return {@link Result}<{@link Void}>
* @return {@link Result}<{@link Void}>
...
@@ -65,7 +65,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -65,7 +65,7 @@ public interface UserService extends ISuperService<User> {
Result
<
Void
>
modifyPassword
(
ModifyPasswordDTO
modifyPasswordDTO
);
Result
<
Void
>
modifyPassword
(
ModifyPasswordDTO
modifyPasswordDTO
);
/**
/**
* remove
U
ser
* remove
u
ser
*
*
* @param id id
* @param id id
* @return {@link Boolean}
* @return {@link Boolean}
...
@@ -73,7 +73,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -73,7 +73,7 @@ public interface UserService extends ISuperService<User> {
Boolean
removeUser
(
Integer
id
);
Boolean
removeUser
(
Integer
id
);
/**
/**
* login
U
ser
* login
u
ser
*
*
* @param loginDTO basic information for user login
* @param loginDTO basic information for user login
* @return {@link Result}{@link UserDTO} obtain the user's UserDTO
* @return {@link Result}{@link UserDTO} obtain the user's UserDTO
...
@@ -81,7 +81,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -81,7 +81,7 @@ public interface UserService extends ISuperService<User> {
Result
<
UserDTO
>
loginUser
(
LoginDTO
loginDTO
);
Result
<
UserDTO
>
loginUser
(
LoginDTO
loginDTO
);
/**
/**
* get
UserByU
sername
* get
user by u
sername
*
*
* @param username username
* @param username username
* @return {@link User}
* @return {@link User}
...
@@ -89,7 +89,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -89,7 +89,7 @@ public interface UserService extends ISuperService<User> {
User
getUserByUsername
(
String
username
);
User
getUserByUsername
(
String
username
);
/**
/**
* grant
R
ole
* grant
r
ole
*
*
* @param assignRoleParams {@link AssignRoleParams}
* @param assignRoleParams {@link AssignRoleParams}
* @return {@link Result}<{@link Void}>
* @return {@link Result}<{@link Void}>
...
@@ -133,6 +133,7 @@ public interface UserService extends ISuperService<User> {
...
@@ -133,6 +133,7 @@ public interface UserService extends ISuperService<User> {
* @param id
* @param id
* @return {@link Boolean}
* @return {@link Boolean}
*/
*/
@Deprecated
Boolean
checkTenantAdmin
(
Integer
id
);
Boolean
checkTenantAdmin
(
Integer
id
);
/**
/**
...
@@ -149,9 +150,16 @@ public interface UserService extends ISuperService<User> {
...
@@ -149,9 +150,16 @@ public interface UserService extends ISuperService<User> {
*/
*/
List
<
RowPermissions
>
getCurrentRoleSelectPermissions
();
List
<
RowPermissions
>
getCurrentRoleSelectPermissions
();
/**
* Builds row-level permissions.
*
*/
void
buildRowPermission
();
void
buildRowPermission
();
/** user loginout */
/**
* User logout function.
*
*/
void
outLogin
();
void
outLogin
();
/**
/**
...
@@ -162,15 +170,36 @@ public interface UserService extends ISuperService<User> {
...
@@ -162,15 +170,36 @@ public interface UserService extends ISuperService<User> {
List
<
Integer
>
getUserIdsByTenantId
(
int
id
);
List
<
Integer
>
getUserIdsByTenantId
(
int
id
);
/**
/**
*
get user list by tenant id
*
Returns a list of users based on the provided tenant id.
*
*
* @return role select permissions list
* @param id The id of the tenant.
* @return A list of users that belong to the tenant with the provided id.
*/
*/
List
<
User
>
getUserListByTenantId
(
int
id
);
List
<
User
>
getUserListByTenantId
(
int
id
);
/**
* Modifies the user's role permissions based on the provided parameters.
*
* @param userId The id of the user to modify.
* @param tenantId The id of the tenant to modify.
* @param tenantAdminFlag Whether the user should be a tenant admin.
* @return A result object indicating the success or failure of the operation.
*/
Result
<
Void
>
modifyUserToTenantAdmin
(
Integer
userId
,
Integer
tenantId
,
Boolean
tenantAdminFlag
);
Result
<
Void
>
modifyUserToTenantAdmin
(
Integer
userId
,
Integer
tenantId
,
Boolean
tenantAdminFlag
);
/**
* Restores a user's account to its original status after it has been disabled or locked.
*
* @param userId The id of the user to restore.
* @return A result object indicating the success or failure of the operation.
*/
Result
<
Void
>
recoveryUser
(
Integer
userId
);
Result
<
Void
>
recoveryUser
(
Integer
userId
);
/**
* Resets a user's password to a new value.
*
* @param userId The id of the user to reset password.
* @return A result object containing the user's new password.
*/
Result
<
UserVo
>
resetPassword
(
Integer
userId
);
Result
<
UserVo
>
resetPassword
(
Integer
userId
);
}
}
dinky-admin/src/main/java/org/dinky/service/resource/ResourcesService.java
View file @
e9762b03
...
@@ -31,16 +31,59 @@ import com.baomidou.mybatisplus.extension.service.IService;
...
@@ -31,16 +31,59 @@ import com.baomidou.mybatisplus.extension.service.IService;
public
interface
ResourcesService
extends
IService
<
Resources
>
{
public
interface
ResourcesService
extends
IService
<
Resources
>
{
/**
* Create a new folder with the specified parameters.
*
* @param pid The ID of the parent folder.
* @param fileName The name of the new folder.
* @param desc A description of the new folder.
* @return A {@link TreeNodeDTO} object representing the newly created folder.
*/
TreeNodeDTO
createFolder
(
Integer
pid
,
String
fileName
,
String
desc
);
TreeNodeDTO
createFolder
(
Integer
pid
,
String
fileName
,
String
desc
);
/**
* Rename an existing folder with the specified parameters.
*
* @param id The ID of the folder to rename.
* @param fileName The new name for the folder.
* @param desc A new description for the folder.
*/
void
rename
(
Integer
id
,
String
fileName
,
String
desc
);
void
rename
(
Integer
id
,
String
fileName
,
String
desc
);
/**
* Get a list of all folders under a specified parent folder, up to a certain number of floors.
*
* @param pid The ID of the parent folder.
* @param showFloorNum The maximum number of floors to show.
* @return A list of {@link TreeNodeDTO} objects representing the folders under the specified parent folder.
*/
List
<
TreeNodeDTO
>
showByTree
(
Integer
pid
,
Integer
showFloorNum
);
List
<
TreeNodeDTO
>
showByTree
(
Integer
pid
,
Integer
showFloorNum
);
/**
* Create a tree structure based on the specified data.
*
* @param data A list of {@link TreeNodeDTO} objects representing the nodes in the tree.
* @param pid The ID of the parent folder.
* @param showFloorNum The maximum number of floors to show.
* @param currentFloor The current floor being processed.
*/
void
createTree
(
List
<
TreeNodeDTO
>
data
,
Integer
pid
,
Integer
showFloorNum
,
Integer
currentFloor
);
void
createTree
(
List
<
TreeNodeDTO
>
data
,
Integer
pid
,
Integer
showFloorNum
,
Integer
currentFloor
);
/**
* Get the content of a file with the specified resource ID.
*
* @param id The ID of the file to get the content for.
* @return A string representing the content of the file.
*/
String
getContentByResourceId
(
Integer
id
);
String
getContentByResourceId
(
Integer
id
);
/**
* Upload a file to the specified folder.
*
* @param pid The ID of the parent folder.
* @param desc A description of the file being uploaded.
* @param file A {@link MultipartFile} object representing the file to be uploaded.
*/
void
uploadFile
(
Integer
pid
,
String
desc
,
MultipartFile
file
);
void
uploadFile
(
Integer
pid
,
String
desc
,
MultipartFile
file
);
void
remove
(
Integer
id
);
void
remove
(
Integer
id
);
...
@@ -52,6 +95,7 @@ public interface ResourcesService extends IService<Resources> {
...
@@ -52,6 +95,7 @@ public interface ResourcesService extends IService<Resources> {
* @param pid pid
* @param pid pid
* @return data
* @return data
*/
*/
@Deprecated
List
<
Resources
>
getResourceByPidToParent
(
List
<
Resources
>
resourcesList
,
Integer
pid
);
List
<
Resources
>
getResourceByPidToParent
(
List
<
Resources
>
resourcesList
,
Integer
pid
);
/**
/**
...
@@ -61,6 +105,7 @@ public interface ResourcesService extends IService<Resources> {
...
@@ -61,6 +105,7 @@ public interface ResourcesService extends IService<Resources> {
* @param pid pid
* @param pid pid
* @return data
* @return data
*/
*/
@Deprecated
List
<
Resources
>
getResourceByPidToChildren
(
List
<
Resources
>
resourcesList
,
Integer
pid
);
List
<
Resources
>
getResourceByPidToChildren
(
List
<
Resources
>
resourcesList
,
Integer
pid
);
/**
/**
...
...
dinky-scheduler/src/main/java/org/dinky/scheduler/client/ProcessClient.java
View file @
e9762b03
...
@@ -52,11 +52,11 @@ public class ProcessClient {
...
@@ -52,11 +52,11 @@ public class ProcessClient {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
TaskClient
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
TaskClient
.
class
);
/**
/**
*
查询工作流定义
*
Get a list of process definitions for a specified project code and process name.
*
*
* @param projectCode
项目编号
* @param projectCode
The ID of the project to get the process definitions for.
* @param processName
工作流定义名
* @param processName
The name of the process to get the process definitions for.
* @return
{@link List<ProcessDefinition>}
* @return
A list of {@link ProcessDefinition} objects representing the process definitions for the specified project code and process name.
*/
*/
public
List
<
ProcessDefinition
>
getProcessDefinition
(
Long
projectCode
,
String
processName
)
{
public
List
<
ProcessDefinition
>
getProcessDefinition
(
Long
projectCode
,
String
processName
)
{
String
format
=
StrUtil
.
format
(
String
format
=
StrUtil
.
format
(
...
@@ -87,11 +87,11 @@ public class ProcessClient {
...
@@ -87,11 +87,11 @@ public class ProcessClient {
}
}
/**
/**
*
查询工作流定义
*
Get information about a specified process definition.
*
*
* @param projectCode
项目编号
* @param projectCode
The ID of the project to get the process definition information for.
* @param processName
工作流定义名
* @param processName
The name of the process definition to get information for.
* @return
{@link ProcessDefinition}
* @return
A {@link ProcessDefinition} object representing the information for the specified process definition.
*/
*/
public
ProcessDefinition
getProcessDefinitionInfo
(
Long
projectCode
,
String
processName
)
{
public
ProcessDefinition
getProcessDefinitionInfo
(
Long
projectCode
,
String
processName
)
{
List
<
ProcessDefinition
>
lists
=
getProcessDefinition
(
projectCode
,
processName
);
List
<
ProcessDefinition
>
lists
=
getProcessDefinition
(
projectCode
,
processName
);
...
@@ -102,11 +102,11 @@ public class ProcessClient {
...
@@ -102,11 +102,11 @@ public class ProcessClient {
}
}
/**
/**
*
根据编号获取
*
Get information about a specified process definition.
*
*
* @param projectCode
项目编号
* @param projectCode
The ID of the project to get the process definition information for.
* @param processCode
任务编号
* @param processCode
The ID of the process definition to get information for.
* @return
{@link DagData}
* @return
A {@link DagData} object representing the information for the specified process definition.
*/
*/
public
DagData
getProcessDefinitionInfo
(
Long
projectCode
,
Long
processCode
)
{
public
DagData
getProcessDefinitionInfo
(
Long
projectCode
,
Long
processCode
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
@@ -131,11 +131,13 @@ public class ProcessClient {
...
@@ -131,11 +131,13 @@ public class ProcessClient {
}
}
/**
/**
*
创建工作流定义
*
Create a new process definition.
*
*
* @param projectCode 项目编号
* @param projectCode The ID of the project to create the process definition for.
* @param processName 工作流定义名称
* @param processName The name of the process definition to create.
* @return {@link ProcessDefinition}
* @param taskCode The ID of the task to associate with the process definition.
* @param taskDefinitionJson A JSON string representing the task definition to associate with the process definition.
* @return A {@link ProcessDefinition} object representing the newly created process definition.
*/
*/
public
ProcessDefinition
createProcessDefinition
(
public
ProcessDefinition
createProcessDefinition
(
Long
projectCode
,
String
processName
,
Long
taskCode
,
String
taskDefinitionJson
)
{
Long
projectCode
,
String
processName
,
Long
taskCode
,
String
taskDefinitionJson
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment