ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
ilSoapUserAdministration () | |
login ($client, $username, $password) | |
loginCAS ($client, $PT, $username) | |
loginLDAP ($client, $username, $password) | |
logout ($sid) | |
lookupUser ($sid, $user_name) | |
getUser ($sid, $user_id) | |
updateUser ($sid, $user_data) | |
updatePassword ($sid, $user_id, $new_password) | |
addUser ($sid, $user_data, $global_role_id) | |
deleteUser ($sid, $user_id) | |
__validateUserData (&$user_data, $check_complete=true) | |
__setUserData (&$user_obj, &$user_data) | |
__readUserData (&$usr_obj) | |
__substituteUserData ($user_old, $user_new) | |
importUsers ($sid, $folder_id, $usr_xml, $conflict_rule, $send_account_mail) | |
define ("IL_FAIL_ON_CONFLICT", 1); define ("IL_UPDATE_ON_CONFLICT", 2); define ("IL_IGNORE_ON_CONFLICT", 3); | |
getUsersForContainer ($sid, $ref_id, $attachRoles, $active) | |
return list of users following dtd users_3_7 | |
getUserForRole ($sid, $role_id, $attachRoles, $active) | |
__getImportProtocolAsXML ($a_array) | |
Create XML ResultSet. | |
__getUserMappingAsXML ($a_array) | |
return user mapping as xml | |
searchUser ($sid, $a_keyfields, $query_operator, $a_keyvalues, $attach_roles, $active) | |
return user xml following dtd 3.7 | |
__buildSearchQuery ($a_keyfields, $queryOperator, $a_keyvalues) | |
create search term according to parameters | |
getUserXML ($sid, $a_user_ids, $attach_roles) | |
return user xmls for given user ids (csv separated ids) as xml based on usr dtd. | |
hasNewMail ($sid) | |
Public Member Functions inherited from ilSoapAdministration | |
ilSoapAdministration ($use_nusoap=true) | |
__checkSession ($sid) | |
initErrorWriter () | |
Overwrite error handler. | |
__explodeSid ($sid) | |
__setMessage ($a_str) | |
__getMessage () | |
__appendMessage ($a_str) | |
__initAuthenticationObject ($a_auth_mode=AUTH_LOCAL) | |
__raiseError ($a_message, $a_code) | |
getNIC ($sid) | |
get client information from current as xml result set | |
isFault ($object) | |
checkObjectAccess ($ref_id, $expected_type, $permission, $returnObject=false) | |
check access for ref id: expected type, permission, return object instance if returnobject is true | |
getInstallationInfoXML () | |
getClientInfoXML ($clientid) |
Protected Member Functions | |
isPermittedRole ($a_folder, $a_role) | |
check if assignment is allowed |
Additional Inherited Members | |
Static Public Member Functions inherited from ilSoapAdministration | |
static | return_bytes ($val) |
calculate bytes from K,M,G modifiers e.g: 8M = 8 * 1024 * 1024 bytes | |
Data Fields inherited from ilSoapAdministration | |
$sauth = null | |
$error_method = null |
Definition at line 35 of file class.ilSoapUserAdministration.php.
ilSoapUserAdministration::__buildSearchQuery | ( | $a_keyfields, | |
$queryOperator, | |||
$a_keyvalues | |||
) |
create search term according to parameters
array | of string $a_keyfields | |
string | $queryOperator | |
array | of string $a_keyValues |
Definition at line 1234 of file class.ilSoapUserAdministration.php.
Referenced by searchUser().
ilSoapUserAdministration::__getImportProtocolAsXML | ( | $a_array | ) |
Create XML ResultSet.
Definition at line 1080 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__raiseError().
Referenced by importUsers().
ilSoapUserAdministration::__getUserMappingAsXML | ( | $a_array | ) |
return user mapping as xml
array | (user_id => login) $a_array |
Definition at line 1119 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__raiseError().
Referenced by importUsers().
ilSoapUserAdministration::__readUserData | ( | & | $usr_obj | ) |
Definition at line 577 of file class.ilSoapUserAdministration.php.
Referenced by getUser(), and updateUser().
ilSoapUserAdministration::__setUserData | ( | & | $user_obj, |
& | $user_data | ||
) |
Definition at line 533 of file class.ilSoapUserAdministration.php.
References USER_FOLDER_ID.
Referenced by addUser(), and updateUser().
ilSoapUserAdministration::__substituteUserData | ( | $user_old, | |
$user_new | |||
) |
Definition at line 621 of file class.ilSoapUserAdministration.php.
Referenced by updateUser().
ilSoapUserAdministration::__validateUserData | ( | & | $user_data, |
$check_complete = true |
|||
) |
Definition at line 394 of file class.ilSoapUserAdministration.php.
References $ilLog, $lng, $ok, ilSoapAdministration\__appendMessage(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__setMessage(), ilAuthUtils\_getAuthMode(), ilObjUser\_loginExists(), ilObject\_lookupType(), ilAuthUtils\_needsExternalAccountByAuthMode(), ilUtil\is_email(), ilUtil\isLogin(), and ilUtil\isPassword().
Referenced by addUser(), and updateUser().
ilSoapUserAdministration::addUser | ( | $sid, | |
$user_data, | |||
$global_role_id | |||
) |
Definition at line 265 of file class.ilSoapUserAdministration.php.
References $ilLog, $ilSetting, $new_user, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__raiseError(), __setUserData(), __validateUserData(), IL_PASSWD_MD5, IL_PASSWD_PLAIN, and USER_FOLDER_ID.
ilSoapUserAdministration::deleteUser | ( | $sid, | |
$user_id | |||
) |
Definition at line 349 of file class.ilSoapUserAdministration.php.
References $log, ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUser | ( | $sid, | |
$user_id | |||
) |
Definition at line 163 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), __readUserData(), ilObjectFactory\getInstanceByObjId(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUserForRole | ( | $sid, | |
$role_id, | |||
$attachRoles, | |||
$active | |||
) |
Definition at line 1016 of file class.ilSoapUserAdministration.php.
References $data, ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilPrivacySettings\_getInstance(), and ilObjUser\_getUsersForRole().
ilSoapUserAdministration::getUsersForContainer | ( | $sid, | |
$ref_id, | |||
$attachRoles, | |||
$active | |||
) |
return list of users following dtd users_3_7
Definition at line 936 of file class.ilSoapUserAdministration.php.
References $data, $ref_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilObjUser\_getUsersForFolder(), ilObjUser\_getUsersForGroup(), ilObjUser\_getUsersForIds(), ilObject\_lookupObjId(), ilSoapAdministration\checkObjectAccess(), ilSoapAdministration\isFault(), and USER_FOLDER_ID.
ilSoapUserAdministration::getUserXML | ( | $sid, | |
$a_user_ids, | |||
$attach_roles | |||
) |
return user xmls for given user ids (csv separated ids) as xml based on usr dtd.
string | sid session id |
string | a_userids array of user ids, may be numeric or ilias ids |
boolean | attachRoles if true, role assignments will be attached, nothing will be done otherwise |
Definition at line 1271 of file class.ilSoapUserAdministration.php.
References $data, ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilObjUser\_getUserData(), and USER_FOLDER_ID.
ilSoapUserAdministration::hasNewMail | ( | $sid | ) |
Definition at line 1304 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), and ilMailbox\hasNewMail().
ilSoapUserAdministration::ilSoapUserAdministration | ( | ) |
Definition at line 37 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\ilSoapAdministration().
ilSoapUserAdministration::importUsers | ( | $sid, | |
$folder_id, | |||
$usr_xml, | |||
$conflict_rule, | |||
$send_account_mail | |||
) |
define ("IL_FAIL_ON_CONFLICT", 1); define ("IL_UPDATE_ON_CONFLICT", 2); define ("IL_IGNORE_ON_CONFLICT", 3);
Definition at line 636 of file class.ilSoapUserAdministration.php.
References $ilLog, $lng, ilSoapAdministration\__checkSession(), ilUtil\__extractId(), __getImportProtocolAsXML(), __getUserMappingAsXML(), ilSoapAdministration\__raiseError(), ilObjRole\_getAssignUsersStatus(), ilObject\_lookupTitle(), domxml_open_mem(), ilObjectFactory\getInstanceByRefId(), IL_EXTRACT_ROLES, IL_FAIL_ON_CONFLICT, IL_IGNORE_ON_CONFLICT, IL_IMPORT_FAILURE, IL_IMPORT_SUCCESS, IL_IMPORT_WARNING, IL_UPDATE_ON_CONFLICT, IL_USER_IMPORT, IL_USER_MAPPING_ID, IL_VERIFY, isPermittedRole(), and USER_FOLDER_ID.
|
protected |
check if assignment is allowed
protected
@return |
Definition at line 838 of file class.ilSoapUserAdministration.php.
References $ilLog, $location, ilObjRole\_getAssignUsersStatus(), and USER_FOLDER_ID.
Referenced by importUsers().
ilSoapUserAdministration::login | ( | $client, | |
$username, | |||
$password | |||
) |
Definition at line 44 of file class.ilSoapUserAdministration.php.
References $client, ilSoapAdministration\__initAuthenticationObject(), ilSoapAdministration\__raiseError(), and IL_AUTH_MD5.
ilSoapUserAdministration::loginCAS | ( | $client, | |
$PT, | |||
$username | |||
) |
Definition at line 80 of file class.ilSoapUserAdministration.php.
References $client, ilSoapAdministration\__initAuthenticationObject(), ilSoapAdministration\__raiseError(), and AUTH_CAS.
ilSoapUserAdministration::loginLDAP | ( | $client, | |
$username, | |||
$password | |||
) |
Definition at line 101 of file class.ilSoapUserAdministration.php.
References $client, ilSoapAdministration\__initAuthenticationObject(), ilSoapAdministration\__raiseError(), and AUTH_LDAP.
ilSoapUserAdministration::logout | ( | $sid | ) |
Definition at line 119 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__checkSession(), and ilSoapAdministration\__raiseError().
ilSoapUserAdministration::lookupUser | ( | $sid, | |
$user_name | |||
) |
Definition at line 134 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilObjUser\getUserIdByLogin(), and USER_FOLDER_ID.
ilSoapUserAdministration::searchUser | ( | $sid, | |
$a_keyfields, | |||
$query_operator, | |||
$a_keyvalues, | |||
$attach_roles, | |||
$active | |||
) |
return user xml following dtd 3.7
String | $sid | session id |
String | array $a_keyfields array of user fieldname, following dtd 3.7 | |
String | $queryOperator | any logical operator |
String | array $a_keyValues values separated by space, at least 3 chars per search term |
Definition at line 1158 of file class.ilSoapUserAdministration.php.
References $data, __buildSearchQuery(), ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), DB_FETCHMODE_ASSOC, and USER_FOLDER_ID.
ilSoapUserAdministration::updatePassword | ( | $sid, | |
$user_id, | |||
$new_password | |||
) |
Definition at line 239 of file class.ilSoapUserAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), and USER_FOLDER_ID.
ilSoapUserAdministration::updateUser | ( | $sid, | |
$user_data | |||
) |
Definition at line 189 of file class.ilSoapUserAdministration.php.
References $log, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__raiseError(), __readUserData(), __setUserData(), __substituteUserData(), __validateUserData(), ilObjectFactory\getInstanceByObjId(), IL_PASSWD_MD5, IL_PASSWD_PLAIN, and USER_FOLDER_ID.