Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
0b75f999
"README.md" did not exist on "b028463773d423162a0dbe092735adcad314edc5"
Commit
0b75f999
authored
13 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-68: reorder the checks in the Quartz Job
parent
f37707a3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/bps/course/nodes/vc/provider/adobe/AdobeConnectCleanupJob.java
+13
-11
13 additions, 11 deletions
...ourse/nodes/vc/provider/adobe/AdobeConnectCleanupJob.java
with
13 additions
and
11 deletions
src/main/java/de/bps/course/nodes/vc/provider/adobe/AdobeConnectCleanupJob.java
+
13
−
11
View file @
0b75f999
...
@@ -34,6 +34,7 @@ import org.springframework.scheduling.quartz.QuartzJobBean;
...
@@ -34,6 +34,7 @@ import org.springframework.scheduling.quartz.QuartzJobBean;
import
de.bps.course.nodes.VCCourseNode
;
import
de.bps.course.nodes.VCCourseNode
;
import
de.bps.course.nodes.vc.MeetingDate
;
import
de.bps.course.nodes.vc.MeetingDate
;
import
de.bps.course.nodes.vc.provider.VCProvider
;
import
de.bps.course.nodes.vc.provider.VCProviderFactory
;
import
de.bps.course.nodes.vc.provider.VCProviderFactory
;
/**
/**
...
@@ -57,19 +58,20 @@ public class AdobeConnectCleanupJob extends QuartzJobBean {
...
@@ -57,19 +58,20 @@ public class AdobeConnectCleanupJob extends QuartzJobBean {
@Override
@Override
protected
void
executeInternal
(
JobExecutionContext
context
)
throws
JobExecutionException
{
protected
void
executeInternal
(
JobExecutionContext
context
)
throws
JobExecutionException
{
AdobeConnectProvider
adobe
=
null
;
if
(!
VCProviderFactory
.
existsProvider
(
providerId
))
{
return
;
//same as dummy job
boolean
success
=
VCProviderFactory
.
existsProvider
(
providerId
);
if
(!
success
)
return
;
//same as dummy job
try
{
adobe
=
(
AdobeConnectProvider
)
VCProviderFactory
.
createProvider
(
providerId
);
}
catch
(
ClassCastException
e
)
{
throw
new
JobExecutionException
(
"Invalid configuration: defined a virtual classroom cleanup job and provider implementation doesn't fit"
);
}
}
success
=
adobe
.
isProviderAvailable
()
&&
adobe
.
isEnabled
();
VCProvider
provider
=
VCProviderFactory
.
createProvider
(
providerId
);
if
(!
success
)
{
if
(!
provider
.
isEnabled
())
{
return
;
}
if
(!(
provider
instanceof
AdobeConnectProvider
))
{
logger
.
error
(
"Invalid configuration: defined a virtual classroom cleanup job and provider implementation doesn't fit"
);
return
;
}
AdobeConnectProvider
adobe
=
(
AdobeConnectProvider
)
provider
;
if
(!
adobe
.
isProviderAvailable
())
{
logger
.
debug
(
"Tried to cleanup Adobe Connect meetings but it's actually not available"
);
logger
.
debug
(
"Tried to cleanup Adobe Connect meetings but it's actually not available"
);
return
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment