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
6262da5e
Commit
6262da5e
authored
8 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-725: save the access settings of the video course element
parent
c5bf1dc6
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/nodes/video/VideoEditController.java
+11
-2
11 additions, 2 deletions
...java/org/olat/course/nodes/video/VideoEditController.java
with
11 additions
and
2 deletions
src/main/java/org/olat/course/nodes/video/VideoEditController.java
+
11
−
2
View file @
6262da5e
...
@@ -92,6 +92,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
...
@@ -92,6 +92,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
private
VelocityContainer
videoConfigurationVc
;
private
VelocityContainer
videoConfigurationVc
;
private
ModuleConfiguration
config
;
private
ModuleConfiguration
config
;
private
final
VideoCourseNode
videoNode
;
private
RepositoryEntry
repositoryEntry
;
private
RepositoryEntry
repositoryEntry
;
private
ReferencableEntriesSearchController
searchController
;
private
ReferencableEntriesSearchController
searchController
;
...
@@ -108,6 +109,8 @@ public class VideoEditController extends ActivateableTabbableDefaultController
...
@@ -108,6 +109,8 @@ public class VideoEditController extends ActivateableTabbableDefaultController
public
VideoEditController
(
VideoCourseNode
videoNode
,
UserRequest
ureq
,
WindowControl
wControl
,
ICourse
course
,
UserCourseEnvironment
euce
)
{
public
VideoEditController
(
VideoCourseNode
videoNode
,
UserRequest
ureq
,
WindowControl
wControl
,
ICourse
course
,
UserCourseEnvironment
euce
)
{
super
(
ureq
,
wControl
);
super
(
ureq
,
wControl
);
this
.
config
=
videoNode
.
getModuleConfiguration
();
this
.
config
=
videoNode
.
getModuleConfiguration
();
this
.
videoNode
=
videoNode
;
main
=
new
Panel
(
"videomain"
);
main
=
new
Panel
(
"videomain"
);
videoConfigurationVc
=
createVelocityContainer
(
"edit"
);
videoConfigurationVc
=
createVelocityContainer
(
"edit"
);
...
@@ -187,8 +190,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
...
@@ -187,8 +190,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
);
);
listenTo
(
cmc
);
listenTo
(
cmc
);
cmc
.
activate
();
cmc
.
activate
();
}
}
else
if
(
source
==
previewLink
){
if
(
source
==
previewLink
){
VideoDisplayController
previewController
=
null
;
VideoDisplayController
previewController
=
null
;
switch
(
config
.
getStringValue
(
VideoEditController
.
CONFIG_KEY_DESCRIPTION_SELECT
)){
switch
(
config
.
getStringValue
(
VideoEditController
.
CONFIG_KEY_DESCRIPTION_SELECT
)){
...
@@ -214,6 +216,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
...
@@ -214,6 +216,7 @@ public class VideoEditController extends ActivateableTabbableDefaultController
* @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest,
* @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest,
* org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
* org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
*/
*/
@Override
public
void
event
(
UserRequest
urequest
,
Controller
source
,
Event
event
)
{
public
void
event
(
UserRequest
urequest
,
Controller
source
,
Event
event
)
{
if
(
source
==
searchController
)
{
if
(
source
==
searchController
)
{
if
(
event
==
ReferencableEntriesSearchController
.
EVENT_REPOSITORY_ENTRY_SELECTED
)
{
if
(
event
==
ReferencableEntriesSearchController
.
EVENT_REPOSITORY_ENTRY_SELECTED
)
{
...
@@ -236,6 +239,12 @@ public class VideoEditController extends ActivateableTabbableDefaultController
...
@@ -236,6 +239,12 @@ public class VideoEditController extends ActivateableTabbableDefaultController
listenTo
(
videoOptions
);
listenTo
(
videoOptions
);
}
}
}
}
}
else
if
(
source
==
accessibilityCondContr
)
{
if
(
event
==
Event
.
CHANGED_EVENT
)
{
Condition
cond
=
accessibilityCondContr
.
getCondition
();
videoNode
.
setPreConditionAccess
(
cond
);
fireEvent
(
urequest
,
NodeEditController
.
NODECONFIG_CHANGED_EVENT
);
}
}
}
if
(
event
==
NodeEditController
.
NODECONFIG_CHANGED_EVENT
){
if
(
event
==
NodeEditController
.
NODECONFIG_CHANGED_EVENT
){
...
...
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