获取该组下的子组。

getChildGroups()

参数

返回值

ScriptGroup 对象的数组。

代码例

var shortName = "MY_GROUP";
var group = groups.getGroup(shortName);

// now find child groups
model.childGroups = group.getChildGroups();

getChildGroups(maxItems, skipCount)

参数

  • maxItems
    一个整数,表示结果中要返回的最大项数。如果设置为 -1 将返回所有结果。
  • skipCount
    一个整数,表示要跳过的项目数。

返回值

ScriptGroup 对象的数组。

代码例

var shortName = "MY_GROUP";
var group = groups.getGroup(shortName);

// now find child users
var maxItems = -1; // return all results
var skipCount = 0; // skip 0 results
model.childGroups = group.getChildGroups(maxItems, skipCount);

getChildGroups(paging, sortBy)

参数

  • paging
    一个 ScriptPagingDetails 对象。
  • sortBy
    对结果进行排序的属性。

返回值

ScriptGroup 对象的数组。

代码例

var shortName = "MY_GROUP";
var group = groups.getGroup(shortName);

// now find child users
var paging = utils.createPaging(-1, 0);
var sortBy = "displayName";
model.childGroups = group.getChildGroups(paging, sortBy);
文档更新时间: 2019-07-09 20:16   作者:凌云文档