| Modifiers | Name | Description |
|---|---|---|
static Integer |
aliasOverridingOrder |
| Type | Name and description |
|---|---|
static void |
bootStrapInit() |
static void |
clearCache() |
String |
list(List employees, List defaultEmployees, Map options) |
String |
list(List employees, List defaultEmployees, List fixedEmployees, Map options)根据员工列表获得组织机构及员工的JSON串(缓存osm) |
String |
tree(List<Organization> orgs, Integer type, String employeeTypes, boolean rootContained, List defaultEmployees, Map options) |
String |
tree(Organization o, Integer type, String employeeTypes, boolean rootContained, List defaultEmployees, Map options) |
String |
tree(List employees, List defaultEmployees, Map options) |
String |
tree(List<Organization> orgs, Integer type, String employeeTypes, boolean rootContained, List defaultEmployees, List fixedEmployees, Map options)根据机构获得组织机构及员工的JSON串(缓存osm) |
String |
tree(Organization o, Integer type, String employeeTypes, boolean rootContained, List defaultEmployees, List fixedEmployees, Map options)根据机构获得组织机构及员工的JSON串(缓存osm) |
String |
tree(List employees, List defaultEmployees, List fixedEmployees, Map options)根据员工列表获得组织机构及员工的JSON串(缓存osm)--如果人数超过1000,则需要提前排序 |
String |
userTree(List<Organization> orgs, List defaultUsers, Map options)根据机构获得组织机构及用户的JSON串(缓存osm),包含一个没有关联员工的用户节点 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
根据员工列表获得组织机构及员工的JSON串(缓存osm)
employees - 员工列表;如果options.ei则为身份列表。此外这里可以传一个id列表进来,避免调用本方法前必须先获得所有的对象而损耗性能。defaultEmployees - 已被选中的员工列表(或其ID列表);如果options.ei则为身份列表options - 其他显示参数,包括:title=是否显示员工头衔、ecode=是否显示员工工号、ei=是否选择员工身份(默认是选择员工)options.find - 查询名称中包含根据机构获得组织机构及员工的JSON串(缓存osm)
orgs - 机构列表type - 返回员工还是机构、或者群组的列表,默认为1,即返回员工;2=机构,3=群组,4=用户,5=岗位employeeTypes - 表示员工性质的字符串或数字,若字符串则多值之间用逗号分隔,空则默认为"1,2,3",即受限员工以下;如果为0,则返回所有(ref: Employee.availableList)rootContained - 是否包含上面机构下的直属员工,包含则设为truedefaultEmployees - 已被选中的员工列表(或其ID列表);如果options.ei则为身份列表fixedEmployees - 已被选中、并且不允许修改或删除的员工列表(或其ID列表);如果options.ei则为身份列表options.title - 是否显示员工头衔options.ecode - 是否显示员工工号options.ei - 是否选择员工身份(默认是选择员工)options.department - 是否只显示部门、不显示下级单位(默认为否,即显示所有机构)options.group - 当type为1(返回员工)时是否显示群组节点(选员工时默认为真、选身份时默认为假)、options.disabled - 是否显示已禁用的员工/身份/用户options.deleted - 是否显示已逻辑删除的员工/用户(用户暂未实现)options.lazy - 是否延迟加载下级节点options.fragment - 是否仅返回需要的JSON片段(用于返回延迟加载的数据段)options.find - 查询名称中包含根据机构获得组织机构及员工的JSON串(缓存osm)
o - 机构type - 返回员工还是机构、或者群组的列表,默认为1,即返回员工;2=机构,3=群组,4=用户,5=岗位employeeTypes - 表示员工性质的字符串或数字,若字符串则多值之间用逗号分隔,空则默认为"1,2,3",即受限员工以下;如果为0,则返回所有(ref: Employee.availableList)rootContained - 是否包含上面机构下的直属员工,包含则设为truedefaultEmployees - 已被选中的员工列表(或其ID列表);如果options.ei则为身份列表options.title - 是否显示员工头衔options.ecode - 是否显示员工工号options.ei - 是否选择员工身份(默认是选择员工)options.department - 是否只显示部门、不显示下级单位(默认为否,即显示所有机构)options.group - 当type为1(返回员工)时是否显示群组节点(选员工时默认为真、选身份时默认为假)options.virtualLeader - 对一级单位,是否添加一个实际不存在的机构:如“公司领导”(默认为真)options.disabled - 是否显示已禁用的员工/身份/用户options.deleted - 是否显示已逻辑删除的员工/用户(用户暂未实现)options.lazy - 是否延迟加载下级节点options.fragment - 是否仅返回需要的JSON片段 (用于返回延迟加载的数据段)options.find - 查询名称中包含根据员工列表获得组织机构及员工的JSON串(缓存osm)--如果人数超过1000,则需要提前排序
employees - 员工列表;如果options.ei则为身份列表。此外这里可以传一个id列表进来,避免调用本方法前必须先获得所有的对象而损耗性能。defaultEmployees - 已被选中的员工列表(或其ID列表);如果options.ei则为身份列表options.title - 是否显示员工头衔options.ecode - 是否显示员工工号options.ei - 是否选择员工身份(默认是选择员工)options.find - 查询名称中包含根据机构获得组织机构及用户的JSON串(缓存osm),包含一个没有关联员工的用户节点
orgs - 机构列表,为空时取所有根机构defaultUsers - 已被选中的用户列表(或其ID列表),可以为空options - 其他显示参数,包括加载时的优化参数options.lazy - 是否延迟加载下级节点options.fragment - 是否仅返回需要的JSON片段(用于返回延迟加载的数据段)options.find - 查询名称中包含