Skip to content

Commit a077bca

Browse files
committed
add missing copyright header
1 parent 75c90aa commit a077bca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+695
-14
lines changed

core/src/main/java/com/flowci/core/job/controller/ArtifactController.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.controller;
218

319
import com.flowci.core.auth.annotation.Action;

core/src/main/java/com/flowci/core/job/controller/BaseController.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.controller;
218

319
import com.flowci.core.flow.domain.Flow;

core/src/main/java/com/flowci/core/job/controller/JobController.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,23 @@
4646
@RequestMapping("/jobs")
4747
public class JobController extends BaseController {
4848

49-
@Autowired
50-
private SessionManager sessionManager;
49+
private final SessionManager sessionManager;
5150

52-
@Autowired
53-
private YmlService ymlService;
51+
private final YmlService ymlService;
5452

55-
@Autowired
56-
private ReportService reportService;
53+
private final ReportService reportService;
5754

58-
@Autowired
59-
private TaskExecutor appTaskExecutor;
55+
private final TaskExecutor appTaskExecutor;
56+
57+
public JobController(SessionManager sessionManager,
58+
YmlService ymlService,
59+
ReportService reportService,
60+
TaskExecutor appTaskExecutor) {
61+
this.sessionManager = sessionManager;
62+
this.ymlService = ymlService;
63+
this.reportService = reportService;
64+
this.appTaskExecutor = appTaskExecutor;
65+
}
6066

6167
@PostMapping("/batch/latest")
6268
@Action(JobAction.LIST)

core/src/main/java/com/flowci/core/job/controller/LoggingController.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.controller;
218

319
import com.flowci.core.auth.annotation.Action;

core/src/main/java/com/flowci/core/job/controller/TtyController.java

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.controller;
218

319
import com.flowci.core.agent.domain.TtyCmd;
@@ -21,14 +37,17 @@
2137
@Controller
2238
public class TtyController {
2339

24-
@Autowired
25-
private WebAuth webAuth;
40+
private final WebAuth webAuth;
41+
42+
private final SpringEventManager eventManager;
2643

27-
@Autowired
28-
private SpringEventManager eventManager;
44+
private final TtyService ttyService;
2945

30-
@Autowired
31-
private TtyService ttyService;
46+
public TtyController(WebAuth webAuth, SpringEventManager eventManager, TtyService ttyService) {
47+
this.webAuth = webAuth;
48+
this.eventManager = eventManager;
49+
this.ttyService = ttyService;
50+
}
3251

3352
@MessageExceptionHandler(AuthenticationException.class)
3453
public void onAuthException(AuthenticationException e) {

core/src/main/java/com/flowci/core/job/dao/CustomJobAgentDao.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2021 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.dao;
218

319
public interface CustomJobAgentDao {

core/src/main/java/com/flowci/core/job/dao/CustomJobAgentDaoImpl.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2021 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.dao;
218

319
import com.flowci.core.job.domain.JobAgent;

core/src/main/java/com/flowci/core/job/dao/CustomJobDao.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.dao;
218

319
import com.flowci.core.job.domain.Job;

core/src/main/java/com/flowci/core/job/dao/CustomJobDaoImpl.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2020 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.dao;
218

319
import com.flowci.core.job.domain.Job;

core/src/main/java/com/flowci/core/job/dao/CustomJobPriorityDao.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2021 flow.ci
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.flowci.core.job.dao;
218

319
import com.flowci.core.job.domain.JobKey;

0 commit comments

Comments
 (0)