diff --git a/src/main/java/de/bps/olat/repository/controllers/RepositorySearchMultiSelectController.java b/src/main/java/de/bps/olat/repository/controllers/RepositorySearchMultiSelectController.java deleted file mode 100644 index 7624ea8236862c49253710cbc60f2b664f116322..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/RepositorySearchMultiSelectController.java +++ /dev/null @@ -1,157 +0,0 @@ -/** - * <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> - * BPS Bildungsportal Sachsen GmbH, http://www.bps-system.de - * <p> - */ -package de.bps.olat.repository.controllers; - -import java.util.List; - -import org.olat.basesecurity.BaseSecurity; -import org.olat.basesecurity.BaseSecurityManager; -import org.olat.basesecurity.Constants; -import org.olat.basesecurity.SecurityGroup; -import org.olat.core.gui.UserRequest; -import org.olat.core.gui.components.table.TableController; -import org.olat.core.gui.components.table.TableGuiConfiguration; -import org.olat.core.gui.control.Controller; -import org.olat.core.gui.control.Event; -import org.olat.core.gui.control.WindowControl; -import org.olat.core.id.Roles; -import org.olat.repository.RepositoryEntry; -import org.olat.repository.RepositoryManager; -import org.olat.repository.RepositoryTableModel; -import org.olat.repository.SearchForm; -import org.olat.repository.SearchRepositoryEntryParameters; -import org.olat.repository.controllers.RepositorySearchController; - -/** - * Description:<br> - * RepositorySearchController with multiselection element. - * - * <P> - * Initial Date: 04.11.2008 <br> - * @author bja - */ -public class RepositorySearchMultiSelectController extends RepositorySearchController { - - public static final String ACTION_MULTI_SELECT = "action.multi.select"; - - /** - * @param selectButtonLabel - * @param ureq - * @param myWControl - * @param withCancel - * @param enableDirectLaunch - * @param limitType - */ - public RepositorySearchMultiSelectController(String selectButtonLabel, UserRequest ureq, WindowControl myWControl, boolean withCancel, - boolean enableDirectLaunch, String limitType) { - super(ureq, myWControl); - setBasePackage(RepositoryEntry.class); - init(selectButtonLabel, ureq, withCancel, enableDirectLaunch, limitType); - } - - private void init(String selectButtonLabel, UserRequest ureq, boolean withCancel, boolean enableDirectLaunch, String limitType) { - Roles roles = ureq.getUserSession().getRoles(); - - vc = createVelocityContainer("search"); - - BaseSecurity secMgr = BaseSecurityManager.getInstance(); - SecurityGroup usermanagerGroup = secMgr.findSecurityGroupByName(Constants.GROUP_USERMANAGERS); - boolean isUserManager = secMgr.isIdentityInSecurityGroup(ureq.getIdentity(), usermanagerGroup); - - removeAsListenerAndDispose(searchForm); - searchForm = new SearchForm(ureq, getWindowControl(), withCancel, isUserManager||roles.isOLATAdmin(), limitType); - listenTo(searchForm); - - vc.put("searchform",searchForm.getInitialComponent()); - - TableGuiConfiguration tableConfig = new TableGuiConfiguration(); - if (selectButtonLabel != null) { - tableConfig.setPreferencesOffered(true, "repositorySearchResult_v2"); - } - - removeAsListenerAndDispose(tableCtr); - tableCtr = new TableController(tableConfig, ureq, getWindowControl(), getTranslator()); - listenTo(tableCtr); - - repoTableModel = new RepositoryTableModel(getTranslator()); - repoTableModel.addColumnDescriptors(tableCtr, selectButtonLabel, enableDirectLaunch); - tableCtr.addMultiSelectAction("resource.table.select", ACTION_MULTI_SELECT); - tableCtr.setMultiSelect(true); - tableCtr.setTableDataModel(repoTableModel); - tableCtr.setSortColumn(2, true); - vc.put("repotable", tableCtr.getInitialComponent()); - - vc.contextPut("isAuthor", Boolean.valueOf(roles.isAuthor())); - vc.contextPut("withCancel", Boolean.valueOf(withCancel)); - - enableBackToSearchFormLink(false); // default, must be enabled explicitly - enableSearchforAllXXAbleInSearchForm(null); // default - - putInitialPanel(vc); - } - - /** - * @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) - */ - public void event(UserRequest urequest, Controller source, Event event) { - if (source == tableCtr) { - fireEvent(urequest, event); - } else { - super.event(urequest, source, event); - } - } - - /** - * - * @param row - * @return - */ - public RepositoryEntry getValueAt(int row) { - return repoTableModel.getObject(row); - } - - @Override - protected void doSearch(UserRequest ureq, String limitType, boolean updateFilters) { - Roles roles = ureq.getUserSession().getRoles(); - boolean onlyOwned = (!roles.isInstitutionalResourceManager() && !roles.isOLATAdmin()); - doSearch(ureq, limitType, onlyOwned, updateFilters); - } - - /** - * Implementation normal search: find all repo entries - * @param ureq - */ - public void doSearchAll(UserRequest ureq) { - RepositoryManager rm = RepositoryManager.getInstance(); - - Roles roles = ureq.getUserSession().getRoles(); - String institution = getIdentity().getUser().getProperty("institutionalName", null); - SearchRepositoryEntryParameters params - = new SearchRepositoryEntryParameters(null, null, null, null, getIdentity(), roles, institution); - if(!roles.isInstitutionalResourceManager() && !roles.isOLATAdmin()) { - params.setOnlyOwnedResources(true); - } - - List<RepositoryEntry> entries = rm.genericANDQueryWithRolesRestriction(params, 0, -1, true); - repoTableModel.setObjects(entries); - tableCtr.modelChanged(); - displaySearchResults(ureq); - } -} diff --git a/src/main/java/de/bps/olat/repository/controllers/WizardAddOwnersController.java b/src/main/java/de/bps/olat/repository/controllers/WizardAddOwnersController.java deleted file mode 100644 index e11d01ebbbd620cb68a49a65e24ee8a76f5dfb0e..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/WizardAddOwnersController.java +++ /dev/null @@ -1,246 +0,0 @@ -/** - * <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> - * BPS Bildungsportal Sachsen GmbH, http://www.bps-system.de - * <p> - */ -package de.bps.olat.repository.controllers; - -import java.util.ArrayList; -import java.util.List; - -import org.olat.admin.user.UserSearchController; -import org.olat.basesecurity.GroupRoles; -import org.olat.basesecurity.events.MultiIdentityChosenEvent; -import org.olat.basesecurity.events.SingleIdentityChosenEvent; -import org.olat.core.CoreSpringFactory; -import org.olat.core.gui.UserRequest; -import org.olat.core.gui.components.Component; -import org.olat.core.gui.components.link.Link; -import org.olat.core.gui.components.link.LinkFactory; -import org.olat.core.gui.components.panel.Panel; -import org.olat.core.gui.components.table.TableMultiSelectEvent; -import org.olat.core.gui.components.velocity.VelocityContainer; -import org.olat.core.gui.control.Controller; -import org.olat.core.gui.control.Event; -import org.olat.core.gui.control.WindowControl; -import org.olat.core.gui.control.generic.wizard.WizardController; -import org.olat.core.id.Identity; -import org.olat.repository.RepositoryEntry; -import org.olat.repository.RepositoryService; - - -/** - * - * Description:<br> - * Wizard to add owners to a set of resources. - * - * <P> - * Initial Date: 03.11.2008 <br> - * @author bja - */ -public class WizardAddOwnersController extends WizardController { - - private static final int NUM_STEPS = 2; //2 steps - private static final String CMD_SEARCH_ENTRIES = "cmd.searchEntries"; - private static final String CMD_SEARCH_OWNERS = "cmd.searchOwners"; - private static final String CMD_ALL_ENTRIES = "cmd.allEntries"; - private static final String CMD_MY_ENTRIES = "cmd.myEntries"; - private static final String CMD_SEARCH = "cmd.search"; - - private VelocityContainer mainVc; - private Panel panel; - private VelocityContainer step1Vc, step2Vc; - private Link myEntriesLink, allEntriesLink, searchEntriesLink; - private RepositorySearchMultiSelectController searchCtr; - private UserSearchController userSearchCtr; - private List<Identity> owners; - private List<RepositoryEntry> repoEntries; - private boolean isAdmin, isAuthor; - private Link backButton; - - private final RepositoryService repositoryService; - - public WizardAddOwnersController(UserRequest ureq, WindowControl control) { - super(ureq, control, NUM_STEPS); - - setBasePackage(WizardAddOwnersController.class); - - repositoryService = CoreSpringFactory.getImpl(RepositoryService.class); - - isAdmin = ureq.getUserSession().getRoles().isOLATAdmin() | ureq.getUserSession().getRoles().isInstitutionalResourceManager(); - isAuthor = isAdmin | ureq.getUserSession().getRoles().isAuthor(); - - owners = new ArrayList<Identity>(); - repoEntries = new ArrayList<RepositoryEntry>(); - mainVc = createVelocityContainer("wizard"); - LinkFactory.createLinkBack(mainVc, this); - panel = new Panel("panel"); - // step 1 - buildStep1(ureq); - mainVc.put("panel", panel); - - this.setWizardTitle(translate("wizard.add.owners.title")); - this.setNextWizardStep(translate("add.owners.step1"), mainVc); - } - - /** - * Wizard Step 1 - * @param ureq - */ - private void buildStep1(UserRequest ureq) { - - step1Vc = createVelocityContainer("step1_wizard_add_owners"); - - searchCtr = new RepositorySearchMultiSelectController(null, ureq, getWindowControl(), false, false, null); - listenTo(searchCtr); - - // links - if(isAuthor) { - searchEntriesLink = LinkFactory.createCustomLink("searchEntriesLink", CMD_SEARCH_ENTRIES, "wizard.step1." + CMD_SEARCH_ENTRIES, Link.LINK, step1Vc, this); - } - if(isAdmin) { - allEntriesLink = LinkFactory.createCustomLink("allEntriesLink", CMD_ALL_ENTRIES, "wizard.step1." + CMD_ALL_ENTRIES, Link.LINK, step1Vc, this); - } - myEntriesLink = LinkFactory.createCustomLink("myEntriesLink", CMD_MY_ENTRIES, "wizard.step1." + CMD_MY_ENTRIES, Link.LINK, step1Vc, this); - - event(ureq, myEntriesLink, null); - - step1Vc.put("searchCtr", searchCtr.getInitialComponent()); - panel.setContent(step1Vc); - } - - /** - * - * @param ureq - */ - private void buildStep2(UserRequest ureq) { - - step2Vc = createVelocityContainer("step2_wizard_add_owners"); - step2Vc.contextPut("subtitle", translate("wizard.step2." + CMD_SEARCH_OWNERS)); - - removeAsListenerAndDispose(userSearchCtr); - userSearchCtr = new UserSearchController(ureq, getWindowControl(), false, true, UserSearchController.ACTION_KEY_CHOOSE_FINISH); - listenTo(userSearchCtr); - - // back button - backButton = LinkFactory.createButton("btn.back", step2Vc, this); - - step2Vc.put("userSearchCtr", userSearchCtr.getInitialComponent()); - panel.setContent(step2Vc); - } - - public void event(UserRequest ureq, Component source, Event event) { - // events for finish and cancel button - super.event(ureq, source, event); - - if (source == myEntriesLink) { - searchCtr.doSearchByOwner(ureq.getIdentity()); - step1Vc.contextPut("subtitle", translate("wizard.step1." + CMD_MY_ENTRIES)); - myEntriesLink.setCustomEnabledLinkCSS("b_selected"); - if(isAdmin) allEntriesLink.removeCSS(); - if(isAdmin | isAuthor) searchEntriesLink.removeCSS(); - panel.setContent(step1Vc); - } - if (source == allEntriesLink) { - searchCtr.doSearchAll(ureq); - step1Vc.contextPut("subtitle", translate("wizard.step1." + CMD_ALL_ENTRIES)); - myEntriesLink.removeCSS(); - allEntriesLink.setCustomEnabledLinkCSS("b_selected"); - if(isAdmin | isAuthor) searchEntriesLink.removeCSS(); - panel.setContent(step1Vc); - } - if (source == searchEntriesLink) { - step1Vc.contextPut("subtitle", translate("wizard.step1." + CMD_SEARCH_ENTRIES)); - searchCtr.displaySearchForm(); - step1Vc.contextPut("subtitle", translate("wizard.step1." + CMD_SEARCH)); - myEntriesLink.removeCSS(); - searchEntriesLink.setCustomEnabledLinkCSS("b_selected"); - if(isAdmin) allEntriesLink.removeCSS(); - panel.setContent(step1Vc); - } - if (source == backButton) { - buildStep1(ureq); - this.setWizardTitle(translate("wizard.add.owners.title")); - this.setBackWizardStep(translate("add.owners.step1"), mainVc); - mainVc.setDirty(true); - } - } - - @Override - public void event(UserRequest ureq, Controller source, Event event) { - if ( source == searchCtr ) { - if (event instanceof TableMultiSelectEvent) { - TableMultiSelectEvent tmse = (TableMultiSelectEvent) event; - if (tmse.getAction().equals(RepositorySearchMultiSelectController.ACTION_MULTI_SELECT)) { - boolean hasSelected = false; - for (int i = tmse.getSelection().nextSetBit(0); i >= 0; i = tmse.getSelection().nextSetBit(i+1)) { - if (i != -1) { - hasSelected = true; - repoEntries.add(searchCtr.getValueAt(i)); - } - } - if(hasSelected) { - buildStep2(ureq); - this.setNextWizardStep(translate("add.owners.step2"), mainVc); - } else { - showError("wizard.add.owners.step1.notselected"); - } - } - } - } - if ( source == userSearchCtr ) { - if (event instanceof MultiIdentityChosenEvent) { - MultiIdentityChosenEvent mice = (MultiIdentityChosenEvent) event; - owners = mice.getChosenIdentities(); - } - if (event instanceof SingleIdentityChosenEvent) { - SingleIdentityChosenEvent sice = (SingleIdentityChosenEvent) event; - owners.add(sice.getChosenIdentity()); - } - //add choosen identities as owners - if ((owners.size() > 0) && (repoEntries.size() > 0)) { - addOwnersToRepositoryEntry(); - fireEvent(ureq, Event.DONE_EVENT); - } else { - // info message - showError("info.message.add.owners.empty"); - } - } - } - - /** - * add owners to a set of repository entries - */ - private void addOwnersToRepositoryEntry() { - for (RepositoryEntry entry : repoEntries) { - for (Identity identity : owners) { - if (!repositoryService.hasRole(identity, entry, GroupRoles.owner.name())) { - repositoryService.addRole(identity, entry, GroupRoles.owner.name()); - } - } - } - // info message - showInfo("info.message.add.owners"); - } - - /** - * @see org.olat.core.gui.control.DefaultController#doDispose(boolean) - */ - protected void doDispose() { - // - } -} diff --git a/src/main/java/de/bps/olat/repository/controllers/_content/step1_wizard_add_owners.html b/src/main/java/de/bps/olat/repository/controllers/_content/step1_wizard_add_owners.html deleted file mode 100644 index eb34692505c98d99f28b78ba16ad419bd87c9515..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_content/step1_wizard_add_owners.html +++ /dev/null @@ -1,14 +0,0 @@ -<h3>$r.translate("wizard.add.owners.step1.header")</h3> -<p> - | $r.render("myEntriesLink") | - #if($r.available("allEntriesLink")) - $r.render("allEntriesLink") | - #end - #if($r.available("searchEntriesLink")) - $r.render("searchEntriesLink") | - #end -</p> -<p> - <h4>$subtitle</h4> - $r.render("searchCtr") -</p> \ No newline at end of file diff --git a/src/main/java/de/bps/olat/repository/controllers/_content/step2_wizard_add_owners.html b/src/main/java/de/bps/olat/repository/controllers/_content/step2_wizard_add_owners.html deleted file mode 100644 index 1d2534f5d3d0f2e50853bef5ed7b08b1ff6816c4..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_content/step2_wizard_add_owners.html +++ /dev/null @@ -1,9 +0,0 @@ -<h3>$r.translate("wizard.add.owners.step2.header")</h3> -<p> - <h4>$subtitle</h4> - $r.render("userSearchCtr") -</p> -<p> -<div class="b_align_center">$r.render("btn.back") -</div> -</p> \ No newline at end of file diff --git a/src/main/java/de/bps/olat/repository/controllers/_content/wizard.html b/src/main/java/de/bps/olat/repository/controllers/_content/wizard.html deleted file mode 100644 index c32b2e7f300d2a0c06eefc5017d7e0bf8cefda25..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_content/wizard.html +++ /dev/null @@ -1 +0,0 @@ -$r.render("panel") \ No newline at end of file diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ar.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ar.properties deleted file mode 100644 index 15a58c52e4dedad3160b52faf7f1b6e6e2530d70..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ar.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Sun Feb 21 13:11:45 CET 2010 -add.owners.step1=\u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u0635\u0627\u062F\u0631 \u0627\u0644\u062A\u0639\u0644\u0645 -add.owners.step2=\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0645\u0624\u0644\u0641\u064A\u0646 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u064A\u064A\u0646 \u0627\u0644\u0625\u0636\u0627\u0641\u064A\u064A\u0646 -btn.back=\u0631\u062C\u0648\u0639 -command.choose.resources=\u0627\u062E\u062A\u064A\u0627\u0631 -info.message.add.owners=\u062A\u0645 \u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0624\u0644\u0641\u064A\u0646 \u0627\u0644\u0645\u0633\u0627\u0639\u062F\u064A\u0646 \u0628\u0646\u062C\u0627\u062D. -info.message.add.owners.empty=\u064A\u0631\u062C\u0649 \u062A\u062D\u062F\u064A\u062F \u0645\u0633\u062A\u062E\u062F\u0645 \u0648\u0627\u062D\u062F \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644. -wizard.add.owners.step1.header=\u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u0635\u0627\u062F\u0631 \u0627\u0644\u062A\u0639\u0644\u0645 -wizard.add.owners.step1.notselected=\u064A\u0631\u062C\u0649 \u062A\u062D\u062F\u064A\u062F \u0645\u0635\u062F\u0631 \u062A\u0639\u0644\u064A\u0645 \u0648\u0627\u062D\u062F \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644. -wizard.add.owners.step2.header=\u0627\u062E\u062A\u064A\u0627\u0631 \u0645\u0624\u0644\u0641\u064A\u0646 \u0645\u0633\u0627\u0639\u062F\u064A\u064A\u0646 \u0625\u0636\u0627\u0641\u064A\u064A\u0646 -wizard.add.owners.title=\u0625\u0636\u0627\u0641\u0629 \u0645\u0624\u0644\u0641\u064A\u0646 \u0645\u0633\u0627\u0639\u062F\u064A\u0646 \u0644\u0645\u0635\u0627\u062F\u0631 \u0627\u0644\u062A\u0639\u0644\u0645 -wizard.step1.cmd.allEntries=\u0643\u0644 \u0627\u0644\u0645\u062F\u062E\u0644\u0627\u062A -wizard.step1.cmd.myEntries=\u0645\u062F\u062E\u0644\u0627\u062A\u0649 -wizard.step1.cmd.search=\u0628\u062D\u062B -wizard.step1.cmd.searchEntries=\u0646\u0645\u0648\u0630\u062C \u0628\u062D\u062B -wizard.step2.cmd.searchOwners=\u0646\u0645\u0648\u0630\u062C \u0628\u062D\u0640\u062B diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_bg.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_bg.properties deleted file mode 100644 index bd1d08cfa4586ce2efac342395c150f399b54205..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_bg.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Mon Jul 13 23:17:05 CEST 2009 -add.owners.step1=\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0433\u0440\u0443\u043F\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438 -add.owners.step2=\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0433\u0440\u0443\u043F\u0430 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u0438\u0446\u0438 -btn.back=\u041D\u0430\u0437\u0430\u0434 -command.choose.resources=\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438 -info.message.add.owners=\u0421\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u0438\u0446\u0438\u0442\u0435 \u0441\u0430 \u0434\u043E\u0431\u0430\u0432\u0435\u043D\u0438 \u0443\u0441\u043F\u0435\u0448\u043D\u043E. -info.message.add.owners.empty=\u041C\u043E\u043B\u044F, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0433\u0440\u0443\u043F\u0430 \u043E\u0442 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u0438\u0446\u0438 \u0438\u043B\u0438 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438. -wizard.add.owners.step1.header=\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438 -wizard.add.owners.step1.notselected=\u041C\u043E\u043B\u044F, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0433\u0440\u0443\u043F\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438. -wizard.add.owners.step2.header=\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u0438\u0446\u0438 -wizard.add.owners.title=\u041F\u0440\u0438\u0431\u0430\u0432\u0435\u0442\u0435 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u0438\u0446\u0438 \u043A\u044A\u043C \u0433\u0440\u0443\u043F\u0430 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0438 -wizard.step1.cmd.allEntries=\u0412\u0441\u0438\u0447\u043A\u0438 \u0432\u043F\u0438\u0441\u0432\u0430\u043D\u0438\u044F -wizard.step1.cmd.myEntries=\u041C\u043E\u0438\u0442\u0435 \u0432\u043F\u0438\u0441\u0432\u0430\u043D\u0438\u044F -wizard.step1.cmd.search=\u0422\u044A\u0440\u0441\u0435\u0442\u0435 -wizard.step1.cmd.searchEntries=\u0424\u043E\u0440\u043C\u0430 \u0437\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435 -wizard.step2.cmd.searchOwners=\u0424\u043E\u0440\u043C\u0430 \u0437\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435 diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_de.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_de.properties deleted file mode 100644 index 7d9f756d04177abe2f35e575bb83ffc9bbe075cf..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_de.properties +++ /dev/null @@ -1,15 +0,0 @@ -command.choose.resources = Auswahl -wizard.add.owners.title = Besitzer zu Lernressourcen hinzufügen -add.owners.step1 = Auswahl der Lernressourcen -add.owners.step2 = Auswahl der zusätzlichen Besitzer -wizard.add.owners.step1.header = Auswahl der Lernressourcen -wizard.add.owners.step2.header = Auswahl der zusätzlichen Besitzer -wizard.step1.cmd.searchEntries = Suchformular -wizard.step1.cmd.allEntries = Alle Eintr\u00E4ge -wizard.step1.cmd.myEntries = Meine Eintr\u00E4ge -wizard.step1.cmd.search = Suche -wizard.step2.cmd.searchOwners = Suchformular -info.message.add.owners = Besitzer wurden erfolgreich hinzugefügt. -info.message.add.owners.empty = Bitte wählen Sie mindestens einen Benutzer. -wizard.add.owners.step1.notselected = Bitte wählen Sie mindestens eine Lernressource. -btn.back = Zurück \ No newline at end of file diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_el.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_el.properties deleted file mode 100644 index 0a2060f9cf244fb08f4a3c19dfaa94f0990abb61..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_el.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Thu Mar 11 15:47:35 CET 2010 -add.owners.step1=\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C0\u03B7\u03B3\u03CE\u03BD \u03BC\u03AC\u03B8\u03B7\u03C3\u03B7\u03C2 -add.owners.step2=\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03C0\u03B9\u03C0\u03C1\u03CC\u03C3\u03B8\u03B5\u03C4\u03C9\u03BD \u03BA\u03B1\u03C4\u03CC\u03C7\u03C9\u03BD -btn.back=\u03A0\u03AF\u03C3\u03C9 -command.choose.resources=\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE -info.message.add.owners=\u039F\u03B9 \u03BA\u03AC\u03C4\u03BF\u03C7\u03BF\u03B9 \u03C0\u03C1\u03BF\u03C3\u03C4\u03AD\u03B8\u03B7\u03BA\u03B1\u03BD \u03B5\u03C0\u03B9\u03C4\u03C5\u03C7\u03CE\u03C2. -info.message.add.owners.empty=\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD \u03AD\u03BD\u03B1 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7. -wizard.add.owners.step1.header=\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C0\u03CC\u03C1\u03C9\u03BD \u03BC\u03AC\u03B8\u03B7\u03C3\u03B7\u03C2 -wizard.add.owners.step1.notselected=\u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03C4\u03BF\u03C5\u03BB\u03AC\u03C7\u03B9\u03C3\u03C4\u03BF\u03BD \u03AD\u03BD\u03B1 \u03C0\u03CC\u03C1\u03BF \u03BC\u03AC\u03B8\u03B7\u03C3\u03B7\u03C2. -wizard.add.owners.step2.header=\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03C0\u03B9\u03C0\u03BB\u03AD\u03BF\u03BD \u03BA\u03B1\u03C4\u03CC\u03C7\u03C9\u03BD -wizard.add.owners.title=\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03BA\u03B1\u03C4\u03CC\u03C7\u03C9\u03BD \u03C3\u03B5 \u03C0\u03CC\u03C1\u03BF\u03C5\u03C2 \u03BC\u03AC\u03B8\u03B7\u03C3\u03B7\u03C2 -wizard.step1.cmd.allEntries=\u038C\u03BB\u03B5\u03C2 \u03BF\u03B9 \u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2 -wizard.step1.cmd.myEntries=\u039F\u03B9 \u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2 \u03BC\u03BF\u03C5 -wizard.step1.cmd.search=\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7 -wizard.step1.cmd.searchEntries=\u03A6\u03CC\u03C1\u03BC\u03B1 \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2 -wizard.step2.cmd.searchOwners=\u03A6\u03CC\u03C1\u03BC\u03B1 \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2 diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_en.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_en.properties deleted file mode 100644 index bebd015b14776a89296f6857cba6517f97a5d89b..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_en.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Thu Jul 16 21:58:53 CEST 2009 -add.owners.step1=Choose learning resources -add.owners.step2=Choose additional owners -btn.back=Back -command.choose.resources=Selection -info.message.add.owners=Owners added successfully. -info.message.add.owners.empty=Please select at least one user. -wizard.add.owners.step1.header=Choose learning resources -wizard.add.owners.step1.notselected=Please select at least one learning resource. -wizard.add.owners.step2.header=Choose additional owners -wizard.add.owners.title=Add owners to learning resources -wizard.step1.cmd.allEntries=All entries -wizard.step1.cmd.myEntries=My entries -wizard.step1.cmd.search=Search -wizard.step1.cmd.searchEntries=Search form -wizard.step2.cmd.searchOwners=Search form diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_es.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_es.properties deleted file mode 100644 index 50992f0862e4f0d2a80ca9110967dcfb960ea7f7..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_es.properties +++ /dev/null @@ -1,15 +0,0 @@ -#Fri Oct 23 00:53:46 CEST 2009 -add.owners.step1=Elegir Recursos Did\u00E1cticos -add.owners.step2=Elegir propietarios adicionales -btn.back=Atr\u00E1s -command.choose.resources=Selecci\u00F3n -info.message.add.owners=Propietarios agregados satisfactoriamente. -info.message.add.owners.empty=Por favor, selecciones al menos un usuario. -wizard.add.owners.step1.header=Eligir Recurso Did\u00E1ctico -wizard.add.owners.step1.notselected=Por favor, seleccione al menos un recurso did\u00E1ctico -wizard.add.owners.step2.header=Elegir propietarios adicionales -wizard.add.owners.title=Agregar usuarios a los recursos did\u00E1cticos -wizard.step1.cmd.allEntries=Todas las entradas -wizard.step1.cmd.myEntries=Mis entradas -wizard.step1.cmd.search=Buscar -wizard.step1.cmd.searchEntries=Formulario de b\u00FAsqueda diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_fr.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_fr.properties deleted file mode 100644 index 981e3d3c0641be67cc58bb777943d9ed686e3128..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_fr.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Sun Jul 11 15:03:09 CEST 2010 -add.owners.step1=Choix de la ressource didactique -add.owners.step2=S\u00E9lection des propri\u00E9taires suppl\u00E9mentaires -btn.back=Retour -command.choose.resources=S\u00E9lection -info.message.add.owners=Les propri\u00E9taires ont \u00E9t\u00E9 ajout\u00E9s. -info.message.add.owners.empty=Veuillez choisir au moins un propri\u00E9taire, s.v.p.. -wizard.add.owners.step1.header=S\u00E9lection de la ressource didactique -wizard.add.owners.step1.notselected=Veuillez choisir au moins une ressource didactique -wizard.add.owners.step2.header=S\u00E9lection de propri\u00E9taires suppl\u00E9mentaires -wizard.add.owners.title=Ajouter le propri\u00E9taire d'une ressource didactique -wizard.step1.cmd.allEntries=Toutes les entr\u00E9es -wizard.step1.cmd.myEntries=Mes entr\u00E9es -wizard.step1.cmd.search=Recherche -wizard.step1.cmd.searchEntries=Champ de recherche -wizard.step2.cmd.searchOwners=Masque de recherche diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_it.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_it.properties deleted file mode 100644 index ee5173f39833cbcdef99cba2158529a7878945f8..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_it.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Thu Jun 17 19:41:37 CEST 2010 -add.owners.step1=Selezione delle risorse didattiche -add.owners.step2=Selezione dei proprietari ulteriori -btn.back=Indietro -command.choose.resources=Selezione -info.message.add.owners=I proprietari sono stati aggiunti. -info.message.add.owners.empty=Selezioni almeno un utente, p.f. -wizard.add.owners.step1.header=Selezione delle risorse didattiche -wizard.add.owners.step1.notselected=Selezioni almeno una risorsa didattica, p.f. -wizard.add.owners.step2.header=Selezione di proprietari ulteriori -wizard.add.owners.title=Aggiungere proprietari alle risorse didattiche -wizard.step1.cmd.allEntries=Tutte le entrate -wizard.step1.cmd.myEntries=Le mie entrate -wizard.step1.cmd.search=Ricerca -wizard.step1.cmd.searchEntries=Formulario di ricerca -wizard.step2.cmd.searchOwners=Modulo di ricerca diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_jp.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_jp.properties deleted file mode 100644 index 05cb113258b14071bb920a9fbf980fbadfbc928a..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_jp.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Mon Dec 28 08:27:30 CET 2009 -add.owners.step1=\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\u3092\u8FFD\u52A0\u3059\u308B -add.owners.step2=\u8FFD\u52A0\u7684\u306A\u30AA\u30FC\u30CA\u30FC\u3092\u9078\u629E\u3059\u308B -btn.back=\u623B\u308B -command.choose.resources=\u9078\u629E -info.message.add.owners=\u30AA\u30FC\u30CA\u30FC\u304C\u6B63\u5E38\u306B\u8FFD\u52A0\u3055\u308C\u307E\u3057\u305F\u3002 -info.message.add.owners.empty=\u5C11\u306A\u304F\u3068\u30821\u540D\u306E\u30E6\u30FC\u30B6\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -wizard.add.owners.step1.header=\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\u3092\u9078\u629E\u3059\u308B -wizard.add.owners.step1.notselected=\u5C11\u306A\u304F\u3068\u30821\u3064\u306E\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044\u3002 -wizard.add.owners.step2.header=\u8FFD\u52A0\u7684\u306A\u30AA\u30FC\u30CA\u30FC\u3092\u9078\u629E\u3059\u308B -wizard.add.owners.title=\u5B66\u7FD2\u30EA\u30BD\u30FC\u30B9\u306B\u30AA\u30FC\u30CA\u30FC\u3092\u8FFD\u52A0\u3059\u308B -wizard.step1.cmd.allEntries=\u3059\u3079\u3066\u306E\u30A8\u30F3\u30C8\u30EA -wizard.step1.cmd.myEntries=\u30DE\u30A4\u30A8\u30F3\u30C8\u30EA -wizard.step1.cmd.search=\u691C\u7D22 -wizard.step1.cmd.searchEntries=\u691C\u7D22\u30D5\u30A9\u30FC\u30E0 -wizard.step2.cmd.searchOwners=\u691C\u7D22\u30D5\u30A9\u30FC\u30E0 diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_nl_NL.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_nl_NL.properties deleted file mode 100644 index 0b63c6a0dc23497633f7cc6954449b63e75c3826..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_nl_NL.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Thu Sep 08 16:42:42 CEST 2011 -add.owners.step1=Kies leermiddelen -add.owners.step2=Kies extra eigenaars -btn.back=Terug -command.choose.resources=Selectie -info.message.add.owners=Eigenaars met succes toegevoegd. -info.message.add.owners.empty=Gelieve tenminste \u00E9\u00E9n gebruiker te selecteren. -wizard.add.owners.step1.header=Kies leermiddelen -wizard.add.owners.step1.notselected=Gelieve tenminste \u00E9\u00E9n leermiddel te selecteren. -wizard.add.owners.step2.header=Kies extra eigenaars -wizard.add.owners.title=Voeg eigenaars aan leermiddelen toe -wizard.step1.cmd.allEntries=Alle gegevens -wizard.step1.cmd.myEntries=Mijn gegevens -wizard.step1.cmd.search=Zoeken -wizard.step1.cmd.searchEntries=Zoekformulier -wizard.step2.cmd.searchOwners=Zoekforum diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pl.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pl.properties deleted file mode 100644 index d2a6721d23099531e5f7ae2cb07d010366519f8e..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pl.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Wed Oct 28 01:26:49 CET 2009 -add.owners.step1=Wybierz zasoby edukacyjne -add.owners.step2=Wybierz dodatkowych w\u0142a\u015Bcicieli -btn.back=Wstecz -command.choose.resources=Wyb\u00F3r -info.message.add.owners=W\u0142a\u015Bciciele dodani pomy\u015Blnie. -info.message.add.owners.empty=Wybierz co najmniej jednego u\u017Cytkownika. -wizard.add.owners.step1.header=Wybierz zas\u00F3b edukacyjny -wizard.add.owners.step1.notselected=Wybierz co najmniej jeden zas\u00F3b edukacyjny. -wizard.add.owners.step2.header=Wybierz dodatkowych w\u0142a\u015Bcicieli -wizard.add.owners.title=Dodaj w\u0142a\u015Bcicieli do zasob\u00F3w edukacyjnych -wizard.step1.cmd.allEntries=Wszystkie wpisy -wizard.step1.cmd.myEntries=Moje wpisy -wizard.step1.cmd.search=Szukaj -wizard.step1.cmd.searchEntries=Szukaj -wizard.step2.cmd.searchOwners=Formularz wyszukiwania diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pt_BR.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pt_BR.properties deleted file mode 100644 index 2f7b774484c23a0435545f732ea57a9486b4aaaf..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_pt_BR.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Tue Aug 25 14:19:37 CEST 2009 -add.owners.step1=Escolher recursos did\u00E1ticos -add.owners.step2=Escolher propriet\u00E1rios adicionais -btn.back=Voltar -command.choose.resources=Sele\u00E7\u00E3o -info.message.add.owners=Propriet\u00E1rios adicionados com sucesso. -info.message.add.owners.empty=Favor selecionar ao menos um usu\u00E1rio -wizard.add.owners.step1.header=Escolher recursos did\u00E1ticos -wizard.add.owners.step1.notselected=Favor selecione ao menos um recurso did\u00E1tico -wizard.add.owners.step2.header=Selecione propriet\u00E1rios adicionais -wizard.add.owners.title=Adicionar propriet\u00E1rios a recursos did\u00E1ticos -wizard.step1.cmd.allEntries=Todas entradas -wizard.step1.cmd.myEntries=Minhas entradas -wizard.step1.cmd.search=Procurar -wizard.step1.cmd.searchEntries=Formul\u00E1rio de busca -wizard.step2.cmd.searchOwners=Formul\u00E1rio de busca diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ru.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ru.properties deleted file mode 100644 index 0d987f89675273a6a21aa2e75e00f8035099f397..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_ru.properties +++ /dev/null @@ -1,15 +0,0 @@ -#Wed Sep 23 23:14:47 CEST 2009 -add.owners.step1=\u0412\u044B\u0431\u043E\u0440 \u0443\u0447\u0435\u0431\u043D\u044B\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 -add.owners.step2=\u0412\u044B\u0431\u043E\u0440 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430 -btn.back=\u041D\u0430\u0437\u0430\u0434 -command.choose.resources=\u0412\u044B\u0431\u043E\u0440 -info.message.add.owners=\u0412\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u044B. -info.message.add.owners.empty=\u041F\u043E\u0436\u0430\u0439\u043B\u0443\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0430\u043A \u043C\u0438\u043D\u0438\u043C\u0443\u043C \u043E\u0434\u043D\u043E\u0433\u043E \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430. -wizard.add.owners.step1.header=\u0412\u044B\u0431\u043E\u0440 \u0443\u0447\u0435\u0431\u043D\u044B\u0445 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u043E\u0432 -wizard.add.owners.step1.notselected=\u041F\u043E\u0436\u0430\u0439\u043B\u0443\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0430\u043A \u043C\u0438\u043D\u0438\u043C\u0443\u043C \u043E\u0434\u0438\u043D \u0443\u0447\u0435\u0431\u043D\u044B\u0439 \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B. -wizard.add.owners.step2.header=\u0412\u044B\u0431\u043E\u0440 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0430 -wizard.add.owners.title=\u041F\u0440\u0438\u0441\u0432\u043E\u0438\u0442\u044C \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0435\u0432 \u0443\u0447\u0435\u0431\u043D\u044B\u043C \u043C\u0430\u0442\u0435\u0440\u0438\u0430\u043B\u0430\u043C -wizard.step1.cmd.allEntries=\u0412\u0441\u0435 \u0437\u0430\u043F\u0438\u0441\u0438 -wizard.step1.cmd.myEntries=\u041C\u043E\u0438 \u0437\u0430\u043F\u0438\u0441\u0438 -wizard.step1.cmd.search=\u041F\u043E\u0438\u0441\u043A -wizard.step1.cmd.searchEntries=\u0424\u043E\u0440\u043C\u0443\u043B\u044F\u0440 \u043F\u043E\u0438\u0441\u043A\u0430 diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_CN.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_CN.properties deleted file mode 100644 index 3d86b3d52b0b4d7b27ef119b1a4761377cec5b38..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_CN.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Sat Feb 20 14:37:44 CET 2010 -add.owners.step1=\u9009\u62E9\u5B66\u4E60\u8D44\u6E90 -add.owners.step2=\u9009\u62E9\u5176\u4ED6\u7684\u62E5\u6709\u8005 -btn.back=\u8FD4\u56DE -command.choose.resources=\u9009\u62E9 -info.message.add.owners=\u62E5\u6709\u8005\u6DFB\u52A0\u6210\u529F\u3002 -info.message.add.owners.empty=\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u7528\u6237\u3002 -wizard.add.owners.step1.header=\u9009\u62E9\u5B66\u4E60\u8D44\u6E90 -wizard.add.owners.step1.notselected=\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u5B66\u4E60\u8D44\u6E90\u3002 -wizard.add.owners.step2.header=\u9009\u62E9\u5176\u4ED6\u7684\u62E5\u6709\u8005 -wizard.add.owners.title=\u4E3A\u5B66\u4E60\u8D44\u6E90\u6DFB\u52A0\u62E5\u6709\u8005 -wizard.step1.cmd.allEntries=\u6240\u6709\u9879\u76EE -wizard.step1.cmd.myEntries=\u6211\u7684\u9879\u76EE -wizard.step1.cmd.search=\u641C\u7D22 -wizard.step1.cmd.searchEntries=\u641C\u7D22\u8868\u5355 -wizard.step2.cmd.searchOwners=\u641C\u7D22\u8868\u5355 diff --git a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_TW.properties b/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_TW.properties deleted file mode 100644 index 68235113e86d2626bebd5ea5651b4d1d1955444d..0000000000000000000000000000000000000000 --- a/src/main/java/de/bps/olat/repository/controllers/_i18n/LocalStrings_zh_TW.properties +++ /dev/null @@ -1,16 +0,0 @@ -#Thu Jun 25 03:02:52 CEST 2009 -add.owners.step1=\u9078\u64C7\u4E00\u500B\u8CC7\u6E90\u7684\u96C6\u5408 -add.owners.step2=\u9078\u64C7\u4E00\u500B\u64C1\u6709\u8005\u7684\u96C6\u5408 -btn.back=\u56DE\u4E0A\u9801 -command.choose.resources=\u9078\u64C7\u8CC7\u6E90 -info.message.add.owners=\u64C1\u6709\u8005\u52A0\u5165\u6210\u529F\u3002 -info.message.add.owners.empty=\u8ACB\u9078\u64C7\u4E00\u500B\u64C1\u6709\u8005\u6216\u8CC7\u6E90\u7684\u96C6\u5408\u3002 -wizard.add.owners.step1.header=\u9078\u64C7\u8CC7\u6E90 -wizard.add.owners.step1.notselected=\u8ACB\u9078\u64C7\u4E00\u500B\u8CC7\u6E90\u7684\u96C6\u5408\u3002 -wizard.add.owners.step2.header=\u9078\u64C7\u64C1\u6709\u8005 -wizard.add.owners.title=\u52A0\u5165\u64C1\u6709\u8005\u5230\u4E00\u500B\u8CC7\u6E90\u7684\u96C6\u5408 -wizard.step1.cmd.allEntries=\u6240\u6709\u9805\u76EE -wizard.step1.cmd.myEntries=\u6211\u7684\u9805\u76EE -wizard.step1.cmd.search=\u641C\u5C0B -wizard.step1.cmd.searchEntries=\u641C\u5C0B\u8868\u55AE -wizard.step2.cmd.searchOwners=\u641C\u5C0B\u8868\u55AE diff --git a/src/main/java/org/olat/core/gui/components/form/flexible/impl/FormWrapperContainerRenderer.java b/src/main/java/org/olat/core/gui/components/form/flexible/impl/FormWrapperContainerRenderer.java index 704083df7fa30a244be97f20469d8d702694947e..b07c33c9d1776f441b8ab5dffd77f35987e5620f 100644 --- a/src/main/java/org/olat/core/gui/components/form/flexible/impl/FormWrapperContainerRenderer.java +++ b/src/main/java/org/olat/core/gui/components/form/flexible/impl/FormWrapperContainerRenderer.java @@ -160,7 +160,5 @@ class FormWrapperContainerRenderer implements ComponentRenderer { if (toRender != null) { renderer.renderHeaderIncludes(sb, toRender, rstate); } - } - -} +} \ No newline at end of file diff --git a/src/main/java/org/olat/course/area/CourseAreasController.java b/src/main/java/org/olat/course/area/CourseAreasController.java index 8e69e2f97f1776371bb52924e9a17705d9671151..e850c015950eb92c2077dce6e8738394548f5d36 100644 --- a/src/main/java/org/olat/course/area/CourseAreasController.java +++ b/src/main/java/org/olat/course/area/CourseAreasController.java @@ -22,7 +22,6 @@ package org.olat.course.area; import java.util.Collections; import java.util.List; -import org.olat.core.CoreSpringFactory; import org.olat.core.gui.UserRequest; import org.olat.core.gui.components.Component; import org.olat.core.gui.components.link.Link; @@ -47,8 +46,9 @@ import org.olat.group.area.BGArea; import org.olat.group.area.BGAreaManager; import org.olat.group.ui.NewAreaController; import org.olat.group.ui.area.BGAreaEditController; -import org.olat.repository.RepositoryTableModel; +import org.olat.repository.RepositoryService; import org.olat.resource.OLATResource; +import org.springframework.beans.factory.annotation.Autowired; /** * @@ -68,7 +68,8 @@ public class CourseAreasController extends MainLayoutBasicController { private BGAreaEditController editController; private NewAreaController newAreaController; - private final BGAreaManager areaManager; + @Autowired + private BGAreaManager areaManager; private final BGAreaTableModel areaDataModel; private final OLATResource resource; @@ -77,9 +78,8 @@ public class CourseAreasController extends MainLayoutBasicController { super(ureq, wControl); this.resource = resource; - areaManager = CoreSpringFactory.getImpl(BGAreaManager.class); - Translator resourceTrans = Util.createPackageTranslator(RepositoryTableModel.class, getLocale(), getTranslator()); + Translator resourceTrans = Util.createPackageTranslator(RepositoryService.class, getLocale(), getTranslator()); TableGuiConfiguration tableConfig = new TableGuiConfiguration(); tableConfig.setTableEmptyMessage(translate("resources.noresources")); tableCtrl = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans); diff --git a/src/main/java/org/olat/repository/ui/author/AuthorListController.java b/src/main/java/org/olat/repository/ui/author/AuthorListController.java index ba9692720954c89cad64e11b18afd795bf2c866a..effafb3dccbf38263e6c272d29cc0c24a8915cb0 100644 --- a/src/main/java/org/olat/repository/ui/author/AuthorListController.java +++ b/src/main/java/org/olat/repository/ui/author/AuthorListController.java @@ -25,6 +25,10 @@ import java.util.List; import java.util.Set; import org.olat.NewControllerFactory; +import org.olat.admin.user.UserSearchController; +import org.olat.basesecurity.GroupRoles; +import org.olat.basesecurity.events.MultiIdentityChosenEvent; +import org.olat.basesecurity.events.SingleIdentityChosenEvent; import org.olat.core.commons.services.mark.Mark; import org.olat.core.commons.services.mark.MarkManager; import org.olat.core.gui.UserRequest; @@ -55,6 +59,7 @@ import org.olat.core.gui.control.WindowControl; import org.olat.core.gui.control.generic.closablewrapper.CloseableModalController; import org.olat.core.gui.control.generic.dtabs.Activateable2; import org.olat.core.gui.control.generic.wizard.StepsMainRunController; +import org.olat.core.id.Identity; import org.olat.core.id.OLATResourceable; import org.olat.core.id.context.ContextEntry; import org.olat.core.id.context.StateEntry; @@ -94,12 +99,14 @@ public class AuthorListController extends FormBasicController implements Activat private CloseableModalController cmc; private StepsMainRunController wizardCtrl; private AuthorSearchController searchCtrl; + private UserSearchController userSearchCtr; private AuthoringEntryDetailsController detailsCtrl; private ImportRepositoryEntryController importCtrl; private CreateRepositoryEntryController createCtrl; private Link importLink; private Dropdown createDropdown; + private FormLink addOwnersButton; @Autowired private MarkManager markManager; @@ -110,7 +117,7 @@ public class AuthorListController extends FormBasicController implements Activat public AuthorListController(UserRequest ureq, WindowControl wControl, String i18nName, SearchAuthorRepositoryEntryViewParams searchParams) { - super(ureq, wControl, LAYOUT_BAREBONE); + super(ureq, wControl, "entries"); setTranslator(Util.createPackageTranslator(RepositoryManager.class, getLocale(), getTranslator())); this.searchParams = searchParams; @@ -154,7 +161,6 @@ public class AuthorListController extends FormBasicController implements Activat //search form searchCtrl = new AuthorSearchController(ureq, getWindowControl(), true, mainForm); listenTo(searchCtrl); - //formLayout.add("search", searchCtrl.getInitialFormItem()); //add the table FlexiTableColumnModel columnsModel = FlexiTableDataModelFactory.createFlexiTableColumnModel(); @@ -188,6 +194,9 @@ public class AuthorListController extends FormBasicController implements Activat tableEl.setCustomizeColumns(true); tableEl.setElementCssClass("o_coursetable"); tableEl.setFilters(null, getFilters()); + tableEl.setMultiSelect(true); + + addOwnersButton = uifactory.addFormLink("tools.add.owners", formLayout, Link.BUTTON); } private List<FlexiTableFilter> getFilters() { @@ -276,15 +285,30 @@ public class AuthorListController extends FormBasicController implements Activat RepositoryEntryRef repoEntryKey = oe.getRepositoryEntry(); doOpenDetails(ureq, repoEntryKey); } + } else if(userSearchCtr == source) { + @SuppressWarnings("unchecked") + List<AuthoringEntryRow> rows = (List<AuthoringEntryRow>)userSearchCtr.getUserObject(); + if (event instanceof MultiIdentityChosenEvent) { + MultiIdentityChosenEvent mice = (MultiIdentityChosenEvent) event; + doAddOwners(mice.getChosenIdentities(), rows); + } else if (event instanceof SingleIdentityChosenEvent) { + SingleIdentityChosenEvent sice = (SingleIdentityChosenEvent) event; + List<Identity> futureOwners = Collections.singletonList(sice.getChosenIdentity()); + doAddOwners(futureOwners, rows); + } + cmc.deactivate(); + cleanUp(); } super.event(ureq, source, event); } private void cleanUp() { + removeAsListenerAndDispose(userSearchCtr); removeAsListenerAndDispose(createCtrl); removeAsListenerAndDispose(importCtrl); removeAsListenerAndDispose(wizardCtrl); removeAsListenerAndDispose(cmc); + userSearchCtr = null; createCtrl = null; importCtrl = null; wizardCtrl = null; @@ -298,7 +322,21 @@ public class AuthorListController extends FormBasicController implements Activat @Override protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) { - if(source instanceof FormLink) { + if(addOwnersButton == source) { + Set<Integer> selections = tableEl.getMultiSelectedIndex(); + if(selections.isEmpty()) { + //get rows + } else { + List<AuthoringEntryRow> rows = new ArrayList<>(); + for(Integer i:selections) { + AuthoringEntryRow row = model.getObject(i.intValue()); + if(row != null) { + rows.add(row); + } + } + doAddOwners(ureq, rows); + } + } else if(source instanceof FormLink) { FormLink link = (FormLink)source; String cmd = link.getCmd(); if("mark".equals(cmd)) { @@ -321,7 +359,7 @@ public class AuthorListController extends FormBasicController implements Activat launch(ureq, row); } } - } + } super.formInnerEvent(ureq, source, event); } @@ -402,6 +440,30 @@ public class AuthorListController extends FormBasicController implements Activat tableEl.reset(); } + private void doAddOwners(UserRequest ureq, List<AuthoringEntryRow> rows) { + if(userSearchCtr != null) return; + + removeAsListenerAndDispose(userSearchCtr); + userSearchCtr = new UserSearchController(ureq, getWindowControl(), false, true, UserSearchController.ACTION_KEY_CHOOSE_FINISH); + userSearchCtr.setUserObject(rows); + listenTo(userSearchCtr); + + String title = translate("tools.add.owners"); + cmc = new CloseableModalController(getWindowControl(), translate("close"), userSearchCtr.getInitialComponent(), + true, title); + listenTo(cmc); + cmc.activate(); + } + + private void doAddOwners(List<Identity> futureOwners, List<AuthoringEntryRow> rows) { + for(AuthoringEntryRow row:rows) { + RepositoryEntry re = repositoryService.loadByKey(row.getKey()); + for(Identity futureOwner:futureOwners) { + repositoryService.addRole(futureOwner, re, GroupRoles.owner.name()); + } + } + } + private void launch(UserRequest ureq, AuthoringEntryRow row) { String businessPath = "[RepositoryEntry:" + row.getKey() + "]"; NewControllerFactory.getInstance().launch(businessPath, ureq, getWindowControl()); diff --git a/src/main/java/org/olat/repository/ui/author/_content/entries.html b/src/main/java/org/olat/repository/ui/author/_content/entries.html new file mode 100644 index 0000000000000000000000000000000000000000..3bc71b0d29ad4339ea4e61ef6aa290b5c336e4d6 --- /dev/null +++ b/src/main/java/org/olat/repository/ui/author/_content/entries.html @@ -0,0 +1,6 @@ +$r.render("table") +<div class="o_buttons_box_center b_clearfix"> + #if($r.available("tools.add.owners")) + $r.render("tools.add.owners") + #end +</div> \ No newline at end of file