/** @see org.olat.core.extensions.Extension#getExtensionFor(java.lang.String) */ @Override public ExtensionElement getExtensionFor(final String extensionPoint) { if (isEnabled()) { return elements.getExtensionElement(extensionPoint); } else { return null; } }
/** Constructor to create an extension that registers in the admin site */ public LDAPAdminExtension() { elements.putExtensionElement( SystemAdminMainController.class.getName(), new ActionExtension() { /** * @see org.olat.core.extensions.action.ActionExtension#getActionText(java.util.Locale) */ @Override public String getActionText(final Locale loc) { final Translator transl = Util.createPackageTranslator(LDAPAdminExtension.class, loc); return transl.translate("admin.menu.ldap"); } /** * @see org.olat.core.extensions.action.ActionExtension#getDescription(java.util.Locale) */ @Override public String getDescription(final Locale loc) { final Translator transl = Util.createPackageTranslator(LDAPAdminExtension.class, loc); return transl.translate("admin.menu.ldap.desc"); } /** * @see * org.olat.core.extensions.action.ActionExtension#createController(org.olat.core.gui.UserRequest, * org.olat.core.gui.control.WindowControl, java.lang.Object) */ @Override public Controller createController( final UserRequest ureq, final WindowControl control, @SuppressWarnings("unused") final Object arg) { return new LDAPAdminController(ureq, control); } }); }