Search in sources :

Example 1 with AuthoringEditAccessController

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

the class RepositoryEntryRuntimeController method doAccess.

/**
 * Open the editor for all repository entry metadata, access control...
 * @param ureq
 */
protected void doAccess(UserRequest ureq) {
    WindowControl bwControl = getSubWindowControl("Access");
    RepositoryEntry refreshedEntry = loadRepositoryEntry();
    AuthoringEditAccessController ctrl = new AuthoringEditAccessController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
    listenTo(ctrl);
    accessCtrl = pushController(ureq, translate("tab.accesscontrol"), ctrl);
    setActiveTool(accessLink);
    currentToolCtr = accessCtrl;
}
Also used : AuthoringEditAccessController(org.olat.repository.ui.author.AuthoringEditAccessController) RepositoryEntry(org.olat.repository.RepositoryEntry) WindowControl(org.olat.core.gui.control.WindowControl)

Example 2 with AuthoringEditAccessController

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

the class RepositoryEntryRuntimeController method doAccess.

/**
 * Open the editor for all repository entry metadata, access control...
 * @param ureq
 */
protected void doAccess(UserRequest ureq) {
    WindowControl bwControl = getSubWindowControl("Access");
    RepositoryEntry refreshedEntry = loadRepositoryEntry();
    AuthoringEditAccessController ctrl = new AuthoringEditAccessController(ureq, addToHistory(ureq, bwControl), refreshedEntry);
    listenTo(ctrl);
    accessCtrl = pushController(ureq, translate("tab.accesscontrol"), ctrl);
    setActiveTool(accessLink);
    currentToolCtr = accessCtrl;
}
Also used : AuthoringEditAccessController(org.olat.repository.ui.author.AuthoringEditAccessController) RepositoryEntry(org.olat.repository.RepositoryEntry) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

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