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;
}
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);
}
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);
}
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);
}
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;
}
Aggregations