ILIAS
release_8 Revision v8.19
|
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().
|
static |
Definition at line 64 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\confirmDeleteRules(), ilLDAPSettingsGUI\deleteRules(), ilLDAPSettingsGUI\editRoleAssignment(), ilLDAPRoleAssignmentRules\getAssignmentsForCreation(), ilLDAPRoleAssignmentRules\getAssignmentsForUpdate(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), and ilLDAPSettingsGUI\roleAssignments().
|
static |
Get all rules.
Definition at line 180 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPServer\delete(), ilLDAPSettingsGUI\getRoleAssignmentTable(), and ilLDAPSettingsGUI\roleAssignments().
ilLDAPRoleAssignmentRule::conditionToString | ( | ) |
Definition at line 367 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getPluginId(), getType(), and ILIAS\Repository\lng().
Referenced by ilLDAPSettingsGUI\confirmDeleteRules().
ilLDAPRoleAssignmentRule::create | ( | ) |
Definition at line 385 of file class.ilLDAPRoleAssignmentRule.php.
References $query, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::delete | ( | ) |
Definition at line 468 of file class.ilLDAPRoleAssignmentRule.php.
References $query, and getRuleId().
Referenced by ilLDAPSettingsGUI\deleteRules().
ilLDAPRoleAssignmentRule::enableAddOnUpdate | ( | bool | $a_status | ) |
Definition at line 332 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::enableRemoveOnUpdate | ( | bool | $a_status | ) |
Definition at line 342 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::getAttributeName | ( | ) |
get attribute name
Definition at line 311 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_name.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getAttributeValue | ( | ) |
get atrtibute value
Definition at line 327 of file class.ilLDAPRoleAssignmentRule.php.
References $attribute_value.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getDN | ( | ) |
get dn
Definition at line 266 of file class.ilLDAPRoleAssignmentRule.php.
References $dn.
Referenced by conditionToString(), create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getMemberAttribute | ( | ) |
get attribute
Definition at line 279 of file class.ilLDAPRoleAssignmentRule.php.
References $member_attribute.
Referenced by create(), isGroupMember(), update(), and validate().
ilLDAPRoleAssignmentRule::getPluginId | ( | ) |
Definition at line 357 of file class.ilLDAPRoleAssignmentRule.php.
References $plugin_id.
Referenced by conditionToString(), create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getRoleId | ( | ) |
get role id
Definition at line 210 of file class.ilLDAPRoleAssignmentRule.php.
References $role_id.
Referenced by create(), matches(), update(), and validate().
ilLDAPRoleAssignmentRule::getRuleId | ( | ) |
ilLDAPRoleAssignmentRule::getServerId | ( | ) |
get server id
Definition at line 234 of file class.ilLDAPRoleAssignmentRule.php.
References $server_id.
Referenced by create(), isGroupMember(), and update().
ilLDAPRoleAssignmentRule::getType | ( | ) |
getType
Definition at line 250 of file class.ilLDAPRoleAssignmentRule.php.
References $type.
Referenced by conditionToString(), create(), isPluginActive(), matches(), update(), and validate().
|
static |
Check if there any rule for updates.
Definition at line 72 of file class.ilLDAPRoleAssignmentRule.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
ilLDAPRoleAssignmentRule::isAddOnUpdateEnabled | ( | ) |
Definition at line 337 of file class.ilLDAPRoleAssignmentRule.php.
References $add_on_update.
Referenced by create(), and update().
|
private |
Check if user is member of specific group.
array | $a_user_data | user_data |
Definition at line 139 of file class.ilLDAPRoleAssignmentRule.php.
References Vendor\Package\$e, $query, $res, $server, getDN(), ilLDAPServer\getInstanceByServerId(), getMemberAttribute(), getServerId(), isMemberAttributeDN(), ilLDAPServer\LDAP_SCOPE_BASE, and ILIAS\Repository\logger().
Referenced by matches().
ilLDAPRoleAssignmentRule::isMemberAttributeDN | ( | ) |
is member attribute dn
Definition at line 295 of file class.ilLDAPRoleAssignmentRule.php.
References $member_is_dn.
Referenced by create(), isGroupMember(), and update().
ilLDAPRoleAssignmentRule::isPluginActive | ( | ) |
Definition at line 362 of file class.ilLDAPRoleAssignmentRule.php.
References getType().
ilLDAPRoleAssignmentRule::isRemoveOnUpdateEnabled | ( | ) |
Definition at line 347 of file class.ilLDAPRoleAssignmentRule.php.
References $remove_on_update.
Referenced by create(), and update().
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(), and wildcardCompare().
|
private |
Definition at line 477 of file class.ilLDAPRoleAssignmentRule.php.
References $query, $res, enableAddOnUpdate(), enableRemoveOnUpdate(), ilDBConstants\FETCHMODE_OBJECT, getRuleId(), setAttributeName(), setAttributeValue(), setDN(), setMemberAttribute(), setMemberIsDN(), setPluginId(), setRoleId(), setServerId(), and setType().
Referenced by __construct().
ilLDAPRoleAssignmentRule::setAttributeName | ( | string | $a_name | ) |
set attribute name
Definition at line 303 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setAttributeValue | ( | string | $a_value | ) |
set attribute value
Definition at line 319 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setDN | ( | string | $a_dn | ) |
set dn
Definition at line 258 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberAttribute | ( | string | $a_attribute | ) |
Definition at line 271 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setMemberIsDN | ( | bool | $a_status | ) |
set member attribute is dn
Definition at line 287 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setPluginId | ( | int | $a_id | ) |
Definition at line 352 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setRoleId | ( | int | $a_role_id | ) |
set role id
int | $a_role_id | role id of global role |
Definition at line 202 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setServerId | ( | int | $a_id | ) |
set server id
Definition at line 226 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::setType | ( | int | $a_type | ) |
set type
Definition at line 242 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by read().
ilLDAPRoleAssignmentRule::update | ( | ) |
Definition at line 411 of file class.ilLDAPRoleAssignmentRule.php.
References $query, getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), getRuleId(), getServerId(), getType(), isAddOnUpdateEnabled(), isMemberAttributeDN(), and isRemoveOnUpdateEnabled().
ilLDAPRoleAssignmentRule::validate | ( | ) |
Definition at line 431 of file class.ilLDAPRoleAssignmentRule.php.
References getAttributeName(), getAttributeValue(), getDN(), getMemberAttribute(), getPluginId(), getRoleId(), and getType().
|
protected |
Definition at line 126 of file class.ilLDAPRoleAssignmentRule.php.
References ILIAS\Repository\logger().
Referenced by matches().
|
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 ilLDAPSettingsGUI\initFormRoleAssignments(), ilLDAPSettingsGUI\loadRoleAssignmentRule(), and ilLDAPRoleAssignmentTableGUI\parse().
const ilLDAPRoleAssignmentRule::TYPE_GROUP = 1 |
Definition at line 27 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPSettingsGUI\initFormRoleAssignments(), and ilLDAPRoleAssignmentTableGUI\parse().
const ilLDAPRoleAssignmentRule::TYPE_PLUGIN = 3 |
Definition at line 29 of file class.ilLDAPRoleAssignmentRule.php.
Referenced by ilLDAPRoleAssignmentTableGUI\parse().