首页 / base / oaHierGroupDef

oaHierGroupDef

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaHierGroupDefoapy 中可用,可通过 _base 模块访问。

本页汇总 oaHierGroupDef 当前在 oapy 中可用的 Python 接口。

详细说明

This class defines a group that permits other (nested) groups as members。 The nested groups can be the same type or different。 The oaGroupDefArray is used to create a list of group definitions for the group types that can be members of a group defined as an oaHierGroupDef type。

方法总览

状态 Python 调用
obj.isRecursive()
obj.getValidGroupTypes(validGroupTypes)
_base.oaHierGroupDef.create(name, validTypes, validDatabases)
_base.oaHierGroupDef.create(name, validTypes, validDatabases, validGroupTypes, recursive=false)

方法说明

obj.isRecursive()

绑定状态: 已绑定

Python 调用: obj.isRecursive()

This function returns true if groups associated with this definition can include other groups that also are associated with this definition。

Python 示例

from oapy._oa import _base

# assume obj is a oaHierGroupDef
obj.isRecursive()

obj.getValidGroupTypes(validGroupTypes)

绑定状态: 已绑定

Python 调用: obj.getValidGroupTypes(validGroupTypes)

This function returns the set of valid group types associated with this definition in the specified oaGroupDefArray 。 An empty array implies that all group types are valid。

参数

  • validGroupTypes: An array of the returned valid group types associated with this definition。

Python 示例

from oapy._oa import _base

# assume obj is a oaHierGroupDef
obj.getValidGroupTypes(validGroupTypes)

_base.oaHierGroupDef.create(name, validTypes, validDatabases)

绑定状态: 已绑定

Python 调用: _base.oaHierGroupDef.create(name, validTypes, validDatabases)

This function creates a new hierarchical group definition with the specified attributes。

参数

  • name: The name of this group definition。
  • validTypes: The valid managed object types for this group definition。
  • validDatabases: The databases that a group with this definition can exist in。
  • validGroupTypes: The types of nested groups permitted by this definition。
  • recursive: If true, permits nested group members to be associated with this same definition。

异常

  • oacObjectDefExists

Python 示例

from oapy._oa import _base

_base.oaHierGroupDef.create(name, validTypes, validDatabases)

_base.oaHierGroupDef.create(name, validTypes, validDatabases, validGroupTypes, recursive=false)

绑定状态: 已绑定

Python 调用: _base.oaHierGroupDef.create(name, validTypes, validDatabases, validGroupTypes, recursive=false)

This function creates a new hierarchical group definition with the specified attributes。 All groups are valid members of groups that are associated with this definiton。

参数

  • name: The name of this group definition。
  • validTypes: The valid managed object types for this group definition。
  • validDatabases: The databases that a group with this definition can exist in。

异常

  • oacObjectDefExists

Python 示例

from oapy._oa import _base

_base.oaHierGroupDef.create(name, validTypes, validDatabases, validGroupTypes, recursive=false)