Search in sources :

Example 1 with RepositoryEditDescriptionController

use of org.olat.repository.ui.author.RepositoryEditDescriptionController in project OpenOLAT by OpenOLAT.

the class RepositoryEntryRuntimeController method doEditSettings.

/**
 * Open the editor for all repository entry metadata, access control...
 * @param ureq
 */
protected void doEditSettings(UserRequest ureq) {
    if (!reSecurity.isEntryAdmin())
        return;
    WindowControl bwControl = getSubWindowControl("Settings");
    RepositoryEntry refreshedEntry = loadRepositoryEntry();
    RepositoryEditDescriptionController ctrl = new RepositoryEditDescriptionController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
    listenTo(ctrl);
    descriptionCtrl = pushController(ureq, translate("settings.editor"), ctrl);
    currentToolCtr = descriptionCtrl;
    setActiveTool(editDescriptionLink);
}
Also used : RepositoryEntry(org.olat.repository.RepositoryEntry) RepositoryEditDescriptionController(org.olat.repository.ui.author.RepositoryEditDescriptionController) WindowControl(org.olat.core.gui.control.WindowControl)

Example 2 with RepositoryEditDescriptionController

use of org.olat.repository.ui.author.RepositoryEditDescriptionController in project openolat by klemens.

the class RepositoryEntryRuntimeController method doEditSettings.

/**
 * Open the editor for all repository entry metadata, access control...
 * @param ureq
 */
protected void doEditSettings(UserRequest ureq) {
    if (!reSecurity.isEntryAdmin())
        return;
    WindowControl bwControl = getSubWindowControl("Settings");
    RepositoryEntry refreshedEntry = loadRepositoryEntry();
    RepositoryEditDescriptionController ctrl = new RepositoryEditDescriptionController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
    listenTo(ctrl);
    descriptionCtrl = pushController(ureq, translate("settings.editor"), ctrl);
    currentToolCtr = descriptionCtrl;
    setActiveTool(editDescriptionLink);
}
Also used : RepositoryEntry(org.olat.repository.RepositoryEntry) RepositoryEditDescriptionController(org.olat.repository.ui.author.RepositoryEditDescriptionController) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2 RepositoryEditDescriptionController (org.olat.repository.ui.author.RepositoryEditDescriptionController)2