RoleAssignmentAttribute.getName()
此方法返回分配属性的名称。
- 可用性
- IBM® Security Identity Manager 7.0。
- 概要
RoleAssignmentAttribute.getName()- 自变量
- 无
- 返回
- 分配属性的名称。
- 描述
- 返回角色上定义的分配属性的名称。
- 用法
var role = new Role(roleDN); //get assignment attributes of the role var attributeList = role.getAllAssignmentAttributes(); if (attributeList.length == 0) { Enrole.log("script", "No assignment attribute for this role: " + role.name); return; } // print out role assignment attribute name. for (var i=0; i < attributeList.length; i++) { var roleAtr = attributeList[i]; Enrole.log("script","attribute name-----: "+ roleAtr.getName()); }