Skip to content
Snippets Groups Projects
Commit c8b51840 authored by uhensler's avatar uhensler
Browse files

OO-3151: Show Edubase configuration only in the administration if the module is enabled

parent ac323eec
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</bean> </bean>
<!-- Edubase/Edubook admin. panel --> <!-- Edubase/Edubook admin. panel -->
<bean class="org.olat.core.extensions.action.GenericActionExtension" init-method="initExtensionPoints"> <bean class="org.olat.modules.edubase.EdubaseActionExtension" init-method="initExtensionPoints">
<property name="order" value="8249" /> <property name="order" value="8249" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
......
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.modules.edubase;
import org.olat.core.extensions.action.GenericActionExtension;
import org.springframework.beans.factory.annotation.Autowired;
/**
*
* Initial date: 20.11.2017<br>
* @author uhensler, urs.hensler@frentix.com, http://www.frentix.com
*
*/
public class EdubaseActionExtension extends GenericActionExtension {
@Autowired
private EdubaseModule edubaseModule;
@Override
public boolean isEnabled() {
return edubaseModule.isEnabled();
}
}
...@@ -43,7 +43,7 @@ public class EdubaseModule extends AbstractSpringModule implements ConfigOnOff { ...@@ -43,7 +43,7 @@ public class EdubaseModule extends AbstractSpringModule implements ConfigOnOff {
public static final String EDUBASE_LTI_LAUNCH_URL = "edubase.ltiLaunchUrl"; public static final String EDUBASE_LTI_LAUNCH_URL = "edubase.ltiLaunchUrl";
public static final String EDUBASE_INFOVER_URL = "edubase.infoverUrl"; public static final String EDUBASE_INFOVER_URL = "edubase.infoverUrl";
@Value("${edubase.enabled:true}") @Value("${edubase.enabled:false}")
private boolean enabled; private boolean enabled;
private String oauthKey; private String oauthKey;
private String oauthSecret; private String oauthSecret;
......
...@@ -1367,7 +1367,7 @@ card2brain.verifyLtiUrl=https://card2brain.ch/grails/SSO/verifyLti.dispatch ...@@ -1367,7 +1367,7 @@ card2brain.verifyLtiUrl=https://card2brain.ch/grails/SSO/verifyLti.dispatch
######################################## ########################################
# Options for Edubase and Edubook # Options for Edubase and Edubook
######################################## ########################################
edubase.enbaled=false edubase.enabled=false
edubase.readerUrl=https://app.edubase.ch/ edubase.readerUrl=https://app.edubase.ch/
edubase.ltiLaunchUrl=https://reader.silkcodeapps.de/lookup/srv/v2/lti/basicLaunch/ edubase.ltiLaunchUrl=https://reader.silkcodeapps.de/lookup/srv/v2/lti/basicLaunch/
edubase.infoverUrl=https://reader.silkcodeapps.de/lookup/srv/v2/information/infodocvers/%s edubase.infoverUrl=https://reader.silkcodeapps.de/lookup/srv/v2/information/infodocvers/%s
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment