Skip to content
Snippets Groups Projects
Commit ba41fc96 authored by User expired's avatar User expired
Browse files

openolat#38: added missing licence headers

parent 6d0ce651
No related branches found
No related tags found
No related merge requests found
/**
* <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>
* Code contributed and copyrighted by<br>
* University of Innsbruck, http://www.uibk.ac.at
* <p>
*/
package at.ac.uibk.commons.services.help;
import java.util.Locale;
......@@ -12,37 +32,43 @@ import org.olat.core.gui.control.WindowControl;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* Initial Date: Jul 18, 2016
*
* @author Daniel Haag
*
*/
@Service("uibkConfluenceLinkHelp")
public class UibkConfluenceLinkSPI implements HelpLinkSPI {
public UibkConfluenceLinkSPI() {
super();
myConfluenceSpi = new MyConfluenceLinkSPI();
myConfluenceSpi = new MyConfluenceLinkSPI();
}
@Value("${help.main.documentation.link:none}")
private String mainDocumentationLink;
private MyConfluenceLinkSPI myConfluenceSpi;
private class MyConfluenceLinkSPI extends ConfluenceLinkSPI {
@Override
public String getURL(Locale locale, String page) {
if(page == null || page.startsWith("Login Page")) {
return mainDocumentationLink;
} else {
return super.getURL(locale, page);
}
}
}
}
@Override
public UserTool getHelpUserTool(WindowControl wControl) {
return myConfluenceSpi.getHelpUserTool(wControl);
}
@Override
public String getURL(Locale locale, String page) {
return myConfluenceSpi.getURL(locale, page);
......
/**
* <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>
* Code originally based on de.bps.course.nodewizard.CopyStructureWizardFactoryImpl
* <p>
* Modified and adapted by<br>
* University of Innsbruck, http://www.uibk.ac.at
* <p>
*/
package at.ac.uibk.course;
import java.util.ArrayList;
......@@ -24,6 +46,12 @@ import de.bps.course.nodewizard.CopyStructureWizardFactoryImpl;
import de.bps.course.nodewizard.WizardStepProcess;
import edu.emory.mathcs.backport.java.util.concurrent.TimeUnit;
/**
* Initial Date: Jul 25, 2016
*
* @author Daniel Haag (based on code by @author bja)
*
*/
public class CreateCourseContentCallback implements StepRunnerCallback {
private static final OLog log = Tracing.createLoggerFor(CreateCourseContentCallback.class);
......
/**
* <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>
* Code contributed and copyrighted by<br>
* University of Innsbruck, http://www.uibk.ac.at
* <p>
*/
package at.ac.uibk.course;
import java.util.Comparator;
......@@ -37,6 +57,12 @@ import org.olat.repository.model.SearchRepositoryEntryParameters;
import de.bps.course.nodewizard.WizardStepProcess;
import de.bps.course.nodewizard.controller.CourseNodeSelectionTreeModel;
/**
* Initial Date: Jul 8, 2016
*
* @author Daniel Haag
*
*/
class CreateCourseContentStepForm extends StepFormBasicController {
private Translator translator;
......@@ -203,8 +229,8 @@ class CreateCourseContentStepForm extends StepFormBasicController {
uifactory.addSpacerElement("spacer1", formLayout, false);
final String[] checkCopyKeys = new String[] { "coursecontent.creation.checkbox.copy.all" };
final String[] checkCopyValues = new String[] { translate("coursecontent.creation.checkbox.copy.all") };
cbCopyAll = uifactory.addCheckboxesHorizontal("chkbxcopyall", "coursecontent.creation.checkbox.copy", formLayout, checkCopyKeys, checkCopyValues);
cbCopyAll = uifactory.addCheckboxesHorizontal("chkbxcopyall", "coursecontent.creation.checkbox.copy", formLayout, checkCopyKeys, checkCopyValues);
cbCopyAll.setHelpTextKey("coursecontent.creation.checkbox.copy.descr", null);
}
}
\ No newline at end of file
}
/**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <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>
* Code originally based on de.bps.course.nodewizard.CopyStructureWizardFactoryImpl
* <p>
* Modified and adapted by<br>
* University of Innsbruck, http://www.uibk.ac.at
* <p>
*/
package de.bps.course.nodewizard;
import org.olat.core.gui.UserRequest;
......@@ -20,10 +42,22 @@ import org.olat.course.tree.CourseEditorTreeModel;
import de.bps.course.nodewizard.coursenode.ICourseNodeCopyConfigurator;
/**
*
* Description:<br>
* CopyStructure Wizard callback
*
* <P>
* based on code extracted from CopyStructureWizardFactoryImpl
* Initial Date: 16.12.2010 <br>
*
* @author Daniel Haag (based on code by @author bja)
*
*/
public class CopyStructureWizardStepRunnerCallback implements StepRunnerCallback {
private WizardStepProcess process;
private CourseFragmentEnvironmentMapper courseFragmentEnvironmentMapper;
public CourseFragmentEnvironmentMapper getCourseFragmentEnvironmentMapper() {
......
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