Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
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
Josue
ejercicio2-framework-back
Commits
2a50e491
Commit
2a50e491
authored
Dec 20, 2021
by
Roberto Loayza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SchedulerTask
parent
0f43298e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
SchedulerTaskBean.java
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
+2
-0
SchedulerTask.java
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
+3
-0
SchedulerTaskService.java
...java/com/bytesw/bytebot/service/SchedulerTaskService.java
+2
-3
No files found.
src/main/java/com/bytesw/bytebot/bean/SchedulerTaskBean.java
View file @
2a50e491
...
...
@@ -23,6 +23,8 @@ public class SchedulerTaskBean implements Serializable {
@Expose
private
String
stringParameters
;
@Expose
private
Long
etlId
;
@Expose
private
String
calendarID
;
@Expose
private
String
calendarName
;
...
...
src/main/java/com/bytesw/bytebot/model/SchedulerTask.java
View file @
2a50e491
...
...
@@ -44,6 +44,9 @@ public class SchedulerTask implements Serializable {
@Column
(
name
=
"SHTA_CROEX"
,
nullable
=
false
)
private
String
cronExpression
;
@Column
(
name
=
"ETL_ID"
)
private
Long
etlId
;
@Column
(
name
=
"SHTA_PARAM"
)
private
String
stringParameters
;
...
...
src/main/java/com/bytesw/bytebot/service/SchedulerTaskService.java
View file @
2a50e491
...
...
@@ -37,7 +37,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
}
BeanUtils
.
copyProperties
(
bean
,
model
);
model
.
setInternals
(
"Y"
.
equals
(
bean
.
getInternals
()));
model
.
setEtlId
(
bean
.
getEtlId
());
if
(
bean
.
getCalendarID
()
==
null
)
{
throw
new
NotFoundException
(
"Calendar can not be null"
);
}
...
...
@@ -47,7 +47,6 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
throw
new
NotFoundException
(
"Calendar not found "
+
bean
.
getCalendarID
());
}
// model.setCalendar(calendarOptional.get());
return
model
;
}
...
...
@@ -57,7 +56,7 @@ public class SchedulerTaskService extends XDFService<SchedulerTask, SchedulerTas
BeanUtils
.
copyProperties
(
model
,
bean
);
bean
.
setInternals
(
model
.
getInternals
().
booleanValue
()
?
"Y"
:
"N"
);
bean
.
setCalendarID
(
bean
.
getCalendarID
().
trim
());
bean
.
setEtlId
(
bean
.
getEtlId
());
// CalendarBean found = this.CalendarService.getById(bean.getCalendarID());
Optional
<
Calendar
>
calendarOptional
=
this
.
calendarRepository
.
findById
(
bean
.
getCalendarID
());
if
(!
calendarOptional
.
isPresent
())
{
...
...
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