CN101080077A - Maintenance method of device management tree and terminal device - Google Patents

Maintenance method of device management tree and terminal device Download PDF

Info

Publication number
CN101080077A
CN101080077A CNA2006100901554A CN200610090155A CN101080077A CN 101080077 A CN101080077 A CN 101080077A CN A2006100901554 A CNA2006100901554 A CN A2006100901554A CN 200610090155 A CN200610090155 A CN 200610090155A CN 101080077 A CN101080077 A CN 101080077A
Authority
CN
China
Prior art keywords
node
authority
device management
terminal device
maintenance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006100901554A
Other languages
Chinese (zh)
Other versions
CN101080077B (en
Inventor
柴晓前
何江水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006100901554A priority Critical patent/CN101080077B/en
Publication of CN101080077A publication Critical patent/CN101080077A/en
Application granted granted Critical
Publication of CN101080077B publication Critical patent/CN101080077B/en
Anticipated expiration legal-status Critical
Active legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种涉及OMA DM领域的设备管理树的维护方法,包括终端设备更新设备管理树中相应节点的权限控制列表;并在判断出更新后的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对该节点进行维护。本发明还公开了一种设备管理树的维护方法,包括终端设备遍历设备管理树中的节点;并在遍历到每个节点时执行:判断出遍历到的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对遍历到的该节点进行维护。本发明还公开了相应的终端设备。本发明可以避免垃圾节点或垃圾子树对终端设备处理性能及网络传输资源所造成的不良影响。

Figure 200610090155

The invention discloses a method for maintaining a device management tree in the field of OMA DM, which includes a terminal device updating the authority control list of a corresponding node in the device management tree; When there is no maintenance authority in the authority control list of each node between nodes, the node is maintained. The present invention also discloses a method for maintaining a device management tree, which includes traversing the nodes in the device management tree by the terminal device; When there is no maintenance authority in the authority control list of each node among the nodes, the traversed node is maintained. The invention also discloses the corresponding terminal equipment. The invention can avoid the bad influence caused by garbage nodes or garbage subtrees on the processing performance of terminal equipment and network transmission resources.

Figure 200610090155

Description

设备管理树的维护方法及终端设备Maintenance method of equipment management tree and terminal equipment

技术领域technical field

本发明涉及开放移动联盟(OMA,Open Mobile Alliance)设备管理(DM,Device Management)技术领域,尤其是涉及一种设备管理树的维护方法及其终端设备。The present invention relates to the technical field of Open Mobile Alliance (OMA, Open Mobile Alliance) device management (DM, Device Management), in particular to a method for maintaining a device management tree and a terminal device thereof.

背景技术Background technique

开放移动联盟设备管理(OMA DM,Open Mobile Alliance DeviceManagement)规范是一种管理、诊断及维护移动终端设备的技术,它通过空中下载(OTA,Over The Air)方式对终端设备进行管理,其中对终端设备的管理操作包括:对终端设备进行参数设置、固件更新、软件安装和升级以及故障诊断等。其中OMA DM规范所管理的移动终端设备包括手机终端、掌上电脑、笔记本电脑、嵌入式设备和车载系统等,同时不排除任何其它移动终端设备。The Open Mobile Alliance Device Management (OMA DM, Open Mobile Alliance Device Management) specification is a technology for managing, diagnosing and maintaining mobile terminal equipment. It manages terminal equipment through OTA (Over The Air). Device management operations include: parameter setting of terminal devices, firmware update, software installation and upgrade, and fault diagnosis. Among them, the mobile terminal devices managed by OMA DM specification include mobile phone terminals, handheld computers, notebook computers, embedded devices and vehicle systems, etc., while not excluding any other mobile terminal devices.

如图1所示,为现有DM规范的整体管理架构模型图,在该整体管理架构模型图中,终端设备上的设备管理代理(DM Agent)用于解释和执行DM服务器下发的各种管理命令;终端设备上存储的DM管理树可以被认为是一个设备管理服务器(DMS,DM Server)通过DM协议对终端设备进行管理的接口,该DM管理树中包括一套基本的管理对象(MO,Management Object),DMServer就是通过对DM管理树中各管理对象的管理操作而达到对终端设备资源进行控制的。其中DM Server操作DM管理树各节点的管理命令包括Get(获取命令)、Replace(替换命令)、Exec(执行命令)、Copy(复制命令)及Delete(删除命令)等。As shown in Figure 1, it is a model diagram of the overall management architecture of the existing DM specification. In the model diagram of the overall management architecture, the device management agent (DM Agent) on the terminal device is used to explain and execute various Management commands; the DM management tree stored on the terminal device can be considered as an interface for a device management server (DMS, DM Server) to manage the terminal device through the DM protocol. The DM management tree includes a set of basic management objects (MO , Management Object), DMServer controls terminal device resources through management operations on each management object in the DM management tree. Among them, the management commands for DM Server to operate each node of the DM management tree include Get (get command), Replace (replace command), Exec (execute command), Copy (copy command) and Delete (delete command).

如图2所示,为现有终端设备内管理树中各管理对象的结构状态示意图,每个终端设备的DM管理树必须有根节点,树上的各个子节点分为内部节点和叶子节点,如图2中的连接参数管理对象、设备信息管理对象等都属于内部节点,而设备ID、制造厂商、终端型号都属于叶子节点。管理树中的各节点包括永久节点(permanent nodes)和动态节点(dynamic nodes),其中永久节点是指设备管理服务器在运行期间不能生成和删除的节点,例如设备生产厂商在终端设备中内建的节点就属于永久节点;动态节点是指允许设备管理服务器在运行期间进行动态生成和删除的节点。As shown in Figure 2, it is a schematic diagram of the structural status of each management object in the management tree in the existing terminal equipment. The DM management tree of each terminal equipment must have a root node, and each child node on the tree is divided into internal nodes and leaf nodes. The connection parameter management objects and device information management objects in Figure 2 all belong to internal nodes, while the device ID, manufacturer, and terminal model all belong to leaf nodes. The nodes in the management tree include permanent nodes and dynamic nodes. The permanent nodes refer to the nodes that cannot be generated and deleted by the device management server during operation, such as the built-in nodes of the device manufacturer in the terminal device. A node is a permanent node; a dynamic node refers to a node that allows the device management server to be dynamically generated and deleted during operation.

OMA DM规范定义了一套设备管理树节点的属性值,用于对各节点进行描述,各属性值主要包括:权限控制列表(ACL,Access Control List)、类型(Type)、格式(Format)、名称(Name)、大小(Size)、标题(Title)、时间戳(TStamp)、节点值的多用途网际邮件扩充协议(MIME,Multipurpose InternetMail Extensions)类型等。其中对设备管理服务器操作管理树节点的权限控制是通过节点的ACL来实现的,在ACL中通过配置设备管理服务器标识来设置该设备管理服务器对此节点的操作权限;如果ACL描述中的某个命令没有使用设备管理服务器标识,而是使用了“*”标识,则认为此节点的此命令操作权限是开放给所有可通过认证的设备管理服务器的。例如下述的ACL表达式:The OMA DM specification defines a set of attribute values of device management tree nodes, which are used to describe each node. Each attribute value mainly includes: access control list (ACL, Access Control List), type (Type), format (Format), Name (Name), size (Size), title (Title), timestamp (TStamp), multipurpose Internet Mail Extensions (MIME, Multipurpose InternetMail Extensions) type of node value, etc. Among them, the authority control of the operation management tree node of the device management server is realized through the ACL of the node, and the operation authority of the device management server to this node is set by configuring the device management server ID in the ACL; if a certain item in the ACL description If the command does not use the device management server ID, but uses the "*" ID, it is considered that the command operation authority of this node is open to all authenticated device management servers. For example, the following ACL expression:

Add=ServerA&Delete=ServerA&Replace=ServerA+ServerB&Get=*Add=ServerA&Delete=ServerA&Replace=ServerA+ServerB&Get=*

表示设备管理服务器A对该ACL标识的节点具有Add、Delete和Replace权限,而设备管理服务器B对该ACL标识的节点具有Replace权限,任何通过认证的设备管理服务器对该ACL标识的节点都具有Get权限。其中ACL能够适配的操作命令包括:Add、Delete、Exec、Get和Replace操作命令。Indicates that the device management server A has Add, Delete and Replace permissions for the node identified by the ACL, and the device management server B has the Replace permission for the node identified by the ACL, and any authenticated device management server has the Get authority. The operation commands that the ACL can adapt to include: Add, Delete, Exec, Get and Replace operation commands.

如果设备管理树中某个节点的ACL为空,即节点的ACL表达式为ACL=,则认为该节点的操作权限可以继承父节点的操作权限。If the ACL of a certain node in the device management tree is empty, that is, the ACL expression of the node is ACL=, it is considered that the operation authority of the node can inherit the operation authority of the parent node.

如果某个节点的ACL中包含的某个操作权限只配置有一个ServerID,当需要取消该ServerID对应的设备管理服务器执行此操作权限时,就会将此ServerID删除,例如某个节点的ACL表达式如下:If an operation authority contained in the ACL of a node is configured with only one ServerID, the ServerID will be deleted when the device management server corresponding to the ServerID needs to cancel the operation permission, such as the ACL expression of a node as follows:

Replace=ServerA&Get=ServerA+ServerB;Replace=ServerA&Get=ServerA+ServerB;

则当取消ServerA的操作权限后该节点的ACL表达式将变为:Get=ServerB;Then when the operation authority of ServerA is cancelled, the ACL expression of this node will become: Get=ServerB;

如果取消所有设备管理服务器对此节点的所有操作权限,则该节点的ACL表达式将变为:ACL=。If all operation rights of all device management servers on this node are cancelled, the ACL expression of this node will become: ACL=.

为了使整个设备管理树可控,会为管理树的根节点分配一个初始的ACL,且配置这个ACL为:Add=*&Get=*,即表示所有通过认证的设备管理服务器都可以对管理树的根节点执行Add操作和Get操作。将根节点的ACL中的所有权限删除后,根节点的ACL将回复到初始设置状态或将根节点的所有操作权限设置为“*”。In order to make the entire device management tree controllable, an initial ACL will be assigned to the root node of the management tree, and this ACL will be configured as: Add=*&Get=*, which means that all authenticated device management servers can access the management tree The root node performs Add and Get operations. After deleting all permissions in the ACL of the root node, the ACL of the root node will return to the initial setting state or set all operation permissions of the root node to "*".

目前OMA DM规范规定不能对终端设备中的设备管理树的根节点设定Replace权限,这样就使得设备管理服务器通过DM协议对终端设备进行管理过程中,会出现当节点的ACL值发生变化时而可能导致有些节点无法被任何设备管理服务器进行管理,从而成为垃圾节点。例如一个设备管理子树中各节点的ACL值配置情况如图3所示,如果删除ServerA对各节点的操作权限,则图3所示的设备管理子树的ACL值配置情况会变为如图4所示的情况,即删除ServerA对各节点的操作权限后,NodeB的ACL值会完全继承父节点的ACL值,即NodeB的ACL值变为Add=*&Get=*,这样就导致没有任何设备管理服务器可以对节点NodeB进行Replace、Delete、Copy或Exec等操作,从而使其成为了垃圾子树或垃圾节点。The current OMA DM specification stipulates that the root node of the device management tree in the terminal device cannot be set with the Replace permission, so that when the device management server manages the terminal device through the DM protocol, it may occur when the ACL value of the node changes. As a result, some nodes cannot be managed by any device management server, thus becoming garbage nodes. For example, the ACL value configuration of each node in a device management subtree is shown in Figure 3. If the operation authority of ServerA on each node is deleted, the ACL value configuration of the device management subtree shown in Figure 3 will become as shown in Figure 3. In the case shown in 4, after deleting the operation authority of ServerA to each node, the ACL value of NodeB will completely inherit the ACL value of the parent node, that is, the ACL value of NodeB becomes Add=*&Get=*, which results in no device The management server can perform operations such as Replace, Delete, Copy, or Exec on the node NodeB, so that it becomes a garbage subtree or a garbage node.

由此可见,当设备管理服务器通过DM协议对终端设备进行管理的过程中,若节点的ACL值发生变化可能会导致终端设备中出现垃圾节点或垃圾子树,而过多的垃圾节点或垃圾子树往往会浪费终端设备的大量存储资源及浪费终端设备的系统处理资源,从而会降低终端设备的整体处理性能;同时由于设备管理服务器是通过将终端设备中的整个管理树结构获取到设备管理服务器后并进行识别,以此来对终端设备进行后续管理的,这样如果终端设备的设备管理树中存在大量的垃圾节点或垃圾子树,势必会使设备管理服务器获取终端设备的管理树结构时获取的数据量加大,从而浪费了网络的传输资源,尤其是对无线网络而言无线传输资源是非常宝贵的。It can be seen that when the device management server manages the terminal device through the DM protocol, if the ACL value of the node changes, it may cause garbage nodes or garbage subtrees to appear in the terminal equipment, and too many garbage nodes or garbage subtrees The tree often wastes a large amount of storage resources and system processing resources of the terminal device, thereby reducing the overall processing performance of the terminal device; at the same time, because the device management server obtains the entire management tree structure in the terminal device Afterwards, and identify them, in order to carry out follow-up management on the terminal equipment, if there are a large number of garbage nodes or garbage subtrees in the equipment management tree of the terminal equipment, it is bound to cause the equipment management server to obtain the management tree structure of the terminal equipment. The amount of data increases, which wastes the transmission resources of the network, especially for wireless networks, wireless transmission resources are very precious.

发明内容Contents of the invention

本发明提出一种设备管理树的维护方法,以解决现有技术中垃圾节点或垃圾子树对终端设备处理性能及网络传输资源所造成的不良影响。The present invention proposes a method for maintaining a device management tree to solve the adverse effects caused by garbage nodes or garbage subtrees on terminal equipment processing performance and network transmission resources in the prior art.

相应的,本发明还提出了一种终端设备。Correspondingly, the present invention also provides a terminal device.

为解决上述问题,本发明提出的技术方案如下:In order to solve the above problems, the technical scheme proposed by the present invention is as follows:

一种设备管理树的维护方法,包括步骤:A method for maintaining a device management tree, comprising the steps of:

终端设备更新设备管理树中相应节点的权限控制列表;并The terminal device updates the permission control list of the corresponding node in the device management tree; and

在判断出更新后的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对该节点进行维护。When it is determined that there is no maintenance authority in the updated authority control lists of the node, the root node, and nodes between the node and the root node, the node is maintained.

较佳地,所述方法还包括终端设备接收更新指令的步骤,所述更新指令用于触发终端设备更新相应节点的权限控制列表;Preferably, the method further includes the step of receiving an update instruction by the terminal device, and the update instruction is used to trigger the terminal device to update the permission control list of the corresponding node;

终端设备根据所述接收到的更新指令更新相应节点的权限控制列表。The terminal device updates the permission control list of the corresponding node according to the received update instruction.

较佳地,所述更新相应节点的权限控制列表是指:终端设备在删除设备管理服务器的管理权限过程中,若在设备管理树中遍历到权限控制列表中包含该要删除的设备管理服务器标识的节点时,将该遍历到的节点的权限控制列表中包含的该服务器标识进行删除。Preferably, the update of the authority control list of the corresponding node refers to: in the process of deleting the management authority of the device management server, if the terminal device traverses the device management tree and finds that the authority control list contains the identifier of the device management server to be deleted When the node is located, delete the server ID included in the access control list of the traversed node.

较佳地,终端设备接收用户下发的删除设备管理服务器管理权限的删除指令;并根据删除指令中包含的要删除的设备管理服务器的标识执行删除该设备管理服务器的管理权限的处理。Preferably, the terminal device receives a deletion instruction issued by the user to delete the management authority of the device management server; and executes the process of deleting the management authority of the device management server according to the identification of the device management server to be deleted contained in the deletion instruction.

较佳地,终端设备接收对应设备管理服务器下发的删除设备管理服务器管理权限的删除指令;并根据删除指令中包含的对应要删除的设备管理服务器的标识执行删除该设备管理服务器的管理权限的处理。Preferably, the terminal device receives a deletion instruction issued by the corresponding equipment management server to delete the management authority of the equipment management server; deal with.

较佳地,对该节点进行维护是指终端设备判断该节点是否为动态节点,若是则在设备管理树中将该节点为根的子树进行删除。Preferably, maintaining the node means that the terminal device judges whether the node is a dynamic node, and if so, deletes the subtree rooted at the node in the device management tree.

较佳地,对该节点进行维护是指:Preferably, maintaining the node refers to:

终端设备判断该节点是否为动态节点,若是则提示用户是否确认删除以该节点为根的子树;并The terminal device judges whether the node is a dynamic node, and if so, prompts the user whether to confirm deletion of the subtree rooted at the node; and

在接收到用户的确认指令后,在设备管理树中删除以该节点为根的子树。After receiving the confirmation instruction from the user, delete the subtree rooted at the node in the device management tree.

较佳地,对该节点进行维护是指将该节点的维护权限向所有通过认证的设备管理服务器开放。Preferably, maintaining the node refers to opening the maintenance authority of the node to all authenticated device management servers.

较佳地,对该节点进行维护是指由规定的设备管理服务器对该节点的维护权限进行接管。Preferably, maintaining the node means that a specified device management server takes over the maintenance authority of the node.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。Preferably, the maintenance right is a replacement right for the device management server to perform update processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限;和对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is the replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device; and the deletion authority to perform delete processing on the device management tree nodes in the terminal device.

一种终端设备,包括:A terminal device comprising:

权限控制列表更新单元,用于更新设备管理树中相应节点的权限控制列表;An authority control list updating unit, configured to update the authority control list of the corresponding node in the device management tree;

判断单元,用于判断所述权限控制列表更新单元更新的节点、根节点及该更新的节点与根节点之间各节点的权限控制列表中是否存在维护权限;A judging unit, configured to judge whether there is maintenance authority in the authority control list of the node updated by the authority control list updating unit, the root node, and each node between the updated node and the root node;

节点维护单元,用于在所述判断单元的判断结果为否时,对所述权限控制列表更新单元更新的节点进行维护。A node maintenance unit, configured to maintain the node updated by the authority control list updating unit when the judgment result of the judging unit is negative.

较佳地,所述终端设备还包括用于接收更新指令的更新指令接收单元,所述更新指令用于触发终端设备更新相应节点的权限控制列表;Preferably, the terminal device further includes an update instruction receiving unit for receiving an update instruction, and the update instruction is used to trigger the terminal device to update the permission control list of the corresponding node;

所述权限控制列表更新单元根据更新指令接收单元接收到的更新指令更新相应节点的权限控制列表。The authority control list updating unit updates the authority control list of the corresponding node according to the update instruction received by the update instruction receiving unit.

较佳地,所述权限控制列表更新单元具体包括:Preferably, the authority control list updating unit specifically includes:

遍历子单元,用于终端设备在删除设备管理服务器的管理权限过程中,根据要删除的设备管理服务器的标识在设备管理树中遍历权限控制列表中包含该要删除服务器标识的节点;The traversal subunit is used for the terminal device to traverse the node in the device management tree that contains the identifier of the server to be deleted in the device management tree according to the identifier of the device management server to be deleted during the process of deleting the management authority of the device management server;

标识删除子单元,用于删除所述遍历子单元遍历到的节点的权限控制列表中包含的该要删除服务器的标识。The identifier deletion subunit is used to delete the identifier of the server to be deleted contained in the permission control list of the node traversed by the traversal subunit.

较佳地,所述终端设备还包括维护策略存储单元,用于预先存储一设定的维护策略;Preferably, the terminal device further includes a maintenance policy storage unit, which is used to pre-store a set maintenance policy;

所述节点维护单元按照所述维护策略存储单元中存储的维护策略对更新的节点进行维护。The node maintenance unit maintains the updated node according to the maintenance policy stored in the maintenance policy storage unit.

较佳地,所述节点维护单元具体包括:Preferably, the node maintenance unit specifically includes:

第一判断子单元,用于在所述判断单元的判断结果为否时,判断权限控制列表更新单元更新的该节点是否为动态节点;The first judging subunit is used to judge whether the node updated by the authority control list updating unit is a dynamic node when the judging result of the judging unit is no;

第一子树删除子单元,用于在第一判断子单元的判断结果为是时,删除以权限控制列表更新单元更新的该节点为根的子树。The first subtree deletion subunit is configured to delete the subtree rooted at the node updated by the authority control list update unit when the determination result of the first determination subunit is yes.

较佳地,所述节点维护单元具体包括:Preferably, the node maintenance unit specifically includes:

第二判断子单元,用于在所述判断单元的判断结果为否时,判断权限控制列表更新单元更新的该节点是否为动态节点;The second judging subunit is used to judge whether the node updated by the authority control list updating unit is a dynamic node when the judging result of the judging unit is No;

删除提示子单元,用于在第二判断子单元的判断结果为是时,提示用户是否确认删除以权限控制列表更新单元更新的该节点为根的子树;The deletion prompt subunit is used to prompt the user whether to confirm the deletion of the subtree rooted at the node updated by the authority control list update unit when the judgment result of the second judging subunit is Yes;

第二子树删除子单元,用于在接收到用户的确认指令后,删除以权限控制列表更新单元更新的该节点为根的子树。The second subtree deletion subunit is configured to delete the subtree rooted at the node updated by the authority control list update unit after receiving the confirmation instruction from the user.

较佳地,所述节点维护单元通过将权限控制列表更新单元更新的节点的维护权限向所有通过认证的设备管理服务器开放来对该更新的节点进行维护。Preferably, the node maintenance unit maintains the updated node by opening the maintenance authority of the node updated by the authority control list updating unit to all authenticated device management servers.

较佳地,所述节点维护单元通过指定规定的设备管理服务器对权限控制列表更新单元更新的节点的维护权限进行接管来对该更新的节点进行维护。Preferably, the node maintenance unit maintains the updated node by designating a specified device management server to take over the maintenance authority of the node updated by the authority control list updating unit.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。Preferably, the maintenance right is a replacement right for the device management server to perform update processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限和对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is the replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device and the deletion authority to perform delete processing on the device management tree nodes in the terminal device.

一种设备管理树的维护方法,包括步骤:A method for maintaining a device management tree, comprising the steps of:

终端设备遍历设备管理树中的节点;并the end device traverses the nodes in the device management tree; and

在遍历到每个节点时执行:判断出遍历到的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对遍历到的该节点进行维护。Execute when each node is traversed: when it is determined that there is no maintenance authority in the authority control list of the traversed node, the root node, and nodes between the traversed node and the root node, maintain the traversed node.

较佳地,对遍历到的该节点进行维护是指终端设备判断该节点是否为动态节点,若是则在设备管理树中将该节点为根的子树删除。Preferably, maintaining the traversed node means that the terminal device judges whether the node is a dynamic node, and if so, deletes the subtree rooted at the node in the device management tree.

较佳地,对遍历到的该节点进行维护是指:Preferably, maintaining the traversed node refers to:

终端设备判断该节点是否为动态节点,若是则提示用户是否确认删除以该节点为根的子树;并The terminal device judges whether the node is a dynamic node, and if so, prompts the user whether to confirm deletion of the subtree rooted at the node; and

在接收到用户的确认指令后,在设备管理树中删除以该节点为根的子树。After receiving the confirmation instruction from the user, delete the subtree rooted at the node in the device management tree.

较佳地,对遍历到的该节点进行维护是指将该节点的维护权限向所有通过认证的设备管理服务器开放。Preferably, maintaining the traversed node refers to opening the maintenance authority of the node to all authenticated device management servers.

较佳地,对遍历到的该节点进行维护是指由规定的设备管理服务器对该节点的维护权限进行接管。Preferably, maintaining the traversed node means that a specified device management server takes over the maintenance authority of the node.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。Preferably, the maintenance right is a replacement right for the device management server to perform update processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限;和对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is the replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device; and the deletion authority to perform delete processing on the device management tree nodes in the terminal device.

一种终端设备,包括:A terminal device comprising:

节点遍历单元,用于遍历设备管理树中的节点;The node traversal unit is used to traverse the nodes in the device management tree;

判断单元,用于在所述节点遍历单元遍历到每个节点时,判断所述节点遍历单元遍历到的节点、根节点及该遍历到节点与根节点之间各节点的权限控制列表中是否存在维护权限;A judging unit, configured to judge whether the node traversed by the node traversing unit, the root node, and the authority control list of each node between the traversed node and the root node exist when the node traversing unit traverses each node. maintenance authority;

节点维护单元,用于在所述判断单元的判断结果为否时,对遍历到的该节点进行维护。The node maintenance unit is configured to maintain the traversed node when the determination result of the determination unit is negative.

较佳地,所述终端设备还包括维护策略存储单元,用于预先存储一设定的维护策略;Preferably, the terminal device further includes a maintenance policy storage unit, which is used to pre-store a set maintenance policy;

所述节点维护单元按照所述维护策略存储单元中存储的维护策略对节点进行维护。The node maintenance unit maintains the nodes according to the maintenance policy stored in the maintenance policy storage unit.

较佳地,所述节点维护单元具体包括:Preferably, the node maintenance unit specifically includes:

第一判断子单元,用于在所述判断单元的判断结果为否时,判断节点遍历单元遍历到的该节点是否为动态节点;The first judging subunit is used to judge whether the node traversed by the node traversing unit is a dynamic node when the judging result of the judging unit is no;

第一子树删除子单元,用于在第一判断子单元的判断结果为是时,删除以节点遍历单元遍历到的该节点为根的子树。The first subtree deletion subunit is configured to delete the subtree rooted at the node traversed by the node traversal unit when the determination result of the first determination subunit is yes.

较佳地,所述节点维护单元具体包括:Preferably, the node maintenance unit specifically includes:

第二判断子单元,用于在所述判断单元的判断结果为否时,判断节点遍历单元遍历到的该节点是否为动态节点;The second judging subunit is used to judge whether the node traversed by the node traversing unit is a dynamic node when the judging result of the judging unit is No;

删除提示子单元,用于在第二判断子单元的判断结果为是时,提示用户是否确认删除以节点遍历单元遍历到的该节点为根的子树;The deletion prompt subunit is used to prompt the user whether to confirm the deletion of the subtree rooted at the node traversed by the node traversal unit when the judgment result of the second judging subunit is Yes;

第二子树删除子单元,用于在接收到用户的确认指令后,删除以节点遍历单元遍历到的该节点为根的子树。The second subtree deletion subunit is configured to delete the subtree whose root is the node traversed by the node traversal unit after receiving the confirmation instruction from the user.

较佳地,所述节点维护单元通过将遍历到的该节点的维护权限向所有通过认证的设备管理服务器开放来对该节点进行维护。Preferably, the node maintenance unit maintains the node by opening the maintenance authority of the traversed node to all authenticated device management servers.

较佳地,所述节点维护单元通过指定规定的设备管理服务器对遍历到的该节点的维护权限进行接管来对该节点进行维护。Preferably, the node maintenance unit maintains the node by designating a specified device management server to take over the maintenance authority of the traversed node.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。Preferably, the maintenance right is a replacement right for the device management server to perform update processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device.

较佳地,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限和对终端设备中设备管理树节点执行删除处理的删除权限。Preferably, the maintenance authority is the replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device and the deletion authority to perform delete processing on the device management tree nodes in the terminal device.

本发明能够达到的有益效果如下:The beneficial effect that the present invention can reach is as follows:

本发明第一种技术方案通过在更新终端设备中DM树的某个节点的ACL时,及时对该更新的节点、根节点及该更新的节点与根节点之间的每个节点进行相关检测和判断,以在得出该更新的节点、根节点及该更新的节点与根节点之间各节点的ACL分别都不存在维护权限(如Replace权限和/或Delete权限)的情况下,对该更新的节点执行相关的维护处理,从而可以实现终端设备在对DM树中某个节点的ACL进行更新处理后,能够较好的防止由于该节点的ACL信息发生变化而会带来垃圾子树或垃圾节点的现象,从而较好的防止了垃圾子树或垃圾节点对终端设备整体处理性能所造成的影响,也较好的防止了终端设备中存在较多垃圾子树或垃圾节点时设备管理服务器获取终端设备管理树结构信息时需要获取信息过多的问题,因此节约了网络传输资源。In the first technical solution of the present invention, when updating the ACL of a certain node of the DM tree in the terminal device, the updated node, the root node, and each node between the updated node and the root node are timely correlated and detected. Judging, under the situation that there is no maintenance authority (such as Replace authority and/or Delete authority) respectively in the ACL of each node between the node that draws this update, root node and this update node and root node, to this update The nodes in the DM tree perform relevant maintenance processing, so that after the terminal device updates the ACL of a certain node in the DM tree, it can better prevent the garbage subtree or garbage caused by the change of the ACL information of the node. node phenomenon, thereby better preventing the impact of garbage subtrees or garbage nodes on the overall processing performance of the terminal device, and also better preventing the device management server from obtaining When the terminal device manages the tree structure information, it needs to obtain too much information, thus saving network transmission resources.

本发明第二种技术方案通过终端设备在相应的外界触发机制下,或以定期方式对DM中的各节点进行遍历,并对遍历到的每个节点判断出该遍历到的节点、根节点及该遍历到的节点与根节点之间各节点的ACL中分别都不存在维护权限(如Replace权限和/或Delete权限)时,对该遍历到的节点执行维护处理,从而也能够较好的防止终端设备中出现过多的垃圾节点或垃圾子树,因此较好的防止了垃圾子树或垃圾节点对终端设备整体处理性能所造成的影响,也较好的防止了终端设备中存在较多垃圾子树或垃圾节点时设备管理服务器获取终端设备管理树结构信息时需要获取信息过多的问题,因此节约了网络传输资源。In the second technical solution of the present invention, the terminal device traverses each node in the DM under the corresponding external trigger mechanism or in a regular manner, and judges the traversed node, the root node and the When there is no maintenance authority (such as Replace authority and/or Delete authority) in the ACL of each node between the traversed node and the root node, the maintenance process is performed on the traversed node, thereby also preventing There are too many garbage nodes or garbage subtrees in the terminal equipment, so it is better to prevent the influence of garbage subtrees or garbage nodes on the overall processing performance of the terminal equipment, and it is also better to prevent the existence of more garbage in the terminal equipment When the device management server obtains the terminal device management tree structure information when subtrees or garbage nodes need to obtain too much information, it saves network transmission resources.

附图说明Description of drawings

图1为现有DM规范的整体管理架构模型图;Figure 1 is a model diagram of the overall management structure of the existing DM specification;

图2为现有终端设备内管理树中各管理对象的结构状态示意图;Fig. 2 is a schematic diagram of the structural state of each management object in the management tree in the existing terminal equipment;

图3为一个设备管理子树中各节点的ACL值配置情况示意图;Fig. 3 is a schematic diagram of the ACL value configuration of each node in a device management subtree;

图4为删除图3中ServerA对各节点的操作权限后的设备管理子树中各节点的ACL值配置情况示意图;Fig. 4 is a schematic diagram of the ACL value configuration of each node in the device management subtree after deleting the operation authority of ServerA to each node in Fig. 3;

图5为本发明提出的第一种设备管理树的维护方法的主要实现原理流程图;Fig. 5 is the main realization principle flowchart of the maintenance method of the first device management tree proposed by the present invention;

图6为依据本发明第一种方法原理,在删除某个DM Server对终端设备的管理权限情况下对DM树进行维护的主要实现流程图;Fig. 6 is according to first kind of method principle of the present invention, deletes the main realization flow chart that DM tree is maintained under the management authority situation of certain DM Server to terminal equipment;

图7为本发明实施例中某个设备管理服务器在某个终端设备中的DM树上添加的子树及其权限示意图;FIG. 7 is a schematic diagram of a subtree and its permissions added by a certain device management server to a DM tree in a certain terminal device in an embodiment of the present invention;

图8为在图7的基础上,按现有技术删除ServerA标识后的节点权限示意图;FIG. 8 is a schematic diagram of node permissions after deleting the ServerA identification according to the prior art on the basis of FIG. 7;

图9为在图7的基础上,删除ServerA标识后采取删除以节点NodeB为根的整个子树处理后的状态示意图;Figure 9 is a schematic diagram of the state after deleting the entire subtree with the node NodeB as the root after deleting the ServerA identifier on the basis of Figure 7;

图10为在图7的基础上,删除ServerA标识后采取将NodeB的Replace权限向所有可以通过认证的设备管理服务器开放处理后的状态示意图;Figure 10 is a schematic diagram of the state after deleting the ServerA identifier and opening the Replace authority of NodeB to all authenticated device management servers on the basis of Figure 7;

图11为在图7的基础上,删除ServerA标识后采取由特定设备管理服务器接管NodeB的Replace权限处理后的状态示意图;Figure 11 is a schematic diagram of the status after deleting the ServerA identifier and taking over the Replace authority of NodeB by a specific device management server on the basis of Figure 7;

图12为依据本发明第一种方法原理,在删除某个DM Server对终端设备的管理权限情况下对DM树进行维护的第二实施例处理流程图;Fig. 12 is according to the principle of the first method of the present invention, in the case of deleting the management authority of a certain DM Server to the terminal equipment, the second embodiment processing flowchart of maintaining the DM tree;

图13为本发明提出的第一种终端设备的主要组成结构框图;FIG. 13 is a structural block diagram of the main components of the first type of terminal device proposed by the present invention;

图14为本发明提出的第一种终端设备的第一实施例组成结构框图;FIG. 14 is a structural block diagram of the first embodiment of the first terminal device proposed by the present invention;

图15为本发明提出的第一种终端设备的第二实施例组成结构框图;FIG. 15 is a structural block diagram of a second embodiment of the first terminal device proposed by the present invention;

图16为本发明第一种终端设备中节点维护单元的实施例组成结构框图;FIG. 16 is a structural block diagram of an embodiment of a node maintenance unit in the first terminal device of the present invention;

图17为本发明提出的第二种DM树维护方法的主要实现原理流程图;Fig. 17 is the main realization principle flowchart of the second DM tree maintenance method proposed by the present invention;

图18为本发明提出的第二种终端设备的主要组成结构框图;FIG. 18 is a structural block diagram of the main components of the second type of terminal equipment proposed by the present invention;

图19为本发明第二种终端设备中节点维护单元的实施例组成结构框图。FIG. 19 is a structural block diagram of an embodiment of a node maintenance unit in a second type of terminal device according to the present invention.

具体实施方式Detailed ways

在OMA DM规范中,每个通过认证的设备管理服务器是通过操作终端设备中存储的设备管理树各节点而实现对终端设备进行管理的,为了控制不同设备管理服务器对终端设备DM树的相应管理权限,终端设备在自身设备管理树的各个节点中分别维护相应的ACL值,通过为节点维护的ACL值设置设备管理服务器标识和对应的管理权限关系表达式,以标识相应的设备管理服务器对该节点具有相应的管理权限。In the OMA DM specification, each certified device management server manages the terminal device by operating each node of the device management tree stored in the terminal device. In order to control the corresponding management of the terminal device DM tree by different device management servers Authority, the terminal device maintains the corresponding ACL value in each node of its own device management tree, and sets the device management server ID and the corresponding management authority relationship expression for the ACL value maintained by the node to identify the corresponding device management server. Nodes have corresponding administrative rights.

本发明第一种技术方案针对更新DM树中相应节点的ACL时,可能会导致由于相关节点ACL的更新而致使终端设备中出现垃圾节点或垃圾子树,从而会降低终端设备的整体处理性能和浪费传输资源的问题,而提出在更新终端设备DM树中相应节点的ACL时,能够较好的防止在终端设备中出现垃圾节点或垃圾子树的处理方案。The first technical solution of the present invention is aimed at updating the ACL of the corresponding node in the DM tree, which may cause garbage nodes or garbage subtrees to appear in the terminal device due to the update of the ACL of the relevant node, thereby reducing the overall processing performance and performance of the terminal device. In view of the problem of wasting transmission resources, a processing scheme is proposed that can better prevent garbage nodes or garbage subtrees from appearing in the terminal equipment when updating the ACL of the corresponding node in the DM tree of the terminal equipment.

下面将结合各个附图对本发明技术方案的主要实现原理、具体实施方式及其对应能够达到的有益效果进行详细的阐述。The main realization principles, specific implementation methods and corresponding beneficial effects of the technical solution of the present invention will be described in detail below in conjunction with each accompanying drawing.

如图5所示,为本发明提出的第一种设备管理树的维护方法的主要实现原理流程图,其主要实现过程如下:As shown in Figure 5, it is a flow chart of the main realization principle of the maintenance method of the first device management tree proposed by the present invention, and its main realization process is as follows:

步骤S10,终端设备对DM树中相应节点的ACL信息进行更新处理;Step S10, the terminal device updates the ACL information of the corresponding node in the DM tree;

一种较优的方式是终端设备可以在接收到外界下发来的(如由用户下发的)用于触发终端设备更新相应节点的ACL信息的更新指令后,根据接收到的更新指令对DM树中的相应节点的ACL信息进行更新处理;A better way is that after the terminal device receives an update command issued by the outside world (such as issued by the user) to trigger the terminal device to update the ACL information of the corresponding node, it can update the DM according to the received update command. The ACL information of the corresponding node in the tree is updated;

另一种较优的方式是终端设备在删除某个DM Server的管理权限过程中,若在DM树中遍历到ACL信息中包含该要删除的DM Server ID的节点时,将遍历到的节点的ACL信息中包含的该DM Server ID进行删除,从而也达到了对该节点的ACL信息进行更新的目的。Another better way is that in the process of deleting the management authority of a certain DM Server, if the terminal device traverses the node in the DM tree that contains the DM Server ID to be deleted in the ACL information, it will traverse the ID of the node. The DM Server ID included in the ACL information is deleted, thereby also achieving the purpose of updating the ACL information of the node.

步骤S20,终端设备在判断出更新后的该节点、根节点及该节点与根节点之间各节点的ACL信息中分别都不存在维护权限时,对该节点进行维护处理。Step S20, when the terminal device determines that the updated ACL information of the node, the root node, and the nodes between the node and the root node does not have maintenance rights, it performs maintenance processing on the node.

其中对满足上述判断条件进行了ACL更新的节点进行维护的方式可以但不限于指以下处理方式:The way to maintain the nodes that meet the above judgment conditions and perform ACL update can be, but not limited to, the following processing ways:

1.终端设备判断该更新节点是否为动态节点,如果是则在DM树中将该节点为根的子树删除,或在用户确认的情况下将该节点为根的子树删除;1. The terminal device judges whether the updated node is a dynamic node, and if so, deletes the subtree rooted at the node in the DM tree, or deletes the subtree rooted at the node upon confirmation by the user;

2.将该节点的维护权限向所有通过认证的DM Server开放;2. Open the maintenance authority of the node to all certified DM Servers;

3.指定规定的DM Server对该节点的维护权限进行接管。3. Designate the specified DM Server to take over the maintenance authority of the node.

其中维护权限具体可以指DM Server对终端设备中DM树节点执行更新处理的替换权限(Replace权限);也可以指DM Server对终端设备中DM树节点执行删除处理的删除权限(Delete权限);还可以指Replace权限和Delete权限。Wherein the maintenance authority specifically can refer to the replacement authority (Replace authority) that the DM Server performs update processing on the DM tree node in the terminal device; it can also refer to the deletion authority (Delete authority) that the DM Server performs the deletion process on the DM tree node in the terminal device; It can refer to the Replace permission and the Delete permission.

下面以删除某个DM Server对终端设备的管理权限为例对本发明上述方法的主要实现原理进行更为详细的阐述。如图6所示,为依据本发明第一种方法原理,在删除某个DM Server对终端设备的管理权限情况下对DM树进行维护的主要实现流程图,其具体实现过程如下:The main implementation principle of the above-mentioned method of the present invention is described in more detail below by taking the deletion of the management authority of a certain DM Server to the terminal device as an example. As shown in Figure 6, for according to the first kind of method principle of the present invention, under the situation of deleting certain DM Server to the management authority of terminal equipment, the main realization flow diagram that DM tree is maintained, its specific implementation process is as follows:

S50,终端设备在删除设备管理服务器的管理权限过程中,根据要删除的设备管理服务器的标识(ID)遍历DM树,即对整个DM树各节点的ACL值进行扫描,以分别搜寻ACL中包含该DM Server ID的节点;S50. During the process of deleting the management authority of the device management server, the terminal device traverses the DM tree according to the identification (ID) of the device management server to be deleted, that is, scans the ACL values of each node in the entire DM tree to search for the ACL values contained in the ACL respectively. The node of the DM Server ID;

一种较优的实施方式是终端设备接收用户下发的删除设备管理服务器管理权限的删除指令,并根据该删除指令中包含的要删除的DM Server ID执行删除该设备管理服务器的管理权限的处理。A preferred embodiment is that the terminal device receives the deletion instruction issued by the user to delete the management authority of the device management server, and executes the process of deleting the management authority of the device management server according to the DM Server ID to be deleted contained in the deletion instruction .

另一种较优的实施方式是终端设备接收对应设备管理服务器下发的删除设备管理服务器管理权限的删除指令,并根据该删除指令中包含的对应要删除的DM Server ID执行删除该设备管理服务器的管理权限的处理。Another preferred embodiment is that the terminal device receives a deletion command issued by the corresponding device management server to delete the management authority of the device management server, and executes the deletion of the device management server according to the corresponding DM Server ID to be deleted contained in the deletion command. The processing of administrative rights.

步骤S60,终端设备在搜寻到每个满足上述条件的节点时,将该节点的ACL中包含的该DM Server ID删除;并在Step S60, when the terminal device finds each node satisfying the above conditions, delete the DM Server ID included in the node's ACL; and

步骤S70,判断出删除该DM Server ID的节点、根节点及该节点与根节点之间各节点的ACL在删除该DM Server ID后分别都不存在维护权限(如Replace权限和/或Delete权限)时,对该节点进行维护处理。Step S70, judge to delete the node of this DM Server ID, the root node and the ACL of each node between this node and the root node do not respectively have maintenance authority (as Replace authority and/or Delete authority) after deleting this DM Server ID , the node is maintained.

其中可以预先在终端设备中存储一个维护策略,终端设备在判断出满足上述条件需要进行维护的节点时,就可以按照该预先存储的维护策略对该节点进行维护处理了;当然也可以在需要对该节点进行维护时,提示用户输入相应的维护策略,终端设备就可以根据用户输入的维护策略对该节点执行相应的维护处理了。A maintenance strategy can be stored in the terminal device in advance. When the terminal device judges that the node that meets the above conditions needs to be maintained, it can maintain the node according to the pre-stored maintenance strategy; When the node is being maintained, the user is prompted to input a corresponding maintenance strategy, and the terminal device can perform corresponding maintenance processing on the node according to the maintenance strategy input by the user.

其中可以但不限于采用下述三种维护策略之一对满足条件需要进行维护的节点进行维护处理,其维护策略可以由用户预先设定、也可以由终端设备(DM Client)自身预先设定,还可以由即将被删除管理权限的设备管理服务器预先设定:Among them, one of the following three maintenance strategies can be used, but not limited to, to maintain the nodes that meet the conditions and need to be maintained. The maintenance strategy can be preset by the user or by the terminal device (DM Client) itself. It can also be pre-set by the device management server whose management rights are about to be removed:

(1)将以搜寻到的满足上述步骤S70中条件的动态节点为根的整个子树进行删除处理,这样终端设备在上述步骤S70中对搜寻到的满足步骤S70中条件的节点执行:终端设备判断该节点是否为动态节点,如果是则在DM树中删除以该节点为根的整个子树;或者(1) Delete the entire subtree rooted at the searched dynamic node satisfying the conditions in step S70, so that the terminal device executes in the above step S70 on the searched nodes satisfying the conditions in step S70: the terminal device Determine whether the node is a dynamic node, and if so, delete the entire subtree rooted at the node in the DM tree; or

终端设备判断该节点是否为动态节点,如果是则提示用户是否确认删除以该节点为根的整个子树,并在接收到用户的确认指令后,在DM树中删除以该节点为根的整个子树。The terminal device judges whether the node is a dynamic node, and if so, prompts the user to confirm whether to delete the entire subtree rooted at the node, and deletes the entire subtree rooted at the node in the DM tree after receiving the confirmation instruction from the user. subtree.

(2)将搜寻到的满足上述步骤S70中条件的节点的维护权限(如Replace权限和/或Delete权限)向所有通过认证的设备管理服务器开放,这样终端设备在上述步骤S70中对搜寻到的满足步骤S70中条件的节点执行:在为该节点维护的ACL中,将维护权限(如Replace权限和/或Delete权限)对应的DMServer ID设置为*。(2) Open the maintenance authority (such as Replace authority and/or Delete authority) of the nodes found to meet the conditions in the above step S70 to all authenticated device management servers, so that the terminal device can search for the nodes in the above step S70 The node that satisfies the condition in step S70 executes: in the ACL maintained for the node, the DMServer ID corresponding to the maintenance authority (such as Replace authority and/or Delete authority) is set to *.

(3)由规定的设备管理服务器接管搜寻到的满足上述步骤S70中条件的节点的维护权限(如Replace权限和/或Delete权限),这样终端设备在上述步骤S70中对搜寻到的满足步骤S70中条件的节点执行:在为该节点维护的ACL中,将维护权限(如Replace权限和/或Delete权限)对应的DM Server ID设置为该规定的DM Server ID。其中具体指定由哪个设备管理服务器进行接管搜寻到的满足条件的节点的Replace权限和/或Delete权限,可以由用户预先设定,也可以由DM Client自身预先设定,还可以由即将被删除管理权限的设备管理服务器预先设定。(3) The specified device management server takes over the maintenance authority (such as Replace authority and/or Delete authority) of the nodes found to meet the conditions in the above step S70, so that the terminal device in the above step S70 satisfies the conditions found in the step S70 The node execution of the middle condition: In the ACL maintained for this node, set the DM Server ID corresponding to the maintenance authority (such as Replace authority and/or Delete authority) to the specified DM Server ID. Specifically specify which device management server will take over the Replace authority and/or Delete authority of the searched nodes that meet the conditions, which can be preset by the user, or by the DM Client itself, and can also be managed by the node that is about to be deleted. Permissions are pre-set on the device management server.

上述实施例原理即为在终端设备取消某个设备管理服务器对其的管理权限时,对整个DM树进行遍历处理(可以采用深度遍历方式或采用广度遍历方式),即对整个DM树中各节点的ACL信息进行扫描,如果发现某个节点的ACL中包含该设备管理服务器的标识,则将该节点的ACL中的该设备管理服务器标识删除;并对该节点删除该设备管理服务器标识后进行判断,如果该节点、根节点及该节点与根节点之间各节点的ACL信息中还存在有维护权限(如Replace权限和/或Delete权限)时,则对该节点的维护处理过程结束,正常进行其它节点的扫描;如果该节点、根节点及该节点与根节点之间各节点的ACL信息中都不存在维护权限(如Replace权限和/或Delete权限)时,则终端设备在下述3种维护策略中选择其中一种处理方式对该节点进行后续的维护处理,其中该维护策略可以是用户设定的策略,也可以是DM Client的默认处理策略,还可以是即将被删除管理权限的设备管理服务器设定的策略:The principle of the above embodiment is that when the terminal device cancels the management authority of a certain device management server to it, it traverses the entire DM tree (the depth traversal method or the breadth traversal method can be used), that is, each node in the entire DM tree Scan the ACL information of a node, if it is found that the ACL of a node contains the ID of the device management server, delete the ID of the device management server in the ACL of the node; and make a judgment after deleting the ID of the device management server for the node , if there are maintenance rights (such as Replace rights and/or Delete rights) in the ACL information of the node, the root node, and the nodes between the node and the root node, then the maintenance process of the node ends and proceeds normally Scanning of other nodes; if there is no maintenance authority (such as Replace authority and/or Delete authority) in the ACL information of the node, the root node, and the nodes between the node and the root node, the terminal device is in the following three maintenance Select one of the processing methods in the policy to perform subsequent maintenance on the node. The maintenance policy can be a policy set by the user, or the default processing policy of DM Client, or the device management whose management authority will be deleted. Policy set by the server:

①终端设备判断该节点是否为动态节点,如果是则在DM树中删除以该节点为根的整个子树,或请求用户确认后再在DM树中删除以该节点为根的整个子树;① The terminal device judges whether the node is a dynamic node, and if so, deletes the entire subtree rooted at the node in the DM tree, or deletes the entire subtree rooted at the node in the DM tree after requesting user confirmation;

②在为该节点维护的ACL中设置将该节点的Replace权限和/或Delete权限向所有可通过认证的设备管理服务器开放,即在删除该设备管理服务器标识的节点ACL已有权限分配的基础上增加:将其Replace权限和/或Delete权限对应的设备管理服务器标识设为“*”;②In the ACL maintained for the node, set the Replace permission and/or Delete permission of the node to all authenticated device management servers, that is, based on the existing permission assignment of the node ACL that deletes the device management server identifier Add: Set the device management server ID corresponding to the Replace permission and/or Delete permission to "*";

③设定由某个规定的设备管理服务器接管该节点的Replace权限和/或Delete权限,即在删除该设备管理服务器标识后的节点ACL已有权限分配的基础上增加:将其Replace权限和/或Delete权限对应的设备管理服务器标识更改为该接管设备管理服务器的标识。其中具有由哪个设备管理服务器接管可以由用户设定,也可以由DM Client设定,还可以由即将被删除管理权限的设备管理服务器设定。③ Set the Replace permission and/or Delete permission of the node to be taken over by a specified device management server, that is, increase the existing permission assignment of the node ACL after deleting the device management server ID: replace its Replace permission and/or Or change the ID of the device management server corresponding to the Delete permission to the ID of the takeover device management server. Which device management server to take over can be set by the user, can also be set by the DM Client, and can also be set by the device management server whose management authority is about to be deleted.

下面将列举一个具体实施例对本发明上述方法的主要实现原理进行更为具体的阐述:A specific embodiment will be enumerated below to set forth more specifically the main realization principle of the above-mentioned method of the present invention:

假设某个通过授权的设备管理服务器在某个终端设备中的DM树上添加了一个子树,该添加的子树及其权限如图7所示,其中在终端设备的DM树中,NodeB的权限为:Assume that an authorized device management server adds a subtree to the DM tree of a certain terminal device, the added subtree and its permissions are shown in Figure 7, where in the DM tree of the terminal device, NodeB's The permissions are:

Get=*&Add=*&Replace=ServerA&Delete=ServerAGet=*&Add=*&Replace=ServerA&Delete=ServerA

节点NodeC和NodeD的ACL继承NodeB节点的ACL信息。The ACLs of NodeC and NodeD inherit the ACL information of NodeB.

即:ServerA分别对这三个节点有Replace权限和Delete权限;而这三个节点的Get权限和Add权限则分别向所有可以通过认证的设备管理服务器开放。Namely: ServerA has the Replace authority and the Delete authority respectively for the three nodes; and the Get authority and the Add authority of the three nodes are respectively open to all device management servers that can pass the authentication.

当删除设备管理服务器A对该终端设备的管理权限时,终端设备就将对自身的DM树进行遍历扫描,以在DM树的各节点的ACL信息中分别删除ServerA标识,在DM树各节点的ACL中删除ServerA标识后,终端设备中该子树及其权限情况就如图8所示,则可以看出节点NodeB为与根节点Root直连的节点,且该节点的ACL在删除ServerA标识后不再存在Replace权限和Delete权限,且根节点的ACL信息中也同样不存在Replace权限和Delete权限,因此终端设备就可以对这个NodeB按照下述方式给以维护:When deleting the management authority of the terminal device from the device management server A, the terminal device will traverse and scan its own DM tree to delete the ServerA identifier in the ACL information of each node in the DM tree, and delete the ServerA identifier in the ACL information of each node in the DM tree. After deleting the ServerA identifier in the ACL, the subtree and its permissions in the terminal device are shown in Figure 8. It can be seen that the node NodeB is directly connected to the root node Root, and the ACL of this node is deleted after the ServerA identifier There is no Replace permission and Delete permission anymore, and there is no Replace permission and Delete permission in the ACL information of the root node, so the terminal device can maintain the NodeB in the following way:

一种方式是删除或请求用户确认后删除以该节点NodeB为根的整个子树,删除后的子树状态示意图如图9所示;One way is to delete or ask the user to confirm and delete the entire subtree rooted at the node NodeB. The state diagram of the deleted subtree is shown in Figure 9;

另一种方式是将该节点NodeB的Replace权限向所有可以通过认证的设备管理服务器开放,其处理后的子树状态示意图如图10所示;Another way is to open the Replace authority of the node NodeB to all device management servers that can pass the authentication, and the processed subtree state schematic diagram is shown in Figure 10;

另一种方式是由某个特定的设备管理服务器(如ServerB)继续接管该节点NodeB的Replace权限,其处理后的子树状态示意图如图11所示。Another way is that a specific device management server (such as ServerB) continues to take over the Replace authority of the node NodeB, and its processed subtree state schematic diagram is shown in FIG. 11 .

相对于本发明上述以删除DM Server对终端设备的管理权限的第一种DM树维护实施情况,终端设备还可以在删除某个设备管理服务器对自身的管理权限过程中,遍历扫描自身存储的DM树中的每个节点的ACL信息,并将整个DM树中各节点的ACL中包含的该设备管理服务器的标识删除,后续(可以在DM树中的各节点的ACL中删除完毕该服务器标识后立即执行,也可以过规定时间段后再以执行)分别判断每个删除服务器标识的节点、根节点及该节点与根节点之间各节点的ACL中是否还存在维护权限(如Replace权限和Delete权限),对于没有维护权限(如既没有Replace权限,也没有Delete权限)的节点进行维护处理。With respect to the implementation of the first DM tree maintenance of the above-mentioned deletion of the management authority of the terminal device by the DM Server in the present invention, the terminal device can also traverse and scan the DM stored in itself during the process of deleting the management authority of a certain device management server to itself. The ACL information of each node in the tree, and delete the identification of the device management server contained in the ACL of each node in the entire DM tree, and subsequently (you can delete the server identification in the ACL of each node in the DM tree Execute immediately, or after a specified period of time) respectively determine whether there is maintenance authority (such as Replace authority and Delete Permissions), for nodes without maintenance permissions (such as neither Replace permission nor Delete permission), perform maintenance processing.

根据上述思想,请参照图12,该图是依据本发明第一种方法原理,在删除某个DM Server对终端设备的管理权限情况下对DM树进行维护的第二实施例处理流程图,其主要实现过程如下:According to the above-mentioned thought, please refer to Fig. 12, this figure is according to the principle of the first method of the present invention, in the case of deleting the management authority of a certain DM Server to the terminal equipment, the second embodiment of the process flow diagram of maintaining the DM tree, its The main implementation process is as follows:

步骤S100,终端设备在删除设备管理服务器的管理权限过程中,根据要删除的设备管理服务器的标识(ID)遍历自身存储的整个DM树,即对整个DM树各节点的ACL信息进行扫描,以分别搜寻ACL中包含该DM Server ID的节点;Step S100, in the process of deleting the management authority of the device management server, the terminal device traverses the entire DM tree stored by itself according to the identification (ID) of the device management server to be deleted, that is, scans the ACL information of each node of the entire DM tree to obtain Search for the nodes containing the DM Server ID in the ACL respectively;

步骤S200,终端设备分别对上述处理过程中搜寻到的每个节点执行将该节点的ACL中包含的该DM Server ID删除,从而最终完成将自身存储的整个DM树中相应节点的ACL中记载的该DM Server ID全部删除,使得整个DM树的ACL信息中没有了该DM Server ID,完成删除该设备管理服务器对自身管理权限的目的;Step S200, the terminal device deletes the DM Server ID contained in the ACL of the node for each node found in the above processing, and finally completes the DM Server ID recorded in the ACL of the corresponding node in the entire DM tree stored by itself. The DM Server ID is all deleted, so that the DM Server ID is not included in the ACL information of the entire DM tree, and the purpose of deleting the management authority of the device management server to itself is completed;

步骤S300,在经上述处理过程完成删除该DM Server的管理权限后(可以在上述步骤S100和步骤S200处理过程完成后立即执行,也可以在上述步骤S100和步骤S200处理过程完成后的一定规定时间段后执行),终端设备针对每个删除该服务器标识的节点执行:Step S300, after finishing deleting the management authority of this DM Server through above-mentioned process (can carry out immediately after above-mentioned step S100 and step S200 process are finished, also can certain specified time after above-mentioned step S100 and step S200 process finish Execute after the section), the terminal device executes for each node that deletes the server ID:

在判断出该节点、根节点及该节点与根节点之间各节点的ACL中都不存在维护权限(如Replace权限和/或Delete权限)时,对该节点进行维护处理。When it is judged that there is no maintenance authority (such as Replace authority and/or Delete authority) in the ACL of the node, the root node and the nodes between the node and the root node, the node is maintained.

其中可以在终端设备中预先存储一个维护策略,终端设备在判断出满足上述条件需要进行维护处理的节点时,就可以按照预先存储的维护策略对该满足条件的节点进行维护处理了,当然也可以在需要对该节点进行维护时,提示用户输入相应的维护策略,终端设备就可以根据用户输入的维护策略对该节点执行相应的维护处理了。A maintenance strategy can be pre-stored in the terminal device. When the terminal device determines that a node that meets the above conditions needs to be maintained, it can maintain the node that meets the condition according to the pre-stored maintenance strategy. Of course, it can also When the node needs to be maintained, the user is prompted to input a corresponding maintenance policy, and the terminal device can perform corresponding maintenance processing on the node according to the maintenance policy input by the user.

其中可以但不限于采用下述三种维护策略中的一种作为对节点进行维护处理的方式,其维护策略可以由用户预先设定、也可以由终端设备(DM Client)自身预先设定,还可以由即将被删除管理权限的设备管理服务器预先设定:One of the following three maintenance strategies can be used, but not limited to, as a way to maintain the nodes. The maintenance strategy can be preset by the user, or by the terminal device (DM Client) itself. Can be pre-set by the device management server whose management rights are about to be removed:

A.将满足上述步骤S300中条件的动态节点为根的整个子树删除,这样终端设备在上述步骤S300中对满足步骤S300中条件的节点执行:终端设备判断该节点是否为动态节点,如果是则在DM树中删除以该节点为根的整个子树;A. Delete the entire subtree rooted at the dynamic node that meets the conditions in step S300, so that the terminal device executes on the node that meets the conditions in step S300 in the above step S300: the terminal device judges whether the node is a dynamic node, and if so Then delete the entire subtree rooted at the node in the DM tree;

或者终端设备判断该节点是否为动态节点,如果是则提示用户是否确认删除以该节点为根的整个子树,并在接收到用户的确认指令后,在DM树中删除以该节点为根的整个子树。Or the terminal device judges whether the node is a dynamic node, and if so, prompts the user to confirm whether to delete the entire subtree rooted at the node, and deletes the subtree rooted at the node in the DM tree after receiving the confirmation instruction from the user. the entire subtree.

B.将满足上述步骤S300中条件的节点的维护权限(如Replace权限和/或Delete权限)向所有通过认证的设备管理服务器开放,这样终端设备在上述步骤S300中对满足步骤S300中条件的节点执行:在为该节点维护的ACL中,将维护权限(如Replace权限和/或Delete权限)对应的DM Server ID设置为*。B. Open the maintenance authority (such as Replace authority and/or Delete authority) of the nodes meeting the conditions in the above step S300 to all authenticated device management servers, so that the terminal device will satisfy the nodes in the conditions in the step S300 in the above step S300 Execution: In the ACL maintained for this node, set the DM Server ID corresponding to the maintenance permission (such as Replace permission and/or Delete permission) to *.

C.由规定的设备管理服务器接管满足上述步骤S300中条件的节点的维护权限(如Replace权限和/或Delete权限),这样终端设备在上述步骤S300中对满足步骤S300中条件的节点执行:在为该节点维护的ACL中,将维护权限(如Replace权限和/或Delete权限)对应的DM Server ID设置为该规定的DM ServerID。其中具体指定由哪个设备管理服务器进行接管满足条件的子节点的Replace权限和/或Delete权限,可以由用户预先设定,也可以由DM Client自身预先设定,还可以由即将被删除管理权限的设备管理服务器预先设定。C. The specified device management server takes over the maintenance authority (such as Replace authority and/or Delete authority) of the node meeting the conditions in the above step S300, so that the terminal device executes on the node meeting the conditions in the step S300 in the above step S300: In the ACL maintained for this node, the DM Server ID corresponding to the maintenance authority (such as Replace authority and/or Delete authority) is set to the specified DM ServerID. Specifically specify which device management server will take over the Replace authority and/or Delete authority of the child nodes that meet the conditions, which can be preset by the user, or by the DM Client itself, or by the user whose management authority is about to be deleted. The device management server is preset.

上述第二实施例的主要实现过程即为在终端设备取消某个设备管理服务器对其的管理权限时,对整个DM树进行遍历处理(可以采用深度遍历方式或采用广度遍历方式),即对整个DM树中各节点的ACL信息进行扫描,如果发现某个节点的ACL中包含该设备管理服务器的标识,则将该节点的ACL中的该设备管理服务器标识删除,而不对该节点执行任何检测和判断处理,这样在完成整个DM树的上述操作处理后的某个时间点对每个删除服务器标识的节点进行下述维护操作:The main implementation process of the above-mentioned second embodiment is to perform traversal processing on the entire DM tree when the terminal device cancels the management authority of a certain device management server (the depth traversal method or the breadth traversal method can be adopted), that is, the entire DM tree is traversed. Scan the ACL information of each node in the DM tree. If the ACL of a node contains the ID of the device management server, delete the ID of the device management server in the ACL of the node without performing any detection and verification on the node. Judgment processing, such that at a certain point in time after the above-mentioned operation processing of the entire DM tree is completed, the following maintenance operations are performed on each node that deletes the server identifier:

分别判断该节点、根节点(Root)及该节点与根节点之间各节点的ACL中是否存在维护权限(如Replace权限和/或Delete权限),对于不存在维护权限(如既不存在Replace权限,也不存在Delete权限)的情况,则对该节点执行后续的维护处理。Judge whether there is maintenance authority (such as Replace authority and/or Delete authority) in the ACL of each node between this node, root node (Root) and this node and root node respectively, for not having maintenance authority (as neither having Replace authority , and there is no Delete permission), then perform subsequent maintenance processing on the node.

相应于本发明上述提出的第一种DM树维护方法,本发明这里还对应的提出了一种终端设备,如图13所示,为本发明提出的第一种终端设备的主要组成结构框图,其主要包括权限控制列表更新单元10、判断单元20和节点维护单元30三个组成部分,其中各个组成部分的主要作用如下:Corresponding to the first DM tree maintenance method proposed above in the present invention, the present invention also proposes a terminal device correspondingly here, as shown in FIG. 13 , which is a main structural block diagram of the first terminal device proposed in the present invention. It mainly includes three components: an authority control list update unit 10, a judgment unit 20 and a node maintenance unit 30. The main functions of each component are as follows:

权限控制列表更新单元10,用于更新DM树中相应节点的ACL信息;An authority control list update unit 10, configured to update the ACL information of the corresponding node in the DM tree;

判断单元20,用于判断上述权限控制列表更新单元10更新的节点、根节点及该更新的节点与根节点之间各节点的ACL中是否存在维护权限;A judging unit 20, configured to judge whether there is maintenance authority in the ACL of the node updated by the authority control list updating unit 10, the root node, and the nodes between the updated node and the root node;

节点维护单元30,用于在上述判断单元20的判断结果为否时,对上述权限控制列表更新单元10更新的该节点进行维护处理。The node maintenance unit 30 is configured to perform maintenance processing on the node updated by the authority control list updating unit 10 when the determination result of the determination unit 20 is negative.

同理,上述终端设备中提及的维护权限具体也可以指Replace权限,或Delete权限,或Replace权限和Delete权限。Similarly, the maintenance authority mentioned in the above terminal device may specifically refer to the Replace authority, or the Delete authority, or both the Replace authority and the Delete authority.

如图14所示,为本发明提出的第一种终端设备的第一实施例组成结构框图,其在上述图13的主要组成结构基础上,还进而包含一用于接收更新指令的更新指令接收单元40,其中更新指令用于触发终端设备更新相应节点的ACL信息;这样上述权限控制列表更新单元10就可以根据更新指令接收单元40接收到的更新指令更新相应节点的ACL信息了。As shown in Figure 14, it is a block diagram of the composition structure of the first embodiment of the first terminal device proposed by the present invention. On the basis of the main composition structure of the above-mentioned Figure 13, it further includes an update instruction receiving module for receiving update instructions. Unit 40, wherein the update instruction is used to trigger the terminal device to update the ACL information of the corresponding node; in this way, the authority control list update unit 10 can update the ACL information of the corresponding node according to the update instruction received by the update instruction receiving unit 40.

如图15所示,为本发明提出的第一种终端设备的第二实施例组成结构框图,其中上述图13中的权限控制列表更新单元10具体包括遍历子单元110和标识删除子单元120,其中:As shown in FIG. 15 , it is a structural block diagram of the second embodiment of the first type of terminal device proposed by the present invention, wherein the authority control list update unit 10 in FIG. 13 specifically includes a traversal subunit 110 and an identification deletion subunit 120, in:

遍历子单元110,用于终端设备在删除设备管理服务器的管理权限过程中,根据要删除的设备管理服务器的标识(ID)在DM树中遍历ACL信息中包含该要删除服务器标识的节点;The traversal subunit 110 is used for the terminal device to traverse the node in the DM tree that contains the identifier of the server to be deleted in the ACL information according to the identification (ID) of the device management server to be deleted during the process of deleting the management authority of the device management server;

标识删除子单元120,用于删除上述遍历子单元110遍历到的节点的ACL中包含的该要删除服务器的标识,以实现对相应节点的ACL信息进行更新处理。The identification deletion subunit 120 is configured to delete the identification of the server to be deleted contained in the ACL of the node traversed by the traversal subunit 110, so as to update the ACL information of the corresponding node.

其中该终端设备中还可以进而包括一维护策略存储单元,以用于预先存储一设定的维护策略;这样上述节点维护单元30在判断单元20的判断结果为否时,基于维护策略存储单元中存储的维护策略对权限控制列表更新单元10更新的该节点进行维护处理。当然终端设备也可以在需要对权限控制列表更新单元10更新的该节点进行维护处理时,提示用户输入相应的维护策略,终端设备就可以根据用户输入的维护策略来对该更新的节点执行相应的维护处理了。Wherein the terminal device may further include a maintenance strategy storage unit for pre-storing a set maintenance strategy; in this way, when the judgment result of the judging unit 20 is negative, the above-mentioned node maintenance unit 30, based on the maintenance strategy storage unit The stored maintenance policy performs maintenance processing on the node updated by the authority control list updating unit 10 . Of course, the terminal device can also prompt the user to input a corresponding maintenance policy when it needs to perform maintenance processing on the node updated by the authority control list updating unit 10, and the terminal device can perform corresponding maintenance policies on the updated node according to the maintenance policy input by the user. Maintenance is done.

其中节点维护单元30对相应节点进行维护处理可以有下述几种情况:Wherein, the node maintenance unit 30 may perform maintenance processing on the corresponding node in the following situations:

一种较优的方式是:节点维护单元30由一个第一判断子单元和一个第一子树删除子单元组成,其中第一判断子单元用于在上述判断单元20的判断结果为否时,判断权限控制列表更新单元10更新的节点是否为动态节点,第一子树删除子单元用于在第一判断子单元的判断结果为是时,删除以上述权限控制列表更新单元10更新的该动态节点为根的子树。A better manner is: the node maintenance unit 30 is composed of a first judgment subunit and a first subtree deletion subunit, wherein the first judgment subunit is used to, when the judgment result of the above judgment unit 20 is negative, Judging whether the node updated by the authority control list update unit 10 is a dynamic node, the first subtree deletion subunit is used to delete the dynamic node updated by the above-mentioned authority control list update unit 10 when the judgment result of the first judgment subunit is yes. The node is the root of the subtree.

另一种较优的方式是节点维护单元30在上述判断单元20的判断结果为否时,终端设备在用户确认的情况下,再将上述权限控制列表更新单元10更新的该动态节点为根的子树删除。如图16所示,为本发明第一种终端设备中节点维护单元的实施例组成结构框图,其主要包括第二判断子单元310、删除提示子单元320和第二子树删除子单元330,其中:Another preferred mode is that the node maintenance unit 30 uses the dynamic node updated by the above-mentioned authority control list update unit 10 as the root when the judgment result of the above-mentioned judging unit 20 is negative, and the terminal device is confirmed by the user. Subtree deletion. As shown in FIG. 16 , it is a structural block diagram of an embodiment of the node maintenance unit in the first terminal device of the present invention, which mainly includes a second judgment subunit 310, a deletion prompt subunit 320 and a second subtree deletion subunit 330, in:

第二判断子单元310,用于在上述判断单元20的判断结果为否时,判断上述权限控制列表更新单元10更新的节点是否为动态节点;The second judging subunit 310 is configured to judge whether the node updated by the authority control list updating unit 10 is a dynamic node when the judging result of the judging unit 20 is no;

删除提示子单元320,用于在上述判断单元20的判断结果为否时,提示用户是否确认删除以权限控制列表更新单元10更新的节点为根的子树;The deletion prompt subunit 320 is used to prompt the user whether to confirm the deletion of the subtree rooted at the node updated by the authority control list update unit 10 when the determination result of the above-mentioned determination unit 20 is No;

第二子树删除子单元330,用于在接收到用户的确认指令后,在DM树中删除以权限控制列表更新单元10更新的节点为根的子树。The second subtree deletion subunit 330 is configured to delete the subtree whose root is the node updated by the authority control list update unit 10 in the DM tree after receiving the confirmation instruction from the user.

另一种较优的方式是节点维护单元30在上述判断单元20的判断结果为否时,将上述权限控制列表更新单元10更新的该节点的维护权限向所有通过认证的设备管理服务器开放;即节点维护单元30在为权限控制列表更新单元10更新的该节点维护的ACL中,将该节点的维护权限(如Replace权限和/或Delete权限)对应的设备管理服务器标识设置为*。Another preferred manner is that the node maintenance unit 30 opens the maintenance authority of the node updated by the authority control list update unit 10 to all authenticated device management servers when the determination result of the determination unit 20 is No; The node maintenance unit 30 sets the device management server ID corresponding to the node's maintenance authority (such as Replace authority and/or Delete authority) to * in the ACL maintained by the node updated by the authority control list update unit 10 .

另一种较优的方式是节点维护单元30在上述判断单元20的判断结果为否时,指定规定的设备管理服务器对上述权限控制列表更新单元10更新的该节点的维护权限进行接管;即节点维护单元30在为权限控制列表更新单元10更新的该节点维护的ACL中,将该节点的维护权限(如Replace权限和/或Delete权限)对应的设备管理服务器标识设置为该规定的设备管理服务器标识。Another preferred mode is that the node maintenance unit 30 specifies a specified device management server to take over the maintenance authority of the node updated by the above-mentioned authority control list update unit 10 when the determination result of the above-mentioned determination unit 20 is No; In the ACL maintained by the node updated by the authority control list update unit 10, the maintenance unit 30 sets the equipment management server identification corresponding to the maintenance authority (such as Replace authority and/or Delete authority) of the node as the specified equipment management server logo.

此外有关本发明提出的第一种终端设备的其他具体相关技术实现细节请参照本发明上述方法中的相关技术实现细节描述,这里不再给以过多赘述。In addition, for other specific related technical implementation details of the first type of terminal device proposed in the present invention, please refer to the detailed description of related technical implementation in the above-mentioned method of the present invention, and no more details are given here.

本发明技术方案还提出终端设备可以在受到外界触发时,如接收到用户的触发指令时,或以预先设定的周期规律对自身DM树中的节点进行遍历,并对遍历到的每个节点执行:判断出遍历到的该节点、根节点及该节点与根节点之间各节点的ACL信息中不存在维护权限时,对遍历到的该节点进行维护处理。The technical solution of the present invention also proposes that the terminal device can traverse the nodes in its own DM tree in accordance with a preset periodic rule when it is triggered by the outside world, such as when it receives a trigger command from the user, and each node traversed Execution: when it is determined that there is no maintenance authority in the ACL information of the traversed node, the root node, and nodes between the traversed node and the root node, perform maintenance processing on the traversed node.

如图17所示,为本发明提出的第二种DM树维护方法的主要实现原理流程图,其主要实现过程如下:As shown in Figure 17, it is a flow chart of the main realization principle of the second DM tree maintenance method proposed by the present invention, and its main realization process is as follows:

步骤S500,终端设备遍历自身DM树中的各节点,其中终端设备可以在接收到用户的触发消息时对自身DM树中的各节点进行遍历,也可以通过预先存储一设定的周期规律,在到达每个周期时间点时自动执行对自身DM树中的各节点进行遍历;Step S500, the terminal device traverses each node in its own DM tree, wherein the terminal device can traverse each node in its own DM tree when receiving a trigger message from the user, or store a set periodic rule in advance, When each cycle time point is reached, it automatically executes the traversal of each node in its own DM tree;

步骤S600,终端设备在遍历到每个节点时执行:判断出遍历到的该节点、根节点及该节点与根节点之间各节点的ACL信息中不存在维护权限时,对遍历到的该节点进行维护处理。Step S600, the terminal device executes when traversing each node: when it is judged that there is no maintenance authority in the ACL information of the traversed node, the root node, and the nodes between the node and the root node, the traversed node Perform maintenance processing.

其中终端设备对遍历到的满足上述判断条件的节点进行维护的方式可以但不限于指以下处理方式:The manner in which the terminal device maintains the traversed nodes meeting the above judgment conditions may, but is not limited to, refer to the following processing methods:

1.终端设备判断该节点是否为动态节点,如果是则在DM树中将该节点为根的子树删除,或在用户确认的情况下将该节点为根的子树删除;1. The terminal device judges whether the node is a dynamic node, and if so, deletes the subtree rooted at the node in the DM tree, or deletes the subtree rooted at the node upon confirmation by the user;

2.将该节点的维护权限向所有通过认证的DM Server开放;2. Open the maintenance authority of the node to all certified DM Servers;

3.指定规定的DM Server对该节点的维护权限进行接管。3. Designate the specified DM Server to take over the maintenance authority of the node.

其中维护权限具体可以指DM Server对终端设备中DM树节点执行更新处理的替换权限(Replace权限);也可以指DM Server对终端设备中DM树节点执行删除处理的删除权限(Delete权限);还可以指Replace权限和Delete权限。Wherein the maintenance authority specifically can refer to the replacement authority (Replace authority) that the DM Server performs update processing on the DM tree node in the terminal device; it can also refer to the deletion authority (Delete authority) that the DM Server performs the deletion process on the DM tree node in the terminal device; It can refer to the Replace permission and the Delete permission.

显然这种DM树维护方法也可以实现防止在终端设备中出现垃圾子树或垃圾节点,从而避免了过多的垃圾子树或垃圾节点对终端设备整体处理性能所造成的影响,及减小了DM Server获取终端设备中DM树整体结构信息时所需获取的信息量,达到了节约空口传输资源的目的。Obviously, this DM tree maintenance method can also prevent garbage subtrees or garbage nodes from appearing in the terminal equipment, thereby avoiding the impact of too many garbage subtrees or garbage nodes on the overall processing performance of the terminal equipment, and reducing the The amount of information that the DM Server needs to obtain when obtaining the overall structure information of the DM tree in the terminal device achieves the purpose of saving air interface transmission resources.

相应于本发明上述提出的第二种DM树维护方法,本发明这里还对应的提出了一种终端设备,如图18所示,为本发明提出的第二种终端设备的主要组成结构框图,其主要包括节点遍历单元100、判断单元200和节点维护单元300三个组成部分,其中各个组成单元的具体作用如下:Corresponding to the second DM tree maintenance method proposed above in the present invention, the present invention also proposes a terminal device correspondingly here, as shown in FIG. 18 , which is a main structural block diagram of the second terminal device proposed in the present invention. It mainly includes three components: a node traversal unit 100, a judgment unit 200 and a node maintenance unit 300. The specific functions of each component unit are as follows:

节点遍历单元100,用于遍历DM树中的各节点;其中节点遍历单元100可以在接收到用户的触发消息时对终端设备中的DM树的各节点进行遍历,也可以通过在终端设备中预先存储一设定的周期规律,在到达每个周期时间点时自动执行对终端设备中DM树的各节点进行遍历;The node traversal unit 100 is configured to traverse each node in the DM tree; wherein the node traversal unit 100 may traverse each node of the DM tree in the terminal device when receiving a trigger message from the user, or may pass Store a set cycle rule, and automatically execute the traversal of each node of the DM tree in the terminal device when each cycle time point is reached;

判断单元200,用于在节点遍历单元100遍历到每个节点时,判断上述节点遍历单元100遍历到的节点、根节点及该遍历到节点与根节点之间各节点的ACL信息中是否存在维护权限;The judging unit 200 is configured to judge whether the node traversed by the node traversing unit 100, the root node, and the ACL information of each node between the traversed node and the root node are maintained when the node traversing unit 100 traverses each node. authority;

节点维护单元300,用于在上述判断单元200的判断结果为否时,对节点遍历单元100遍历到的该节点进行维护。The node maintenance unit 300 is configured to maintain the node traversed by the node traversing unit 100 when the determination result of the determination unit 200 is negative.

同理,上述终端设备中提及的维护权限具体也可以指Replace权限,或Delete权限,或Replace权限和Delete权限。Similarly, the maintenance authority mentioned in the above terminal device may specifically refer to the Replace authority, or the Delete authority, or both the Replace authority and the Delete authority.

其中该终端设备中还可以进而包括一维护策略存储单元,以用于预先存储一设定的维护策略;这样上述节点维护单元300在判断单元200的判断结果为否时,基于维护策略存储单元中存储的维护策略对节点遍历单元100遍历到的该节点进行维护处理。当然终端设备也可以在需要对节点遍历单元100遍历到的该节点进行维护处理时,提示用户输入相应的维护策略,终端设备就可以根据用户输入的维护策略来对该遍历到的节点执行相应的维护处理了。Wherein the terminal device may further include a maintenance strategy storage unit for pre-storing a set maintenance strategy; in this way, when the judgment result of the judgment unit 200 is negative, the above-mentioned node maintenance unit 300, based on the maintenance strategy storage unit The stored maintenance policy performs maintenance processing on the node traversed by the node traversing unit 100 . Of course, the terminal device can also prompt the user to input a corresponding maintenance strategy when it is necessary to perform maintenance processing on the node traversed by the node traversal unit 100, and the terminal device can perform corresponding maintenance on the traversed node according to the maintenance strategy input by the user. Maintenance is done.

其中节点维护单元300对遍历到的满足判断条件的节点进行维护处理可以有下述几种情况:Wherein, the node maintenance unit 300 may perform maintenance processing on the traversed nodes satisfying the judgment conditions, which may have the following situations:

一种较优的方式是:节点维护单元300由一个第一判断子单元和一个第一子树删除子单元组成,其中第一判断子单元用于在上述判断单元200的判断结果为否时,判断节点遍历单元100遍历到的节点是否为动态节点,第一子树删除子单元用于在上述第一判断子单元的判断结果为是时,删除以上述节点遍历单元100遍历到的该动态节点为根的子树。A better manner is: the node maintenance unit 300 is composed of a first judgment subunit and a first subtree deletion subunit, wherein the first judgment subunit is used to, when the judgment result of the judgment unit 200 is no, Judging whether the node traversed by the node traversal unit 100 is a dynamic node, the first subtree deletion subunit is used to delete the dynamic node traversed by the above-mentioned node traversal unit 100 when the judgment result of the above-mentioned first judgment subunit is yes rooted subtree.

另一种较优的方式是节点维护单元300在上述判断单元200的判断结果为否时,终端设备在用户确认的情况下,再将上述节点遍历单元100遍历到的该动态节点为根的子树删除。如图19所示,为本发明第二种终端设备中节点维护单元的实施例组成结构框图,其主要包括第二判断子单元3010、删除提示子单元3020和子树删除子单元3030,其中:Another better way is that when the judgment result of the above judgment unit 200 is negative, the terminal device will take the dynamic node traversed by the above node traversal unit 100 as the child of the root under the condition of the user's confirmation. Tree deletion. As shown in FIG. 19 , it is a structural block diagram of an embodiment of the node maintenance unit in the second terminal device of the present invention, which mainly includes a second judgment subunit 3010, a deletion prompt subunit 3020 and a subtree deletion subunit 3030, wherein:

第二判断子单元3010,用于在上述判断单元200的判断结果为否时,判断上述节点遍历单元100遍历到的节点是否为动态节点;The second judging subunit 3010 is configured to judge whether the node traversed by the node traversing unit 100 is a dynamic node when the judging result of the judging unit 200 is negative;

删除提示子单元3010,用于在上述第二判断子单元3010的判断结果为是时,提示用户是否确认删除以节点遍历单元100遍历到的该动态节点为根的子树;The deletion prompt subunit 3010 is used to prompt the user whether to confirm the deletion of the subtree rooted at the dynamic node traversed by the node traversal unit 100 when the judgment result of the second judgment subunit 3010 is yes;

第二子树删除子单元3030,用于在接收到用户的确认指令后,在DM树中删除以节点遍历单元100遍历到的该动态节点为根的子树。The second subtree deletion subunit 3030 is configured to delete the subtree whose root is the dynamic node traversed by the node traversal unit 100 in the DM tree after receiving the confirmation instruction from the user.

另一种较优的方式是节点维护单元300在上述判断单元200的判断结果为否时,将上述节点遍历单元100遍历到的该节点的维护权限向所有通过认证的设备管理服务器开放;即节点维护单元300在为节点遍历单元100遍历到的该节点维护的ACL中,将该节点的维护权限(如Replace权限和/或Delete权限)对应的设备管理服务器标识设置为*。Another preferred mode is that the node maintenance unit 300 opens the maintenance authority of the node traversed by the above-mentioned node traversal unit 100 to all authenticated device management servers when the judgment result of the above-mentioned judgment unit 200 is No; The maintenance unit 300 sets the device management server identifier corresponding to the maintenance authority (such as the Replace authority and/or the Delete authority) of the node to * in the ACL maintained for the node traversed by the node traversal unit 100 .

另一种较优的方式是节点维护单元30在上述判断单元20的判断结果为否时,指定规定的设备管理服务器对上述权限控制列表更新单元10更新的该节点的维护权限进行接管;即节点维护单元300在为节点遍历单元100遍历到的该节点维护的ACL中,将该节点的维护权限(如Replace权限和/或Delete权限)对应的设备管理服务器标识设置为该规定的设备管理服务器标识。Another preferred mode is that the node maintenance unit 30 specifies a specified device management server to take over the maintenance authority of the node updated by the above-mentioned authority control list update unit 10 when the determination result of the above-mentioned determination unit 20 is No; In the ACL maintained by the node traversed by the node traversing unit 100, the maintenance unit 300 sets the device management server identifier corresponding to the node's maintenance authority (such as Replace authority and/or Delete authority) as the specified device management server identifier .

另外有关本发明提出的第二种终端设备的其他具体相关技术实现细节请参照本发明上述方法中的相关技术实现细节描述,这里不再给以过多赘述。In addition, for other specific related technical implementation details of the second type of terminal device proposed in the present invention, please refer to the related technical implementation details in the above-mentioned method of the present invention, and no more details are given here.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (40)

1、一种设备管理树的维护方法,其特征在于,包括步骤:1. A method for maintaining a device management tree, comprising the steps of: 终端设备更新设备管理树中相应节点的权限控制列表;并The terminal device updates the permission control list of the corresponding node in the device management tree; and 在判断出更新后的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对该节点进行维护。When it is determined that there is no maintenance authority in the updated authority control lists of the node, the root node, and nodes between the node and the root node, the node is maintained. 2、如权利要求1所述的方法,其特征在于,还包括终端设备接收更新指令的步骤,所述更新指令用于触发终端设备更新相应节点的权限控制列表;2. The method according to claim 1, further comprising the step of the terminal device receiving an update instruction, the update instruction being used to trigger the terminal device to update the authority control list of the corresponding node; 终端设备根据所述接收到的更新指令更新相应节点的权限控制列表。The terminal device updates the permission control list of the corresponding node according to the received update instruction. 3、如权利要求1所述的方法,其特征在于,所述更新相应节点的权限控制列表是指:终端设备在删除设备管理服务器的管理权限过程中,若在设备管理树中遍历到权限控制列表中包含该要删除的设备管理服务器标识的节点时,将该遍历到的节点的权限控制列表中包含的该服务器标识进行删除。3. The method according to claim 1, wherein updating the authority control list of the corresponding node refers to: when the terminal device deletes the management authority of the device management server, if the authority control list is traversed in the device management tree When the list contains the node with the ID of the device management server to be deleted, the server ID included in the authority control list of the traversed node is deleted. 4、如权利要求3所述的方法,其特征在于,终端设备接收用户下发的删除设备管理服务器管理权限的删除指令;并4. The method according to claim 3, wherein the terminal device receives a deletion instruction issued by the user to delete the management authority of the device management server; and 根据删除指令中包含的要删除的设备管理服务器的标识执行删除该设备管理服务器的管理权限的处理。The process of deleting the management authority of the device management server is performed according to the identifier of the device management server to be deleted contained in the deletion instruction. 5、如权利要求3所述的方法,其特征在于,终端设备接收对应设备管理服务器下发的删除设备管理服务器管理权限的删除指令;并5. The method according to claim 3, wherein the terminal device receives a deletion instruction issued by the corresponding device management server to delete the management authority of the device management server; and 根据删除指令中包含的对应要删除的设备管理服务器的标识执行删除该设备管理服务器的管理权限的处理。The process of deleting the management authority of the device management server is performed according to the identifier corresponding to the device management server to be deleted included in the deletion instruction. 6、如权利要求1所述的方法,其特征在于,对该节点进行维护是指:6. The method according to claim 1, wherein maintaining the node refers to: 终端设备判断该节点是否为动态节点,若是则在设备管理树中将该节点为根的子树进行删除。The terminal device judges whether the node is a dynamic node, and if so, deletes the subtree rooted at the node in the device management tree. 7、如权利要求1所述的方法,其特征在于,对该节点进行维护是指:7. The method according to claim 1, wherein maintaining the node refers to: 终端设备判断该节点是否为动态节点,若是则提示用户是否确认删除以该节点为根的子树;并The terminal device judges whether the node is a dynamic node, and if so, prompts the user whether to confirm deletion of the subtree rooted at the node; and 在接收到用户的确认指令后,在设备管理树中删除以该节点为根的子树。After receiving the confirmation instruction from the user, delete the subtree rooted at the node in the device management tree. 8、如权利要求1所述的方法,其特征在于,对该节点进行维护是指将该节点的维护权限向所有通过认证的设备管理服务器开放。8. The method according to claim 1, wherein maintaining the node refers to opening the maintenance authority of the node to all authenticated device management servers. 9、如权利要求1所述的方法,其特征在于,对该节点进行维护是指由规定的设备管理服务器对该节点的维护权限进行接管。9. The method according to claim 1, wherein maintaining the node means that a specified device management server takes over the maintenance authority of the node. 10、如权利要求1、8或9所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。10. The method according to claim 1, 8 or 9, wherein the maintenance authority is a replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device. 11、如权利要求1、8或9所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。11. The method according to claim 1, 8 or 9, wherein the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device. 12、如权利要求1、8或9所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限;和12. The method according to claim 1, 8 or 9, wherein the maintenance authority is a replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device; and 对终端设备中设备管理树节点执行删除处理的删除权限。Deletion authority to perform deletion processing on the device management tree node in the terminal device. 13、一种终端设备,其特征在于,包括:13. A terminal device, characterized by comprising: 权限控制列表更新单元,用于更新设备管理树中相应节点的权限控制列表;An authority control list updating unit, configured to update the authority control list of the corresponding node in the device management tree; 判断单元,用于判断所述权限控制列表更新单元更新的节点、根节点及该更新的节点与根节点之间各节点的权限控制列表中是否存在维护权限;A judging unit, configured to judge whether there is maintenance authority in the authority control list of the node updated by the authority control list updating unit, the root node, and each node between the updated node and the root node; 节点维护单元,用于在所述判断单元的判断结果为否时,对所述权限控制列表更新单元更新的节点进行维护。A node maintenance unit, configured to maintain the node updated by the authority control list updating unit when the judgment result of the judging unit is negative. 14、如权利要求13所述的终端设备,其特征在于,还包括用于接收更新指令的更新指令接收单元,所述更新指令用于触发终端设备更新相应节点的权限控制列表;14. The terminal device according to claim 13, further comprising an update instruction receiving unit configured to receive an update instruction, the update instruction being used to trigger the terminal device to update the permission control list of the corresponding node; 所述权限控制列表更新单元根据更新指令接收单元接收到的更新指令更新相应节点的权限控制列表。The authority control list updating unit updates the authority control list of the corresponding node according to the update instruction received by the update instruction receiving unit. 15、如权利要求13所述的终端设备,其特征在于,所述权限控制列表更新单元具体包括:15. The terminal device according to claim 13, wherein the permission control list update unit specifically includes: 遍历子单元,用于终端设备在删除设备管理服务器的管理权限过程中,根据要删除的设备管理服务器的标识在设备管理树中遍历权限控制列表中包含该要删除服务器标识的节点;The traversal subunit is used for the terminal device to traverse the node in the device management tree that contains the identifier of the server to be deleted in the device management tree according to the identifier of the device management server to be deleted during the process of deleting the management authority of the device management server; 标识删除子单元,用于删除所述遍历子单元遍历到的节点的权限控制列表中包含的该要删除服务器的标识。The identifier deletion subunit is used to delete the identifier of the server to be deleted contained in the permission control list of the node traversed by the traversal subunit. 16、如权利要求13所述的终端设备,其特征在于,还包括维护策略存储单元,用于预先存储一设定的维护策略;16. The terminal device according to claim 13, further comprising a maintenance policy storage unit for pre-storing a set maintenance policy; 所述节点维护单元按照所述维护策略存储单元中存储的维护策略对更新的节点进行维护。The node maintenance unit maintains the updated node according to the maintenance policy stored in the maintenance policy storage unit. 17、如权利要求13所述的终端设备,其特征在于,所述节点维护单元具体包括:17. The terminal device according to claim 13, wherein the node maintenance unit specifically includes: 第一判断子单元,用于在所述判断单元的判断结果为否时,判断权限控制列表更新单元更新的该节点是否为动态节点;The first judging subunit is used to judge whether the node updated by the authority control list updating unit is a dynamic node when the judging result of the judging unit is no; 第一子树删除子单元,用于在第一判断子单元的判断结果为是时,删除以权限控制列表更新单元更新的该节点为根的子树。The first subtree deletion subunit is configured to delete the subtree rooted at the node updated by the authority control list update unit when the determination result of the first determination subunit is yes. 18、如权利要求13所述的终端设备,其特征在于,所述节点维护单元具体包括:18. The terminal device according to claim 13, wherein the node maintenance unit specifically includes: 第二判断子单元,用于在所述判断单元的判断结果为否时,判断权限控制列表更新单元更新的该节点是否为动态节点;The second judging subunit is used to judge whether the node updated by the authority control list updating unit is a dynamic node when the judging result of the judging unit is No; 删除提示子单元,用于在第二判断子单元的判断结果为是时,提示用户是否确认删除以权限控制列表更新单元更新的该节点为根的子树;The deletion prompt subunit is used to prompt the user whether to confirm the deletion of the subtree rooted at the node updated by the authority control list update unit when the judgment result of the second judging subunit is Yes; 第二子树删除子单元,用于在接收到用户的确认指令后,删除以权限控制列表更新单元更新的该节点为根的子树。The second subtree deletion subunit is configured to delete the subtree rooted at the node updated by the authority control list update unit after receiving the confirmation instruction from the user. 19、如权利要求13所述的终端设备,其特征在于,所述节点维护单元通过将权限控制列表更新单元更新的节点的维护权限向所有通过认证的设备管理服务器开放来对该更新的节点进行维护。19. The terminal device according to claim 13, characterized in that, the node maintenance unit performs maintenance on the updated node by opening the maintenance authority of the node updated by the authority control list updating unit to all authenticated device management servers. maintain. 20、如权利要求19所述的终端设备,其特征在于,所述节点维护单元通过指定规定的设备管理服务器对权限控制列表更新单元更新的节点的维护权限进行接管来对该更新的节点进行维护。20. The terminal device according to claim 19, wherein the node maintenance unit maintains the updated node by designating a specified device management server to take over the maintenance authority of the node updated by the authority control list updating unit . 21、如权利要求13、19或20所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。21. The terminal device according to claim 13, 19 or 20, wherein the maintenance authority is a replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device. 22、如权利要求13、19或20所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。22. The terminal device according to claim 13, 19 or 20, wherein the maintenance right is a deletion right for the device management server to perform deletion processing on the device management tree nodes in the terminal device. 23、如权利要求13、19或20所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限和对终端设备中设备管理树节点执行删除处理的删除权限。23. The terminal device according to claim 13, 19 or 20, wherein the maintenance authority is the replacement authority of the device management server to perform update processing on the device management tree nodes in the terminal device and the device management tree node in the terminal device. Delete permission for the node to perform delete processing. 24、一种设备管理树的维护方法,其特征在于,包括步骤:24. A method for maintaining a device management tree, comprising the steps of: 终端设备遍历设备管理树中的节点;并the end device traverses the nodes in the device management tree; and 在遍历到每个节点时执行:判断出遍历到的该节点、根节点及该节点与根节点之间各节点的权限控制列表中不存在维护权限时,对遍历到的该节点进行维护。Execute when each node is traversed: when it is determined that there is no maintenance authority in the authority control list of the traversed node, the root node, and nodes between the traversed node and the root node, maintain the traversed node. 25、如权利要求24所述的方法,其特征在于,对遍历到的该节点进行维护是指:25. The method according to claim 24, wherein maintaining the traversed node refers to: 终端设备判断该节点是否为动态节点,若是则在设备管理树中将该节点为根的子树删除。The terminal device judges whether the node is a dynamic node, and if so, deletes the subtree rooted at the node in the device management tree. 26、如权利要求24所述的方法,其特征在于,对遍历到的该节点进行维护是指:26. The method according to claim 24, wherein maintaining the traversed node refers to: 终端设备判断该节点是否为动态节点,若是则提示用户是否确认删除以该节点为根的子树;并The terminal device judges whether the node is a dynamic node, and if so, prompts the user whether to confirm deletion of the subtree rooted at the node; and 在接收到用户的确认指令后,在设备管理树中删除以该节点为根的子树。After receiving the confirmation instruction from the user, delete the subtree rooted at the node in the device management tree. 27、如权利要求24所述的方法,其特征在于,对遍历到的该节点进行维护是指将该节点的维护权限向所有通过认证的设备管理服务器开放。27. The method according to claim 24, wherein maintaining the traversed node means opening the maintenance authority of the node to all authenticated device management servers. 28、如权利要求24所述的方法,其特征在于,对遍历到的该节点进行维护是指由规定的设备管理服务器对该节点的维护权限进行接管。28. The method according to claim 24, wherein maintaining the traversed node means that a specified device management server takes over the maintenance authority of the node. 29、如权利要求24、27或28所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。29. The method according to claim 24, 27 or 28, wherein the maintenance authority is a replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device. 30、如权利要求24、27或28所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。30. The method according to claim 24, 27 or 28, wherein the maintenance authority is a deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device. 31、如权利要求24、27或28所述的方法,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限;和31. The method according to claim 24, 27 or 28, wherein the maintenance authority is the replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device; and 对终端设备中设备管理树节点执行删除处理的删除权限。Deletion authority to perform deletion processing on the device management tree node in the terminal device. 32、一种终端设备,其特征在于,包括:32. A terminal device, characterized by comprising: 节点遍历单元,用于遍历设备管理树中的节点;The node traversal unit is used to traverse the nodes in the device management tree; 判断单元,用于在所述节点遍历单元遍历到每个节点时,判断所述节点遍历单元遍历到的节点、根节点及该遍历到节点与根节点之间各节点的权限控制列表中是否存在维护权限;A judging unit, configured to judge whether the node traversed by the node traversing unit, the root node, and the authority control list of each node between the traversed node and the root node exist when the node traversing unit traverses each node. maintenance authority; 节点维护单元,用于在所述判断单元的判断结果为否时,对遍历到的该节点进行维护。The node maintenance unit is configured to maintain the traversed node when the determination result of the determination unit is negative. 33、如权利要求32所述的终端设备,其特征在于,还包括维护策略存储单元,用于预先存储一设定的维护策略;33. The terminal device according to claim 32, further comprising a maintenance policy storage unit for pre-storing a set maintenance policy; 所述节点维护单元按照所述维护策略存储单元中存储的维护策略对节点进行维护。The node maintenance unit maintains the nodes according to the maintenance policy stored in the maintenance policy storage unit. 34、如权利要求32所述的终端设备,其特征在于,所述节点维护单元具体包括:34. The terminal device according to claim 32, wherein the node maintenance unit specifically includes: 第一判断子单元,用于在所述判断单元的判断结果为否时,判断节点遍历单元遍历到的该节点是否为动态节点;The first judging subunit is used to judge whether the node traversed by the node traversing unit is a dynamic node when the judging result of the judging unit is no; 第一子树删除子单元,用于在第一判断子单元的判断结果为是时,删除以节点遍历单元遍历到的该节点为根的子树。The first subtree deletion subunit is configured to delete the subtree rooted at the node traversed by the node traversal unit when the determination result of the first determination subunit is yes. 35、如权利要求32所述的终端设备,其特征在于,所述节点维护单元具体包括:35. The terminal device according to claim 32, wherein the node maintenance unit specifically includes: 第二判断子单元,用于在所述判断单元的判断结果为否时,判断节点遍历单元遍历到的该节点是否为动态节点;The second judging subunit is used to judge whether the node traversed by the node traversing unit is a dynamic node when the judging result of the judging unit is No; 删除提示子单元,用于在第二判断子单元的判断结果为是时,提示用户是否确认删除以节点遍历单元遍历到的该节点为根的子树;The deletion prompt subunit is used to prompt the user whether to confirm the deletion of the subtree rooted at the node traversed by the node traversal unit when the judgment result of the second judging subunit is Yes; 第二子树删除子单元,用于在接收到用户的确认指令后,删除以节点遍历单元遍历到的该节点为根的子树。The second subtree deletion subunit is configured to delete the subtree whose root is the node traversed by the node traversal unit after receiving the confirmation instruction from the user. 36、如权利要求32所述的终端设备,其特征在于,所述节点维护单元通过将遍历到的该节点的维护权限向所有通过认证的设备管理服务器开放来对该节点进行维护。36. The terminal device according to claim 32, wherein the node maintenance unit maintains the node by opening the maintenance authority of the traversed node to all authenticated device management servers. 37、如权利要求32所述的终端设备,其特征在于,所述节点维护单元通过指定规定的设备管理服务器对遍历到的该节点的维护权限进行接管来对该节点进行维护。37. The terminal device according to claim 32, wherein the node maintenance unit maintains the node by designating a specified device management server to take over the maintenance authority of the traversed node. 38、如权利要求32、36或37所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限。38. The terminal device according to claim 32, 36 or 37, wherein the maintenance authority is a replacement authority for the device management server to perform update processing on the device management tree nodes in the terminal device. 39、如权利要求32、36或37所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行删除处理的删除权限。39. The terminal device according to claim 32, 36 or 37, wherein the maintenance authority is the deletion authority for the device management server to perform deletion processing on the device management tree nodes in the terminal device. 40、如权利要求32、36或37所述的终端设备,其特征在于,所述维护权限为设备管理服务器对终端设备中设备管理树节点执行更新处理的替换权限和对终端设备中设备管理树节点执行删除处理的删除权限。40. The terminal device according to claim 32, 36 or 37, wherein the maintenance authority is the replacement authority of the device management server to perform update processing on the device management tree nodes in the terminal device and the device management tree node in the terminal device. Delete permission for the node to perform delete processing.
CN2006100901554A 2006-05-23 2006-06-29 Maintenance method of device management tree and terminal device Active CN101080077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100901554A CN101080077B (en) 2006-05-23 2006-06-29 Maintenance method of device management tree and terminal device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200610081073.3 2006-05-23
CN200610081073 2006-05-23
CN2006100901554A CN101080077B (en) 2006-05-23 2006-06-29 Maintenance method of device management tree and terminal device

Publications (2)

Publication Number Publication Date
CN101080077A true CN101080077A (en) 2007-11-28
CN101080077B CN101080077B (en) 2011-07-13

Family

ID=38907245

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100901554A Active CN101080077B (en) 2006-05-23 2006-06-29 Maintenance method of device management tree and terminal device

Country Status (1)

Country Link
CN (1) CN101080077B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572957A (en) * 2008-02-04 2012-07-11 华为技术有限公司 Method, terminal, apparatus and system for device management
CN103023817A (en) * 2012-11-23 2013-04-03 汉柏科技有限公司 Data packet processing method based on ACL (Access Control List)
CN104937895A (en) * 2013-01-18 2015-09-23 Lg电子株式会社 Method and apparatus for controlling access in wireless communication system
US9246781B2 (en) 2008-02-04 2016-01-26 Huawei Technologies Co., Ltd. Method, terminal, apparatus, and system for device management
CN105515806A (en) * 2014-09-24 2016-04-20 中兴通讯股份有限公司 Software version processing method and device
CN107992906A (en) * 2018-01-02 2018-05-04 联想(北京)有限公司 A kind of model treatment method, system, terminal device and server
CN110955710A (en) * 2019-11-26 2020-04-03 杭州数梦工场科技有限公司 A method and device for processing dirty data in a data exchange operation
CN115603923A (en) * 2021-06-28 2023-01-13 深信服科技股份有限公司(Cn) Access Control List (ACL) policy management method, device and related equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212247A1 (en) * 2012-02-15 2013-08-15 Htc Corporation Method of Handling Triggered Trap Management Object

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005096145A2 (en) * 2004-03-22 2005-10-13 Motorola Inc., A Corporation Of The State Of Delaware Method and apparatus for dynamic extension of device management tree data model on a mobile device
US20050232175A1 (en) * 2004-04-16 2005-10-20 Vadim Draluk System and method for provisioning device management tree parameters over a client provisioning protocol
CN1744526A (en) * 2005-09-22 2006-03-08 中国移动通信集团公司 Method of terminal information control

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572957B (en) * 2008-02-04 2014-08-20 华为技术有限公司 Method, terminal, apparatus and system for device management
CN102572957A (en) * 2008-02-04 2012-07-11 华为技术有限公司 Method, terminal, apparatus and system for device management
US9246781B2 (en) 2008-02-04 2016-01-26 Huawei Technologies Co., Ltd. Method, terminal, apparatus, and system for device management
CN103023817B (en) * 2012-11-23 2016-04-20 汉柏科技有限公司 A kind of data package processing method based on ACL
CN103023817A (en) * 2012-11-23 2013-04-03 汉柏科技有限公司 Data packet processing method based on ACL (Access Control List)
CN104937895A (en) * 2013-01-18 2015-09-23 Lg电子株式会社 Method and apparatus for controlling access in wireless communication system
US9900727B2 (en) 2013-01-18 2018-02-20 Lg Electronics Inc. Method and apparatus for controlling access in wireless communication system
CN104937895B (en) * 2013-01-18 2018-04-24 Lg电子株式会社 Method and device for controlling access in wireless communication system
CN105515806A (en) * 2014-09-24 2016-04-20 中兴通讯股份有限公司 Software version processing method and device
CN107992906A (en) * 2018-01-02 2018-05-04 联想(北京)有限公司 A kind of model treatment method, system, terminal device and server
CN110955710A (en) * 2019-11-26 2020-04-03 杭州数梦工场科技有限公司 A method and device for processing dirty data in a data exchange operation
CN115603923A (en) * 2021-06-28 2023-01-13 深信服科技股份有限公司(Cn) Access Control List (ACL) policy management method, device and related equipment
CN115603923B (en) * 2021-06-28 2025-06-20 深信服科技股份有限公司 Access control list (ACL) policy management method, device and related equipment

Also Published As

Publication number Publication date
CN101080077B (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN1794657A (en) Method and system for managing terminal equipment
CN1801743A (en) Terminal equipment managing method
CN1855900A (en) Gateway system
CN1680959A (en) Process editing device and method and process management device and method
CN101060427A (en) A system and method for realizing the remote software updating
CN101068158A (en) Network configuration management method and system
CN1968101A (en) Method, system and administrative server for front-end equipment control
CN1852107A (en) Method and system for disclosing and acquiring relationship information
CN101047707A (en) Method and system for initiating equipment ability information consultation
CN101051937A (en) User's power managing method and system based on XML
CN101047667A (en) Data processing device and data processing method
CN1889741A (en) Method and apparatus for realizing scheduled operation in equipment management
CN101080077A (en) Maintenance method of device management tree and terminal device
CN101064878A (en) Mobile terminal for realizing content filtering, system, network entity and method
CN1859177A (en) Method for processing customized task in equipment management
CN1794647A (en) Method and its system upload terminal information in equipment management
CN1859402A (en) XML file manging system and its method, and control method for XML file access
CN1852138A (en) Terminal management method and system
CN1852153A (en) Fault/alarm management system and method based on simple network management protocol
CN1859194A (en) Terminal equipment managing method and its system, and terminal equipment
CN101043401A (en) Method for distributing and updating network service flow identification
CN1259627C (en) Service information providing system, service information providing method and control station
CN101060703A (en) User equipment switching policy and charging control method
CN1153134C (en) System and method for updating program execution file in execution
CN100337176C (en) Method and device for limitting authority performing in digital copyright

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant