ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
ilSoapRBACAdministration () | |
deleteRole ($sid, $role_id) | |
addUserRoleEntry ($sid, $user_id, $role_id) | |
deleteUserRoleEntry ($sid, $user_id, $role_id) | |
getOperations ($sid) | |
revokePermissions ($sid, $ref_id, $role_id) | |
grantPermissions ($sid, $ref_id, $role_id, $permissions) | |
getLocalRoles ($sid, $ref_id) | |
getUserRoles ($sid, $user_id) | |
addRole ($sid, $target_id, $role_xml) | |
addRoleFromTemplate ($sid, $target_id, $role_xml, $template_id) | |
getObjectTreeOperations ($sid, $ref_id, $user_id) | |
getRoles ($sid, $role_type, $id) | |
get roles for a specific type and id | |
searchRoles ($sid, $key, $combination, $role_type) | |
search for roles. | |
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) | |
__setMessageCode ($a_code) | |
__getMessageCode () | |
initAuth ($sid) | |
initIlias () | |
__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) |
Private Member Functions | |
parseUserID ($id, $role_type) |
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 | |
Protected Attributes inherited from ilSoapAdministration | |
$soap_check = true |
Definition at line 35 of file class.ilSoapRBACAdministration.php.
ilSoapRBACAdministration::addRole | ( | $sid, | |
$target_id, | |||
$role_xml | |||
) |
Definition at line 354 of file class.ilSoapRBACAdministration.php.
References $target_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObject\_isInTrash(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::addRoleFromTemplate | ( | $sid, | |
$target_id, | |||
$role_xml, | |||
$template_id | |||
) |
Definition at line 429 of file class.ilSoapRBACAdministration.php.
References $target_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObject\_isInTrash(), ilObject\_lookupType(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::addUserRoleEntry | ( | $sid, | |
$user_id, | |||
$role_id | |||
) |
Definition at line 86 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::deleteRole | ( | $sid, | |
$role_id | |||
) |
Definition at line 43 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::deleteUserRoleEntry | ( | $sid, | |
$user_id, | |||
$role_id | |||
) |
Definition at line 122 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::getLocalRoles | ( | $sid, | |
$ref_id | |||
) |
Definition at line 265 of file class.ilSoapRBACAdministration.php.
References $ref_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::getObjectTreeOperations | ( | $sid, | |
$ref_id, | |||
$user_id | |||
) |
Definition at line 528 of file class.ilSoapRBACAdministration.php.
References $data, $ref_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObject\_isInTrash(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::getOperations | ( | $sid | ) |
Definition at line 159 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::getRoles | ( | $sid, | |
$role_type, | |||
$id | |||
) |
get roles for a specific type and id
String | $sid | session id |
String | $role_type | can be empty which means "local & global", "local", "global", "user", "user_login" or "template" |
Mixed | $id | can be -1 for system role folder, can be ref id in case for role type "local/global/template", can be user id with "user" or login in case for role type "user_login" |
Definition at line 602 of file class.ilSoapRBACAdministration.php.
References $ilDB, $query, $type, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), DB_FETCHMODE_ASSOC, elseif(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), and parseUserID().
ilSoapRBACAdministration::getUserRoles | ( | $sid, | |
$user_id | |||
) |
Definition at line 315 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::grantPermissions | ( | $sid, | |
$ref_id, | |||
$role_id, | |||
$permissions | |||
) |
Definition at line 218 of file class.ilSoapRBACAdministration.php.
References $ref_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::ilSoapRBACAdministration | ( | ) |
Definition at line 37 of file class.ilSoapRBACAdministration.php.
References ilSoapAdministration\ilSoapAdministration().
|
private |
Definition at line 810 of file class.ilSoapRBACAdministration.php.
References ilUtil\__extractId(), ilSoapAdministration\__raiseError(), ilObjUser\_lookupId(), and elseif().
Referenced by getRoles().
ilSoapRBACAdministration::revokePermissions | ( | $sid, | |
$ref_id, | |||
$role_id | |||
) |
Definition at line 181 of file class.ilSoapRBACAdministration.php.
References $ref_id, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), ilSoapAdministration\initAuth(), and ilSoapAdministration\initIlias().
ilSoapRBACAdministration::searchRoles | ( | $sid, | |
$key, | |||
$combination, | |||
$role_type | |||
) |
search for roles.
String | $sid | |
String | $searchterms | comma separated search terms |
String | $operator | must be or or and |
String | $role_type | can be empty which means "local & global", "local", "global", "user" = roles of user, "user_login" or "template" |
Definition at line 738 of file class.ilSoapRBACAdministration.php.
References $ilDB, $key, $res, ilSoapAdministration\__checkSession(), ilSoapAdministration\__getMessage(), ilSoapAdministration\__getMessageCode(), ilSoapAdministration\__raiseError(), ilObjectSearchFactory\_getObjectSearchInstance(), ilSoapAdministration\initAuth(), ilSoapAdministration\initIlias(), QP_COMBINATION_AND, and QP_COMBINATION_OR.