Search in sources :

Example 6 with AutoCreator

use of org.olat.core.gui.control.creator.AutoCreator in project OpenOLAT by OpenOLAT.

the class DMZPWChangeContentControllerCreator method createController.

@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
    DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
    dmzSitesAndNav.showTopNav(false);
    AutoCreator contentControllerCreator = new AutoCreator();
    contentControllerCreator.setClassName(PwChangeController.class.getName());
    dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
    return new BaseFullWebappController(lureq, dmzSitesAndNav);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) DmzBFWCParts(org.olat.login.DmzBFWCParts) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController)

Example 7 with AutoCreator

use of org.olat.core.gui.control.creator.AutoCreator in project OpenOLAT by OpenOLAT.

the class UsrPropHandlerCfgFactory method getConfigController.

/**
 * returns the configController for the given PropertyHandler. If no
 * controller available, null is returned instead! Always check first with
 * <code>hasConfig()</code>
 *
 * @param ureq
 * @param wControl
 * @param handler
 * @return
 */
public UsrPropHandlerCfgController getConfigController(UserRequest ureq, WindowControl wControl, UserPropertyHandler handler) {
    if (!hasConfig(handler))
        return null;
    AutoCreator creator = handlerControllerMap.get(handler.getClass().getName());
    UsrPropHandlerCfgController ctrl = (UsrPropHandlerCfgController) creator.createController(ureq, wControl);
    ctrl.setHandlerToConfigure(handler);
    return ctrl;
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator)

Example 8 with AutoCreator

use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.

the class DMZPWChangeContentControllerCreator method createController.

@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
    DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
    dmzSitesAndNav.showTopNav(false);
    AutoCreator contentControllerCreator = new AutoCreator();
    contentControllerCreator.setClassName(PwChangeController.class.getName());
    dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
    return new BaseFullWebappController(lureq, dmzSitesAndNav);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) DmzBFWCParts(org.olat.login.DmzBFWCParts) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController)

Example 9 with AutoCreator

use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.

the class DMZShibRegistrationContentControllerCreator method createController.

@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
    DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
    AutoCreator contentControllerCreator = new AutoCreator();
    contentControllerCreator.setClassName(ShibbolethRegistrationController.class.getName());
    dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
    return new BaseFullWebappController(lureq, dmzSitesAndNav);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) DmzBFWCParts(org.olat.login.DmzBFWCParts) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController)

Example 10 with AutoCreator

use of org.olat.core.gui.control.creator.AutoCreator in project openolat by klemens.

the class FolderCommandFactory method getCommand.

public FolderCommand getCommand(String command, UserRequest ureq, WindowControl wControl) {
    if (command == null)
        return null;
    FolderCommand cmd = null;
    if (command.equals(COMMAND_CREATEFOLDER))
        cmd = new CmdCreateFolder(ureq, wControl);
    else if (command.equals(COMMAND_CREATEFILE))
        cmd = new CmdCreateFile(ureq, wControl);
    else if (command.equals(COMMAND_COPYFILE))
        cmd = new CmdCopyFile(ureq, wControl);
    else if (command.equals(COMMAND_UPLOAD))
        cmd = new CmdUpload(ureq, wControl, true);
    else if (command.equals(COMMAND_SERV))
        cmd = new CmdServeResource();
    else if (command.equals(COMMAND_SERV_THUMBNAIL))
        cmd = new CmdServeThumbnailResource();
    else if (command.equals(COMMAND_EDIT))
        cmd = new CmdEditMeta(ureq, wControl);
    else if (command.equals(COMMAND_EDIT_CONTENT))
        cmd = new CmdEditContent(ureq, wControl);
    else if (command.equals(COMMAND_EDIT_QUOTA))
        cmd = new CmdEditQuota(wControl);
    else if (command.equals(COMMAND_DEL))
        cmd = new CmdDelete(ureq, wControl);
    else if (command.equals(COMMAND_MAIL)) {
        AutoCreator controllerCreator = (AutoCreator) CoreSpringFactory.getBean("sendDocumentByEMailControllerCreator");
        cmd = (CmdSendMail) controllerCreator.createController(ureq, wControl);
    } else if (command.equals(COMMAND_MOVE))
        cmd = new CmdMoveCopy(wControl, true);
    else if (command.equals(COMMAND_COPY))
        cmd = new CmdMoveCopy(wControl, false);
    else if (command.equals(COMMAND_ZIP))
        cmd = new CmdZip(ureq, wControl);
    else if (command.equals(COMMAND_DOWNLOAD_ZIP))
        cmd = new CmdDownloadZip();
    else if (command.equals(COMMAND_UNZIP))
        cmd = new CmdUnzip(ureq, wControl);
    else if (command.equals(COMMAND_VIEW_VERSION))
        cmd = new CmdViewRevisions(ureq, wControl);
    else if (command.equals(COMMAND_ADD_EPORTFOLIO)) {
        AutoCreator controllerCreator = (AutoCreator) CoreSpringFactory.getBean("folderCMDAddToEPortfolio");
        cmd = (CmdAddToEPortfolio) controllerCreator.createController(ureq, wControl);
    } else if (command.equals(COMMAND_DELETED_FILES))
        cmd = new CmdDeletedFiles(ureq, wControl);
    return cmd;
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator)

Aggregations

AutoCreator (org.olat.core.gui.control.creator.AutoCreator)18 BaseFullWebappController (org.olat.core.commons.fullWebApp.BaseFullWebappController)10 DmzBFWCParts (org.olat.login.DmzBFWCParts)8 ChangeEMailController (de.bps.olat.user.ChangeEMailController)2 LayoutMain3ColsController (org.olat.core.commons.fullWebApp.LayoutMain3ColsController)2 ChiefController (org.olat.core.gui.control.ChiefController)2 Controller (org.olat.core.gui.control.Controller)2 MainLayoutController (org.olat.core.gui.control.generic.layout.MainLayoutController)2 ForbiddenCourseSiteController (org.olat.course.site.ui.ForbiddenCourseSiteController)2