检索AAI属性
通过使用
hasAttribute("[AttrName]","[string]") or
isInAttribute("[AttrName]","[substring]").
语法你可以检索 AAI属性.
[AttrName] 是一个属性名,你可在下列的表中找到也可以在
To be translated (列
LDAP names) 在第5页
[string] 是名字[AttrName] 的一个 AAI 属性值
[substring]是[string] 的任何一部分
你可以在
To be translated appendix20页里找到可能属性值的列表的链接.
例子: John Doe
变量 [AttrName] |
采样值 [string] |
说明 |
| swissEduPersonUniqueID |
845938727494@unizh.ch |
明确个人的ID数 |
| surname |
Doe |
姓 |
| givenName |
John |
名 |
| mail |
john.doe@unizh.ch |
首选的 e-mail地址 |
| swissEduPersonHomeOrganization |
unizh.ch |
组织/大学主页 |
| swissEduPersonHomeOrganizationType |
university |
组织主页的类型 |
| eduPersonAffiliation |
student |
联系 |
| swissEduPersonStudyBranch1 |
4 |
第1级学习区域 |
| swissEduPersonStudyBranch2 |
42 (=自然科学) |
第2级学习区域 |
| swissEduPersonStudyBranch3 |
4600 (=化学) |
第3级学习区域 |
| swissEduPersonStudyLevel |
15 |
学习进程的说明 |
| eduPersonEntitlement |
http://vam.unizh.ch/surgery |
资源的访问权限 |
| employeeNumber |
01-234-567 |
注册号 (仅仅用于某一特定大学) |
| organizationalUnit |
1 |
唯一的组织的主页.例如:全体教员 (仅仅用于职员) |
从这个例子提到上面 John Doe (查看表格) 相应的索引将会被独自的生成
| isInAttribute("surname","oe") |
true |
| hasAttribute("swissEduPersonStudyBranch3","4600") |
true |
| hasAttribute("swissEduPersonStudyBranch3","1200") |
false |
| isInAttribute("eduPersonEntitlement","http://vam.unizh.ch") |
true |
| isInAttribute("eduPersonEntitlement","http://vam.unizh.ch/ophthalmology") |
false |
| hasAttribute("employeeNumber","01-234-567") |
true |