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