LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
/**
|
|
|
|
|
* Copyright (c) 2015, Arthur Schiwon <blizzz@owncloud.com>
|
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
|
* See the COPYING-README file.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
OCA = OCA || {};
|
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @classdesc This class represents the view belonging to the server tab
|
|
|
|
|
* in the LDAP wizard.
|
|
|
|
|
*/
|
|
|
|
|
var WizardTabAbstractFilter = OCA.LDAP.Wizard.WizardTabGeneric.subClass({
|
|
|
|
|
/**
|
|
|
|
|
* @property {number} number that needs to exceeded to use complex group
|
|
|
|
|
* selection element
|
|
|
|
|
*/
|
|
|
|
|
_groupElementSwitchThreshold: 40,
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @property {boolean} - tells whether multiselect or complex element is
|
|
|
|
|
* used for selecting groups
|
|
|
|
|
*/
|
|
|
|
|
isComplexGroupChooser: false,
|
|
|
|
|
|
|
|
|
|
/** @property {string} */
|
|
|
|
|
tabID: '',
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* initializes the instance. Always call it after initialization.
|
|
|
|
|
* concrete view must set managed items first, and then call the parent
|
|
|
|
|
* init.
|
|
|
|
|
*
|
|
|
|
|
* @param {OCA.LDAP.Wizard.FilterOnTypeFactory} fotf
|
|
|
|
|
* @param {number} [tabIndex]
|
|
|
|
|
* @param {string} [tabID]
|
|
|
|
|
*/
|
|
|
|
|
init: function (fotf, tabIndex, tabID) {
|
|
|
|
|
this._super(tabIndex, tabID);
|
|
|
|
|
|
|
|
|
|
/** @type {OCA.LDAP.Wizard.FilterOnTypeFactory} */
|
|
|
|
|
this.foTFactory = fotf;
|
|
|
|
|
this._initMultiSelect(
|
|
|
|
|
this.getGroupsItem().$element,
|
|
|
|
|
t('user_ldap', 'Select groups')
|
|
|
|
|
);
|
|
|
|
|
this._initMultiSelect(
|
|
|
|
|
this.getObjectClassItem().$element,
|
|
|
|
|
t('user_ldap', 'Select object classes')
|
|
|
|
|
);
|
|
|
|
|
this.filterName = this.getFilterItem().keyName;
|
|
|
|
|
this._initFilterModeSwitcher(
|
|
|
|
|
this.getToggleItem().$element,
|
|
|
|
|
this.getRawFilterContainerItem().$element,
|
|
|
|
|
[ this.getObjectClassItem().$element ],
|
|
|
|
|
this.getFilterModeKey(),
|
|
|
|
|
{
|
|
|
|
|
status: 'disabled',
|
|
|
|
|
$element: this.getGroupsItem().$element
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
_.bindAll(this, 'onCountButtonClick', 'onSelectGroup', 'onDeselectGroup');
|
|
|
|
|
this.getCountItem().$relatedElements.click(this.onCountButtonClick);
|
|
|
|
|
if(this.manyGroupsSupport) {
|
|
|
|
|
var $selectBtn = $(this.tabID).find('.ldapGroupListSelect');
|
|
|
|
|
$selectBtn.click(this.onSelectGroup);
|
|
|
|
|
var $deselectBtn = $(this.tabID).find('.ldapGroupListDeselect');
|
|
|
|
|
$deselectBtn.click(this.onDeselectGroup);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the object class chooser. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getObjectClassItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the group chooser. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getGroupsItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the effective filter. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getFilterItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the toggle element. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getToggleItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the raw filter container. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getRawFilterContainerItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns managed item for the count control. must be
|
|
|
|
|
* implemented by concrete view
|
|
|
|
|
*/
|
|
|
|
|
getCountItem: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* returns name of the filter mode key. must be implemented by concrete
|
|
|
|
|
* view
|
|
|
|
|
*/
|
|
|
|
|
getFilterModeKey: function () {},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Sets the config model for this view and subscribes to some events.
|
|
|
|
|
* Also binds the config chooser to the model
|
|
|
|
|
*
|
|
|
|
|
* @param {OCA.LDAP.Wizard.ConfigModel} configModel
|
|
|
|
|
*/
|
|
|
|
|
setModel: function(configModel) {
|
|
|
|
|
this._super(configModel);
|
|
|
|
|
this.configModel.on('configLoaded', this.onConfigSwitch, this);
|
|
|
|
|
this.configModel.on('receivedLdapFeature', this.onFeatureReceived, this);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
_setFilterModeAssisted: function () {
|
|
|
|
|
this._super();
|
|
|
|
|
if(this.isComplexGroupChooser) {
|
|
|
|
|
this.enableElement(this.getGroupsItem().$relatedElements);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
_setFilterModeRaw: function () {
|
|
|
|
|
this._super();
|
|
|
|
|
if(this.manyGroupsSupport) {
|
|
|
|
|
this.disableElement(this.getGroupsItem().$relatedElements);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* sets the selected user object classes
|
|
|
|
|
*
|
|
|
|
|
* @param {Array} classes
|
|
|
|
|
*/
|
|
|
|
|
setObjectClass: function(classes) {
|
|
|
|
|
this.setElementValue(this.getObjectClassItem().$element, classes);
|
|
|
|
|
this.getObjectClassItem().$element.multiselect('refresh');
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* sets the selected groups
|
|
|
|
|
*
|
2015-05-06 16:25:51 +03:00
|
|
|
|
* @param {string} groups
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
*/
|
|
|
|
|
setGroups: function(groups) {
|
2015-05-06 16:25:51 +03:00
|
|
|
|
if(typeof groups === 'string') {
|
|
|
|
|
groups = groups.split("\n");
|
|
|
|
|
}
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
if(!this.isComplexGroupChooser) {
|
|
|
|
|
this.setElementValue(this.getGroupsItem().$element, groups);
|
|
|
|
|
this.getGroupsItem().$element.multiselect('refresh');
|
|
|
|
|
} else {
|
|
|
|
|
var $element = $(this.tabID).find('.ldapGroupListSelected');
|
|
|
|
|
this.equipMultiSelect($element, groups);
|
2019-06-21 15:09:31 +03:00
|
|
|
|
this.updateFilterOnType();
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* sets the filter
|
|
|
|
|
*
|
|
|
|
|
* @param {string} filter
|
|
|
|
|
*/
|
|
|
|
|
setFilter: function(filter) {
|
|
|
|
|
this.setElementValue(this.getFilterItem().$element, filter);
|
|
|
|
|
this.$filterModeRawContainer.siblings('.ldapReadOnlyFilterContainer').find('.ldapFilterReadOnlyElement').text(filter);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* sets the user count string
|
|
|
|
|
*
|
|
|
|
|
* @param {string} countInfo
|
|
|
|
|
*/
|
|
|
|
|
setCount: function(countInfo) {
|
|
|
|
|
this.setElementValue(this.getCountItem().$element, countInfo);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
considerFeatureRequests: function() {
|
|
|
|
|
if(!this.isActive) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.getObjectClassItem().$element.find('option').length === 0) {
|
|
|
|
|
this.disableElement(this.getObjectClassItem().$element);
|
|
|
|
|
this.disableElement(this.getGroupsItem().$element);
|
|
|
|
|
if(this.parsedFilterMode === this.configModel.FILTER_MODE_ASSISTED) {
|
|
|
|
|
this.configModel.requestWizard(this.getObjectClassItem().keyName);
|
|
|
|
|
this.configModel.requestWizard(this.getGroupsItem().keyName);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* updates (creates, if necessary) filterOnType instances
|
|
|
|
|
*/
|
2019-06-21 15:09:31 +03:00
|
|
|
|
updateFilterOnType: function() {
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
if(_.isUndefined(this.filterOnType)) {
|
|
|
|
|
this.filterOnType = [];
|
|
|
|
|
|
|
|
|
|
var $availableGroups = $(this.tabID).find('.ldapGroupListAvailable');
|
|
|
|
|
this.filterOnType.push(this.foTFactory.get(
|
|
|
|
|
$availableGroups, $(this.tabID).find('.ldapManyGroupsSearch')
|
|
|
|
|
));
|
|
|
|
|
var $selectedGroups = $(this.tabID).find('.ldapGroupListSelected');
|
|
|
|
|
this.filterOnType.push(this.foTFactory.get(
|
|
|
|
|
$selectedGroups, $(this.tabID).find('.ldapManyGroupsSearch')
|
|
|
|
|
));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
onActivate: function() {
|
2015-04-18 00:33:59 +03:00
|
|
|
|
this._super();
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
this.considerFeatureRequests();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* resets the view when a configuration switch happened.
|
|
|
|
|
*
|
|
|
|
|
* @param {WizardTabAbstractFilter} view
|
|
|
|
|
* @param {Object} configuration
|
|
|
|
|
*/
|
|
|
|
|
onConfigSwitch: function(view, configuration) {
|
|
|
|
|
view.getObjectClassItem().$element.find('option').remove();
|
|
|
|
|
view.getGroupsItem().$element.find('option').remove();
|
|
|
|
|
view.getCountItem().$element.text('');
|
|
|
|
|
$(view.tabID).find('.ldapGroupListAvailable').empty();
|
|
|
|
|
$(view.tabID).find('.ldapGroupListSelected').empty();
|
|
|
|
|
view.updateFilterOnType();
|
|
|
|
|
$(view.tabID).find('.ldapManyGroupsSearch').val('');
|
|
|
|
|
|
|
|
|
|
if(view.isComplexGroupChooser) {
|
|
|
|
|
view.isComplexGroupChooser = false;
|
|
|
|
|
view.getGroupsItem().$element.multiselect({classes: view.multiSelectPluginClass});
|
|
|
|
|
$(view.tabID).find(".ldapManyGroupsSupport").addClass('hidden');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
view.onConfigLoaded(view, configuration);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
onConfigLoaded: function(view, configuration) {
|
|
|
|
|
for(var key in view.managedItems){
|
|
|
|
|
if(!_.isUndefined(configuration[key])) {
|
|
|
|
|
var value = configuration[key];
|
|
|
|
|
var methodName = view.managedItems[key].setMethod;
|
|
|
|
|
if(!_.isUndefined(view[methodName])) {
|
|
|
|
|
view[methodName](value);
|
|
|
|
|
// we reimplement it here to update the filter index
|
|
|
|
|
// for groups. Maybe we can isolate it?
|
|
|
|
|
if(methodName === 'setGroups') {
|
2019-06-21 15:09:31 +03:00
|
|
|
|
view.updateFilterOnType();
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* if UserObjectClasses are found, the corresponding element will be
|
|
|
|
|
* updated
|
|
|
|
|
*
|
|
|
|
|
* @param {WizardTabAbstractFilter} view
|
|
|
|
|
* @param {FeaturePayload} payload
|
|
|
|
|
*/
|
|
|
|
|
onFeatureReceived: function(view, payload) {
|
|
|
|
|
if(payload.feature === view.getObjectClassItem().featureName) {
|
|
|
|
|
view.equipMultiSelect(view.getObjectClassItem().$element, payload.data);
|
2015-04-09 21:31:23 +03:00
|
|
|
|
if( !view.getFilterItem().$element.val()
|
|
|
|
|
&& view.parsedFilterMode === view.configModel.FILTER_MODE_ASSISTED
|
|
|
|
|
) {
|
2018-10-19 12:23:33 +03:00
|
|
|
|
view.configModel.requestWizard(view.getFilterItem().keyName);
|
2015-04-09 21:31:23 +03:00
|
|
|
|
}
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
} else if (payload.feature === view.getGroupsItem().featureName) {
|
|
|
|
|
if(view.manyGroupsSupport && payload.data.length > view._groupElementSwitchThreshold) {
|
|
|
|
|
// we need to fill the left list box, excluding the values
|
|
|
|
|
// that are already selected
|
|
|
|
|
var $element = $(view.tabID).find('.ldapGroupListAvailable');
|
|
|
|
|
var selected = view.configModel.configuration[view.getGroupsItem().keyName];
|
|
|
|
|
var available = $(payload.data).not(selected).get();
|
|
|
|
|
view.equipMultiSelect($element, available);
|
|
|
|
|
$(view.tabID).find(".ldapManyGroupsSupport").removeClass('hidden');
|
|
|
|
|
view.getGroupsItem().$element.multiselect({classes: view.multiSelectPluginClass + ' forceHidden'});
|
|
|
|
|
view.isComplexGroupChooser = true;
|
|
|
|
|
} else {
|
|
|
|
|
view.isComplexGroupChooser = false;
|
|
|
|
|
view.equipMultiSelect(view.getGroupsItem().$element, payload.data);
|
|
|
|
|
view.getGroupsItem().$element.multiselect({classes: view.multiSelectPluginClass});
|
|
|
|
|
$(view.tabID).find(".ldapManyGroupsSupport").addClass('hidden');
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* request to count the users with the current filter
|
|
|
|
|
*
|
|
|
|
|
* @param {Event} event
|
|
|
|
|
*/
|
|
|
|
|
onCountButtonClick: function(event) {
|
|
|
|
|
event.preventDefault();
|
|
|
|
|
// let's clear the field
|
|
|
|
|
this.getCountItem().$element.text('');
|
|
|
|
|
this.configModel.requestWizard(this.getCountItem().keyName);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* saves groups when using the complex UI
|
|
|
|
|
*
|
|
|
|
|
* @param {Array} groups
|
|
|
|
|
* @returns {boolean}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_saveGroups: function(groups) {
|
|
|
|
|
var toSave = '';
|
|
|
|
|
$(groups).each(function() { toSave = toSave + "\n" + this; } );
|
|
|
|
|
this.configModel.set(this.getGroupsItem().keyName, $.trim(toSave));
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* acts on adding groups to the filter
|
|
|
|
|
*/
|
|
|
|
|
onSelectGroup: function() {
|
|
|
|
|
var $available = $(this.tabID).find('.ldapGroupListAvailable');
|
2019-06-21 15:09:31 +03:00
|
|
|
|
if(!$available.val()) {
|
|
|
|
|
return; // no selection – nothing to do
|
|
|
|
|
}
|
|
|
|
|
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
var $selected = $(this.tabID).find('.ldapGroupListSelected');
|
|
|
|
|
var selected = $.map($selected.find('option'), function(e) { return e.value; });
|
|
|
|
|
|
2019-06-21 15:09:31 +03:00
|
|
|
|
let selectedGroups = [];
|
|
|
|
|
$available.find('option:selected:visible').each(function() {
|
|
|
|
|
selectedGroups.push($(this).val());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this._saveGroups(selected.concat(selectedGroups));
|
|
|
|
|
$available.find('option:selected:visible').prependTo($selected);
|
|
|
|
|
this.updateFilterOnType(); // selected groups are not updated yet
|
|
|
|
|
$available.find('option:selected').prop("selected", false);
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* acts on removing groups to the filter
|
|
|
|
|
*/
|
|
|
|
|
onDeselectGroup: function() {
|
|
|
|
|
var $available = $(this.tabID).find('.ldapGroupListAvailable');
|
|
|
|
|
var $selected = $(this.tabID).find('.ldapGroupListSelected');
|
2019-06-21 15:09:31 +03:00
|
|
|
|
var selected = $.map($selected.find('option:not(:selected:visible)'), function(e) { return e.value; });
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
|
|
|
|
|
this._saveGroups(selected);
|
2019-06-21 15:09:31 +03:00
|
|
|
|
$selected.find('option:selected:visible').appendTo($available);
|
|
|
|
|
this.updateFilterOnType(); // selected groups are not updated yet
|
|
|
|
|
$selected.find('option:selected').prop("selected", false);
|
LDAP Wizard Overhaul
wizard refactor
reimplement save spinners and cursor
implement Port detector
introduced detector queue, added base dn detector
disable input fields when detectors are running
introduce spinners for fields that are being updated by detector
cache jq element objects
consolidate processing of detector results in generic / abstract base class
display notification if a detector discovered a problem
don't run base dn detector if a base is configured
reset detector queue on configuration switch
implement functionality check and update of status indicator
document ConfigModel
jsdoc for controller and main view
more documentation
implement the user filter tab view
so far the multiselects get initialized (not filled yet) and the mode can be switched.
mode is also restored.
reintroduce filter switch confirmation in admin XP mode
new detector for user object classes. so we also load user object classes if necessary and are able to save and show the setting.
multiselect trigger save actions now on close only
show spinners automatically, when a detector is running
20k limit for object classes preselection test
adjust wordings, fix grammar
add group (for users tab) detector
also includes wording fixes
error presentation moved from detectors to view, where it belongs
add info label to users page
missing wording changes
show effective LDAP filter in Assisted Mode
add user filter detector
implement count button for users and limit all count actions to 1001 for performance reasons
make port field a bit bigger. not perfect though.
do not detect port automatically
implement login filter tab view
only load features in assisted mode and don't enable assisted fields while in raw mode
add tooltips on login filter checkbox options for better understanding
permanently show filter on login tab
and also compile login filter in assisted mode
test/verify button on login attributes tab, with backend changes.
only run wizard requests if your an active tab. also run compile filter requests when switching to assisted mode
underline toggle filter links to stress that they are clickable
unity user and group tab functionality in common abstract class, add group filter tab view. only detectors and template adjustments left to have group tab implementation complete
add object class and group detector for groups as well as filter composer
show ldap filter permanently on groups tab
introduce input element that can deal better with many groups, will be used with > 40
fix disabling complex group chooser while detection is running
hide complex group chooser on config switch
fix few more issues with complex chooser
make complex group chooser available on Users tab as well
detect base dn improvements/changes:
- do not look for Base DN automatically, offer a button instead
- fix for alternative way to detect a base dn (if agent dn is not given)
- do not trigger filter composers on config switch
Changes with configuration chooser controls
- "New" was removed out of the configuration list
- and split into buttons "add" and "copy"
- delete button is also now an icon
add test button for Base DN
reimplement advanced tab. The save button is gone.
reimplement expert tab
remove unused methods
implement mail attribute detector
implement user display name attribute detection
implement member group association detector
replace text input with textarea for raw filter input
finish functionality check
auto-enable good configurations, as it was before
cleanup
move save confirmation handling to base class, reduces code duplication
enable tabs only if no running save processes are left.
move onConfigLoaded to base class, avoids code duplication
simplify, save LOCs
Test Configuration button to be dealt with in main view as it is a cross-tab element
require detectorQueue in constructor
cleanup
put bootstrap into a function and thus make it testable
get rid of old stuff
2015-03-03 13:56:03 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
OCA.LDAP.Wizard.WizardTabAbstractFilter = WizardTabAbstractFilter;
|
2015-04-09 15:00:34 +03:00
|
|
|
|
})();
|