浏览数据模型

在安装过程中安装的模块上的依赖,iTop的数据模型(也称为对象架构)可能会有所不同。通过单击“管理工具”菜单中的链接“数据模型”,可以查看iTop使用的当前数据模型。

1.png

使用中间手柄调整左右窗格的大小,或关闭左窗格。

选择类

在左侧的浏览器树状视图中,可以浏览分层类(按字母顺序)。根据显示粒度参数,每个条目都包含类的显示名称(标签参数),其内部OQLLPHP名称(代码参数)或两者(标签和代码参数)。

要在数据模型中快速找到指向特定类的链接,请使用上面的类列表中的autcomplete过滤器,然后在过滤器中按Enter或单击过滤器名称以显示该类的详细信息。

2.png

班级详情

选择类后,您将可以在不同的选项卡(属性,相关类,子类,生命周期和触发器)中查看有关该类的详细信息。

属性标签

在“属性”选项卡上,可以使用有关此类属性的多种信息(还依赖于显示粒度参数),并且可以通过将单元格悬停来显示更多信息。

属性标签定义:

标签描述悬停说明
属性代码属性内部代码,用于识别此类属性属性定义n链接到其他类
类型属性的数据类型类型定义`
允许值对此属性的可能值的限制如果此字段是过滤器,则显示原始OQL以获取这些值
更多信息有关数据库中定义的字段的更多信息如果提供默认的null,则显示此信息
来源定义此属性的基类(此信息也在第一列中以颜色代码显示) 

3.png

相关类别标签

在“相关类”选项卡上,您将能够看到当前类的属性,这些属性包括外键(指向另一个类的单个箭头),n-1键(指向当前类的属性的单个箭头),1-n和nn(双箭头)中间带有圆点)和其他类的外部键指向我们当前的类(指向当前类的单个箭头)。每个属性的来源在每个属性的左侧显示颜色代码(与属性选项卡的第一列相同)。

4.png

该图形视图允许单击不同的类名称,以浏览数据模型并查看当前类何时通过链接集(1-n或n-n)链接到另一个类。要获取有关此链接集的更多详细信息,请将点悬停在2个类之间。

5.png

在具有一个(或多个)层次结构键属性的类上,您可以在类矩形的顶部找到一个弓形箭头,在每个层次结构键属性旁边也可以找到一个弓形箭头。

6.png

生命周期选项卡

在生命周期选项卡上,如果已设置生命周期,将显示带有graphviz的图形构建以及状态,转换和属性选项(只读,强制或隐藏)之间有关不同关系的相关信息。

7.png

触发器选项卡

显示该类的生命周期图和一些相关信息。

原文:https://www.itophub.io/wiki/page?id=2_6_0%3Aadmin%3Abrowsing_the_data_model


Browsing the Data Model

Depending on the modules installed during the setup, the data model of iTop (also called the objects schema) can vary. You can view the current data model used by iTop by clicking on the link “Data Model” in the “Admin Tools” menu.

iTop Data Model viewer structure

Use the middle handle to resize left/right panes, or to close left pane.

Selecting a class

On the left explorer tree-view allows you to navigate through the hierarchy of classes (in alphabetical order). Each entry contains, according to the display granularity parameter, the display name of the class (label parameter), its internal OQL/PHP name (code parameter), or both (label and code parameter).

To quickly find the link to a specific class in the data model, use the autcomplete filter above classes list and press enter in the filter or click on a class name to display the details for this class.

iTop Data Model viewer class tree view filter

Class details

Once a class has been selected, you'll be able to see details about this class in different tabs (Attributes, Related classes, Child classes, Lifecycle and Triggers).

Attributes tab

On the Attributes tab, multiple informations about this class attributes are available (also depends on the display granularity parameter), and more information can be displayed by hovering cells.

Attributes tab definition:

TabDescriptionHover description
Attribute codeAttribute internal code used to idenfiy this class attributeAttribute definition/link to other class
TypeData type of this attributeType definition`
Allowed valuesRestriction on the possible values for this attributeIf this field is a filter, display the raw OQL to get these values
More infoMore information about the field defined in the databaseIf a default null is provided, display this information
OriginThe base class in which this attribute is defined (This information is also shown in the first column with a color code) 

iTop Data Model viewer class details on the attribute tab

Related classes tab

On the Related classes tab you'll be able to see the curent classes attributes that are external key (single arrow pointing another class), n-1 key (single arrow pointing to current class attribute), 1-n & n-n (double arrow with dot in the middle) and other classes external key pointing to our current class (single arrow pointing to current class). The origin of each attributes is shown with a color code (same one as Attribute tabs' first column) on the left of each attribute

iTop Data Model viewer class details on the attribute tab

This graphical view allows to click on different class names in order to navigate through the datamodel and to see when the current class is linked to another class through a linkset (1-n or n-n). To get more details about this linkset, hover the dot between 2 classes.

iTop Data Model viewer class details on the attribute tab

On classes with one (or more) hierarical key attribute, you can find a bowed arrow on top of the class rectangle and also a bowed arrow next to each hierarical key attribute.

iTop Data Model viewer class details on the attribute tab

Lifecycle tab

On the Lifecycle tab, if a lifecycle has been set up, a graph build with graphviz will be displayed along with related information about different relationship between states, transitions and attributes options (Read-only, mandatory or hidden).

iTop Data Model viewer class details on the attribute tab

Triggers tab

Displays the lifecycle graph for the class and some related information.

标签:
由 superadmin 在 2020/08/25, 16:29 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司