Search in sources :

Example 1 with AutoCreator

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

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)

Example 2 with AutoCreator

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

the class DMZEMChangeContentControllerCreator method createController.

@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
    DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
    dmzSitesAndNav.showTopNav(false);
    AutoCreator contentControllerCreator = new AutoCreator();
    contentControllerCreator.setClassName(ChangeEMailController.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) ChangeEMailController(de.bps.olat.user.ChangeEMailController)

Example 3 with AutoCreator

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

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 4 with AutoCreator

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

the class AuthenticationProvider method createController.

@Override
public Controller createController(UserRequest lureq, WindowControl lwControl) {
    AutoCreator ac = new AutoCreator();
    ac.setClassName(clazz);
    return ac.createController(lureq, lwControl);
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator)

Example 5 with AutoCreator

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

the class DMZContentControllerCreator method createController.

@Override
public Controller createController(UserRequest ureq, WindowControl lwControl) {
    DmzBFWCParts dmzSitesAndNav = new DmzBFWCParts();
    AutoCreator contentControllerCreator = new AutoCreator();
    contentControllerCreator.setClassName(LoginAuthprovidersController.class.getName());
    dmzSitesAndNav.setContentControllerCreator(contentControllerCreator);
    ChiefController cc = new BaseFullWebappController(ureq, dmzSitesAndNav);
    cc.addBodyCssClass("o_dmz");
    Windows.getWindows(ureq.getUserSession()).setChiefController(cc);
    return cc;
}
Also used : AutoCreator(org.olat.core.gui.control.creator.AutoCreator) BaseFullWebappController(org.olat.core.commons.fullWebApp.BaseFullWebappController) ChiefController(org.olat.core.gui.control.ChiefController)

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