|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ilLDAPRoleAssignmentRule:Public Member Functions | |
| matches (array $a_user_data) | |
| Check if a rule matches. More... | |
| setRoleId (int $a_role_id) | |
| set role id More... | |
| getRoleId () | |
| get role id More... | |
| getRuleId () | |
| get id More... | |
| setServerId (int $a_id) | |
| set server id More... | |
| getServerId () | |
| get server id More... | |
| setType (int $a_type) | |
| set type More... | |
| getType () | |
| getType More... | |
| setDN (string $a_dn) | |
| set dn More... | |
| getDN () | |
| get dn More... | |
| setMemberAttribute (string $a_attribute) | |
| getMemberAttribute () | |
| get attribute More... | |
| setMemberIsDN (bool $a_status) | |
| set member attribute is dn More... | |
| isMemberAttributeDN () | |
| is member attribute dn More... | |
| setAttributeName (string $a_name) | |
| set attribute name More... | |
| getAttributeName () | |
| get attribute name More... | |
| setAttributeValue (string $a_value) | |
| set attribute value More... | |
| getAttributeValue () | |
| get atrtibute value More... | |
| enableAddOnUpdate (bool $a_status) | |
| isAddOnUpdateEnabled () | |
| enableRemoveOnUpdate (bool $a_status) | |
| isRemoveOnUpdateEnabled () | |
| setPluginId (int $a_id) | |
| getPluginId () | |
| isPluginActive () | |
| conditionToString () | |
| create () | |
| update () | |
| validate () | |
| delete () | |
Static Public Member Functions | |
| static | _getInstanceByRuleId (int $a_rule_id) |
| static | hasRulesForUpdate () |
| Check if there any rule for updates. More... | |
| static | _getRules ($a_server_id) |
| Get all rules. More... | |
Data Fields | |
| const | TYPE_GROUP = 1 |
| const | TYPE_ATTRIBUTE = 2 |
| const | TYPE_PLUGIN = 3 |
Protected Member Functions | |
| wildcardCompare (string $a_str1, string $a_str2) | |
Private Member Functions | |
| __construct (int $a_rule_id=0) | |
| isGroupMember (array $a_user_data) | |
| Check if user is member of specific group. More... | |
| read () | |
Private Attributes | |
| ilLogger | $logger |
| ilDBInterface | $db |
| ilErrorHandling | $ilErr |
| ilLanguage | $lng |
| int | $rule_id |
| int | $server_id = 0 |
| bool | $add_on_update = false |
| bool | $remove_on_update = false |
| int | $plugin_id = 0 |
| string | $attribute_value = '' |
| string | $attribute_name = '' |
| bool | $member_is_dn = false |
| string | $member_attribute = '' |
| string | $dn = '' |
| int | $type = 0 |
| int | $role_id = 0 |
Static Private Attributes | |
| static array | $instances = [] |
Definition at line 25 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 52 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, ILIAS\Repository\lng(), ILIAS\Repository\logger(), and read().
Here is the call graph for this function:
|
static |
Definition at line 64 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by _getRules(), ilLDAPSettingsGUI\confirmDeleteRules(), ilLDAPSettingsGUI\deleteRulesCmd(), ilLDAPSettingsGUI\editRoleAssignment(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), and ilLDAPSettingsGUI\roleAssignmentsCmd().
Here is the caller graph for this function:
|
static |
Get all rules.
Definition at line 202 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $res, _getInstanceByRuleId(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPSettingsGUI\__construct(), ilLDAPServer\delete(), ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignmentsCmd().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 389 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getPluginId(), getType(), ILIAS\Repository\lng(), TYPE_ATTRIBUTE, TYPE_GROUP, and TYPE_PLUGIN.
Referenced by ilLDAPSettingsGUI\confirmDeleteRules().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::create | ( | ) |
Definition at line 407 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::delete | ( | ) |
Definition at line 490 of file class.ilLDAPRoleAssignmentRule.php.
References getRuleId().
Referenced by ilLDAPSettingsGUI\deleteRulesCmd().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) |
Definition at line 354 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) |
Definition at line 364 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
Definition at line 333 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_name.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
Definition at line 349 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_value.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
Definition at line 288 of file class.ilLDAPRoleAssignmentRule.php.
References $dn.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
Definition at line 301 of file class.ilLDAPRoleAssignmentRule.php.
References $member_attribute.
Referenced by create(), isGroupMember(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 379 of file class.ilLDAPRoleAssignmentRule.php.
References $plugin_id.
Referenced by conditionToString(), create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
Definition at line 232 of file class.ilLDAPRoleAssignmentRule.php.
References $role_id.
Referenced by create(), matches(), update(), and validate().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
get id
Definition at line 240 of file class.ilLDAPRoleAssignmentRule.php.
References $rule_id.
Referenced by ilLDAPSettingsGUI\__construct(), delete(), read(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
Definition at line 256 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), isGroupMember(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
Definition at line 272 of file class.ilLDAPRoleAssignmentRule.php.
References $type.
Referenced by conditionToString(), create(), isPluginActive(), matches(), update(), and validate().
Here is the caller graph for this function:
|
static |
Check if there any rule for updates.
Definition at line 72 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 359 of file class.ilLDAPRoleAssignmentRule.php.
References $add_on_update.
Referenced by create(), and update().
Here is the caller graph for this function:
|
private |
Check if user is member of specific group.
| array | $a_user_data | user_data |
Definition at line 161 of file class.ilLDAPRoleAssignmentRule.php.
References Vendor\Package\$e, $res, $server, getDN(), ilLDAPServer\getInstanceByServerId(), getMemberAttribute(), getServerId(), isMemberAttributeDN(), ilLDAPServer\LDAP_SCOPE_BASE, and ILIAS\Repository\logger().
Referenced by matches().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
Definition at line 317 of file class.ilLDAPRoleAssignmentRule.php.
References $member_is_dn.
Referenced by create(), isGroupMember(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 384 of file class.ilLDAPRoleAssignmentRule.php.
References getType(), and TYPE_PLUGIN.
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 369 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::matches | ( | array | $a_user_data | ) |
Check if a rule matches.
Definition at line 90 of file class.ilLDAPRoleAssignmentRule.php.
References ilObject\_lookupTitle(), ilLDAPRoleAssignmentRules\callPlugin(), getAttributeName(), getAttributeValue(), getPluginId(), getRoleId(), getType(), isGroupMember(), ILIAS\Repository\logger(), TYPE_ATTRIBUTE, TYPE_GROUP, TYPE_PLUGIN, and wildcardCompare().
Here is the call graph for this function:
|
private |
Definition at line 499 of file class.ilLDAPRoleAssignmentRule.php.
References $res, enableAddOnUpdate(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setAttributeName(), setAttributeValue(), setDN(), setMemberAttribute(), setMemberIsDN(), setPluginId(), setRoleId(), setServerId(), and setType().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeName | ( | string | $a_name | ) |
set attribute name
Definition at line 325 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setAttributeValue | ( | string | $a_value | ) |
set attribute value
Definition at line 341 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setDN | ( | string | $a_dn | ) |
set dn
Definition at line 280 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberAttribute | ( | string | $a_attribute | ) |
Definition at line 293 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setMemberIsDN | ( | bool | $a_status | ) |
set member attribute is dn
Definition at line 309 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setPluginId | ( | int | $a_id | ) |
Definition at line 374 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setRoleId | ( | int | $a_role_id | ) |
set role id
| int | $a_role_id | role id of global role |
Definition at line 224 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setServerId | ( | int | $a_id | ) |
set server id
Definition at line 248 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::setType | ( | int | $a_type | ) |
set type
Definition at line 264 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
Here is the caller graph for this function:| ilLDAPRoleAssignmentRule::update | ( | ) |
Definition at line 433 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
Here is the call graph for this function:| ilLDAPRoleAssignmentRule::validate | ( | ) |
Definition at line 453 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getType(), TYPE_ATTRIBUTE, TYPE_GROUP, and TYPE_PLUGIN.
Here is the call graph for this function:
|
protected |
Definition at line 125 of file class.ilLDAPRoleAssignmentRule.php.
References Vendor\Package\$e, ILIAS\Repository\logger(), and ilAuthUtils\REGEX_DELIMITERS.
Referenced by matches().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 41 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isAddOnUpdateEnabled().
|
private |
Definition at line 45 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getAttributeName().
|
private |
Definition at line 44 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getAttributeValue().
|
private |
Definition at line 34 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 48 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getDN().
|
private |
Definition at line 35 of file class.ilLDAPRoleAssignmentRule.php.
|
staticprivate |
Definition at line 31 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 36 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 33 of file class.ilLDAPRoleAssignmentRule.php.
|
private |
Definition at line 47 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getMemberAttribute().
|
private |
Definition at line 46 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isMemberAttributeDN().
|
private |
Definition at line 43 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getPluginId().
|
private |
Definition at line 42 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by isRemoveOnUpdateEnabled().
|
private |
Definition at line 50 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getRoleId().
|
private |
Definition at line 38 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getRuleId().
|
private |
Definition at line 40 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getServerId().
|
private |
Definition at line 49 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by getType().
| const ilLDAPRoleAssignmentRule::TYPE_ATTRIBUTE = 2 |
Definition at line 28 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), matches(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 |
Definition at line 27 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), ilLDAPSettingsGUI\initFormRoleAssignments(), matches(), and validate().
| const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 |
Definition at line 29 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by conditionToString(), isPluginActive(), matches(), and validate().