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
9089eb4f
Commit
9089eb4f
authored
9 years ago
by
srosse
Browse files
Options
Downloads
Plain Diff
Merge OpenOLAT 10.3 to OpenOLAT default branch with cc906a16c98b2ab6b5fbdd632ef6c0c9b2d41929
parents
25ca64e1
03263926
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/course/config/CourseConfig.java
+7
-28
7 additions, 28 deletions
src/main/java/org/olat/course/config/CourseConfig.java
with
7 additions
and
28 deletions
src/main/java/org/olat/course/config/CourseConfig.java
+
7
−
28
View file @
9089eb4f
...
@@ -72,7 +72,7 @@ public class CourseConfig implements Serializable, Cloneable {
...
@@ -72,7 +72,7 @@ public class CourseConfig implements Serializable, Cloneable {
/**
/**
* current config file version
* current config file version
*/
*/
transient
private
final
static
int
CURRENTVERSION
=
9
;
transient
private
final
static
int
CURRENTVERSION
=
10
;
/**
/**
* Log levels
* Log levels
*/
*/
...
@@ -238,7 +238,7 @@ public class CourseConfig implements Serializable, Cloneable {
...
@@ -238,7 +238,7 @@ public class CourseConfig implements Serializable, Cloneable {
if
(!
configuration
.
containsKey
(
CERTIFICATE_MANUAL_ENABLED
))
configuration
.
put
(
CERTIFICATE_MANUAL_ENABLED
,
Boolean
.
FALSE
);
if
(!
configuration
.
containsKey
(
CERTIFICATE_MANUAL_ENABLED
))
configuration
.
put
(
CERTIFICATE_MANUAL_ENABLED
,
Boolean
.
FALSE
);
if
(!
configuration
.
containsKey
(
CERTIFICATE_TEMPLATE
))
configuration
.
put
(
CERTIFICATE_TEMPLATE
,
""
);
if
(!
configuration
.
containsKey
(
CERTIFICATE_TEMPLATE
))
configuration
.
put
(
CERTIFICATE_TEMPLATE
,
""
);
if
(!
configuration
.
containsKey
(
RECERTIFICATION_ENABLED
))
configuration
.
put
(
RECERTIFICATION_ENABLED
,
Boolean
.
FALSE
);
if
(!
configuration
.
containsKey
(
RECERTIFICATION_ENABLED
))
configuration
.
put
(
RECERTIFICATION_ENABLED
,
Boolean
.
FALSE
);
if
(!
configuration
.
containsKey
(
RECERTIFICATION_TIMELAPSE
))
configuration
.
put
(
RECERTIFICATION_TIMELAPSE
,
""
);
if
(!
configuration
.
containsKey
(
RECERTIFICATION_TIMELAPSE
))
configuration
.
put
(
RECERTIFICATION_TIMELAPSE
,
new
Integer
(
0
)
);
this
.
version
=
10
;
this
.
version
=
10
;
}
}
...
@@ -426,30 +426,6 @@ public class CourseConfig implements Serializable, Cloneable {
...
@@ -426,30 +426,6 @@ public class CourseConfig implements Serializable, Cloneable {
public
void
setManualCertificationEnabled
(
boolean
enabled
)
{
public
void
setManualCertificationEnabled
(
boolean
enabled
)
{
configuration
.
put
(
CERTIFICATE_MANUAL_ENABLED
,
new
Boolean
(
enabled
));
configuration
.
put
(
CERTIFICATE_MANUAL_ENABLED
,
new
Boolean
(
enabled
));
}
}
/*
public PDFCertificatesOptions getPdfCertificateOption2() {
PDFCertificatesOptions option;
String opt = (String)configuration.get(CERTIFICATE_ENABLED);
if(StringHelper.containsNonWhitespace(opt)) {
try {
option = PDFCertificatesOptions.valueOf(opt);
} catch (Exception e) {
log.error("", e);
option = PDFCertificatesOptions.none;
}
} else {
option = PDFCertificatesOptions.none;
}
return option;
}
public void setPdfCertificateOption(PDFCertificatesOptions option) {
configuration.put(PDF_CERTIFICATE_ENABLED, option.name());
}*/
/**
/**
* @return true if the efficency statement is enabled
* @return true if the efficency statement is enabled
...
@@ -467,8 +443,11 @@ public class CourseConfig implements Serializable, Cloneable {
...
@@ -467,8 +443,11 @@ public class CourseConfig implements Serializable, Cloneable {
}
}
public
int
getRecertificationTimelapse
()
{
public
int
getRecertificationTimelapse
()
{
Integer
timelapse
=
(
Integer
)
configuration
.
get
(
RECERTIFICATION_TIMELAPSE
);
Object
timelapse
=
configuration
.
get
(
RECERTIFICATION_TIMELAPSE
);
return
timelapse
==
null
?
0
:
timelapse
.
intValue
();
if
(
timelapse
instanceof
Integer
)
{
return
((
Integer
)
timelapse
).
intValue
();
}
return
0
;
}
}
public
void
setRecertificationTimelapse
(
int
timelapse
)
{
public
void
setRecertificationTimelapse
(
int
timelapse
)
{
...
...
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