OrgUtil工具类

com.justep.opm.OrgUtil
  • 组织工具类

OrgUtil.OGN

功能:组织单元的类型为机构

OrgUtil.DPT

功能:组织单元的类型为部门

OrgUtil.POS

功能:组织单元的类型为岗位

OrgUtil.PSM

功能:组织单元的类型为人员

getParent(OrgNode org)

功能:获取组织节点的父节点
参数: 
    org:组织节点
返回:
    类型:OgnNode

getParentByType(OrgNode org, String type)

功能:根据类型获取组织节点的父节点
参数: 
    org:组织节点
    type:类型
返回:
    类型:OgnNode

getNameOfFile(String path)

功能:获取文件名
参数: 
    path:路径
返回:
    类型:String
参考:
    getNameOfFile("/起步软件/总经理岗位/李立")
    //返回李立

getIdByFid(String fid)

功能:根据全路径ID获取组织节点的ID
参数: 
    fid:全路径ID
返回:
    类型:OgnNode

getPathOfFile(String path)

功能:获取文件的路径
参数: 
    path:全路径
返回:
    类型:String
参考:
    getPathOfFile("/起步软件/总经理岗位/李立")
    //返回/起步软件/总经理岗位/

results matching ""

    No results matching ""

    results matching ""

      No results matching ""