CN102143125B - Access method of converged internet protocol messaging (CPM) session history record and message storage server - Google Patents
Access method of converged internet protocol messaging (CPM) session history record and message storage server Download PDFInfo
- Publication number
- CN102143125B CN102143125B CN201010120039.9A CN201010120039A CN102143125B CN 102143125 B CN102143125 B CN 102143125B CN 201010120039 A CN201010120039 A CN 201010120039A CN 102143125 B CN102143125 B CN 102143125B
- Authority
- CN
- China
- Prior art keywords
- information
- storage server
- record
- cpm
- message storage
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种CPM会谈历史记录的访问方法及消息存储服务器。在上述方法中,消息存储服务器接收来自于客户端的访问指令;消息存储服务器解析访问指令获取需要访问的文件目录标识,并获取文件目录标识对应的链接元数据信息;消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作。根据本发明提供的上述技术方案,在满足用户对消息存储服务器上存储的记录资源的自定义管理操作之外,还能够为用户提供多种视图,在尽量减小消息存储服务器管理开销的前提下,能够为用户提供良好的业务体验。
The invention discloses a method for accessing CPM conversation history records and a message storage server. In the above method, the message storage server receives the access instruction from the client; the message storage server parses the access instruction to obtain the file directory identifier to be accessed, and obtains the link metadata information corresponding to the file directory identifier; the message storage server according to the link metadata information Execute the access operation corresponding to the access instruction. According to the above technical solution provided by the present invention, in addition to satisfying user-defined management operations on record resources stored on the message storage server, it can also provide users with multiple views, and on the premise of reducing the management overhead of the message storage server as much as possible , can provide users with a good business experience.
Description
技术领域 technical field
本发明涉及通信领域,具体而言,涉及一种融合的IP消息(Converged IP Messaging,简称为CPM)会谈历史记录的访问方法及消息存储服务器。The present invention relates to the field of communications, in particular to a method for accessing a Converged IP Messaging (CPM for short) conversation history record and a message storage server.
背景技术 Background technique
融合的IP消息(Converged IP Messaging,简称为CPM)使能者是由OMA组织提出的一种可以跨越不同接入网,架构在统一的IP核心网之上,以支持终端用户的一对一、一对多以及与多个应用之间的各种媒体类型(例如,文本、图片、音频/视频片段、二进制文件、音频/视频流)的通信。The Converged IP Messaging (CPM for short) enabler proposed by the OMA organization can span different access networks and is built on a unified IP core network to support one-to-one, One-to-many and communication of various media types (eg, text, pictures, audio/video clips, binary files, audio/video streams) between multiple applications.
在融合的消息通信环境中,CPM使能者以CPM会谈为单位向用户提供CPM业务,使之进行信息交互,用户在通信的过程中希望能够将自己所参与的CPM会谈的历史交互信息由网络侧进行记录和存储,从而实现在需要的时候能够通过向网络侧服务器发送请求访问到自己曾参与过的CPM会谈的历史交互记录信息,真实地重现用户曾参与的会谈的全过程,并对网络侧服务器上存储的属于该用户自己的会谈历史记录信息进行管理。In a converged message communication environment, the CPM enabler provides CPM services to users in units of CPM talks to enable them to exchange information. Record and store on the side, so that when needed, you can send a request to the server on the network side to access the historical interaction record information of the CPM talks you have participated in, and truly reproduce the entire process of the talks that the user has participated in. The user's own conversation history information stored on the server on the network side is managed.
CPM消息存储服务器为CPM用户提供上述存储CPM会谈历史记录的功能,而CPM消息存储客户端通过访问消息存储服务器对属于该CPM用户的CPM会谈历史记录及相关的内容进行访问和管理,并通过从网络侧获取的会谈历史记录信息进行解析,向CPM用户展示会谈的视图和内容。The CPM message storage server provides CPM users with the above-mentioned function of storing CPM meeting history records, and the CPM message storage client accesses and manages the CPM meeting history records and related contents belonging to the CPM user by accessing the message storage server, and through The meeting history information acquired by the network side is analyzed, and the view and content of the meeting are displayed to the CPM user.
CPM会谈描述了通信各方之间利用CPM使能者功能实体进行信息交互的操作,CPM会谈由任意数目的会话外交互的CPM消息、CPM文件和CPM会话组成。其中,CPM消息是可以包含多个离散(不连续)媒体(例如,文本、图片、音频片段、视频片段等)的信息体。CPM文件是参与者之间交换的一个或多个携带有多媒体内容的文件,接收方用户同意接收文件之后,文件传输过程才能够开始。CPM会话是指两个或多个参与者之间持续一段时间的逻辑连接,可用于参与方实时地交换连续性媒体,也可用于交换离散媒体和文件。CPM消息交互、CPM文件传输可以在CPM会话内进行,也可以在CPM会话之外进行。一般认为,每个CPM会谈在特定时间内只包含一个CPM会话,但用户可以并行参与多个CPM会谈。A CPM session describes the operation of information interaction between communicating parties using the CPM enabler functional entity. A CPM session consists of any number of CPM messages, CPM files, and CPM sessions that are exchanged outside the session. Wherein, a CPM message is an information body that may contain multiple discrete (discontinuous) media (for example, text, pictures, audio clips, video clips, etc.). A CPM file is one or more files carrying multimedia content exchanged between participants. The file transfer process can only begin after the recipient user agrees to receive the file. A CPM session refers to a logical connection between two or more participants for a period of time, which can be used for participants to exchange continuous media in real time, and can also be used to exchange discrete media and files. CPM message exchange and CPM file transfer can be performed within the CPM session or outside the CPM session. It is generally believed that each CPM session contains only one CPM session in a specific time, but users can participate in multiple CPM sessions in parallel.
CPM会谈历史记录是CPM会谈的存储表示。被授权责任人可以获取并存储他们在CPM会谈过程中交换的信息,并将上述信息作为CPM会谈历史记录存储到CPM业务提供商提供的消息存储服务器中。此时,CPM会话外交互的一条CPM消息被存储为一条CPM消息记录,CPM会话外进行的CPM文件传输被存储为一份CPM文件传输历史记录。而一个CPM会话则存储为一份CPM会话历史记录(包括会话内CPM消息、会话内CPM文件传输以及会话内交互的连续媒体片段等数据)。因此,从存储表示意义上讲,CPM会谈历史记录可以描述为CPM消息记录、CPM文件传输历史记录和CPM会话历史记录的集合。具体可以参见图1。A CPM meeting history is a stored representation of a CPM meeting. Authorized responsible persons can obtain and store the information they exchanged during the CPM conversation, and store the above information as a CPM conversation history record in the message storage server provided by the CPM service provider. At this time, a CPM message exchanged outside the CPM session is stored as a CPM message record, and a CPM file transfer performed outside the CPM session is stored as a CPM file transfer history record. A CPM session is stored as a CPM session history record (including data such as intra-session CPM messages, intra-session CPM file transfers, and intra-session interactive continuous media segments). Therefore, in terms of storage representation, the CPM conversation history can be described as a collection of CPM message records, CPM file transfer history and CPM session history. Please refer to Figure 1 for details.
图1为CPM会谈与CPM会谈历史记录的关系及其所包含内容的示意图。CPM会谈历史记录功能,实际上就是对CPM会谈过程中交互的CPM消息、CPM文件传输以及进行的CPM会话进行记录。为了实现会谈历史记录功能,需要在网络侧有一个CPM功能实体能够在通信过程中同时位于信令平面和媒体平面上,作为B2BUA接收通信过程中所有的信令消息和媒体消息,通过解析从中提取出需要记录的信息,按照一定的格式进行记录:将CPM会话外交互的一条CPM消息记录为一份CPM消息记录文件,将CPM会话外传输的一个CPM文件记录为一份CPM文件传输历史记录文件,将一次CPM会话记录为一份CPM会话历史记录文件。CPM参与功能服务器完成上述的会谈历史记录功能,并将上述记录文件提交给CPM消息存储服务器,进行永久存储。Figure 1 is a schematic diagram of the relationship between the CPM talks and the historical records of the CPM talks and the contents contained therein. The CPM meeting history recording function is actually to record the CPM messages exchanged during the CPM meeting, the CPM file transfer and the CPM session conducted. In order to realize the meeting history recording function, there needs to be a CPM functional entity on the network side that can be located on the signaling plane and the media plane at the same time during the communication process, as a B2BUA to receive all signaling messages and media messages during the communication process, and extract them through analysis Record the information that needs to be recorded according to a certain format: record a CPM message interacted outside the CPM session as a CPM message record file, record a CPM file transmitted outside the CPM session as a CPM file transmission history file , to record a CPM session as a CPM session history file. The CPM participation function server completes the above-mentioned meeting history record function, and submits the above-mentioned record file to the CPM message storage server for permanent storage.
在消息存储服务器上作为物理文件实际存储的是CPM会谈历史记录中所包含的CPM消息记录、CPM文件传输历史记录和CPM会话历史记录。消息存储服务器应当对存储的会谈历史记录相关的资源进行管理,并支持如下功能:What are actually stored as physical files on the message storage server are CPM message records, CPM file transfer history records and CPM conversation history records included in the CPM conversation history records. The message storage server shall manage the resources related to the stored meeting history records, and support the following functions:
(1)存储CPM消息记录、CPM文件传输历史记录、CPM会话历史记录、CPM会谈历史记录,包括作为CPM消息记录和CPM会话历史记录一部分的任意媒体对象;(1) store CPM message records, CPM file transfer history records, CPM session history records, CPM conversation history records, including any media objects that are part of CPM message records and CPM session history records;
(2)根据CPM用户偏好或者业务提供商策略,将本地已存资源与消息存储客户端本地存储的资源进行同步,包括在多设备场景下的同步管理;(2) According to the CPM user preference or the service provider's strategy, synchronize the locally stored resources with the locally stored resources of the message storage client, including synchronous management in a multi-device scenario;
(3)对已存资源的管理(例如,拷贝、删除等)和访问;查询已存资源;基于业务提供商策略和用户偏好,记录责任人对网络存储器执行的操作(例如,上传/下载/修改/删除CPM消息、CPM文件传输历史记录、CPM会话历史、CPM会谈历史,和作为CPM消息和CPM会话历史一部分的媒体对象等特定条目)等等。(3) Management (for example, copy, delete, etc.) and access to stored resources; query stored resources; based on service provider policies and user preferences, record the operations performed by the responsible person on network storage (for example, upload/download/ modify/delete CPM messages, CPM file transfer history, CPM session history, CPM conversation history, and specific entries such as media objects that are part of the CPM message and CPM session history), etc.
相关技术中,为了存储消息,基于传统电子邮箱结构的存储模型方案可以参见图2。每一个用户拥有一块由业务提供商预先分配的存储区域,在该目录下,由一系列由系统预先定义好的独立文件夹(例如,收件箱、废件箱、发件箱等)和用户自创建的独立文件夹(如Folder1、Folder2等)组成。使用该存储模型,消息记录和会话历史记录可以存储在任何目录下,用户可以手动操作将存储的内容在文件夹之间移动。In the related art, in order to store messages, a storage model scheme based on a traditional electronic mailbox structure can be referred to in FIG. 2 . Each user has a storage area pre-allocated by the service provider. Under this directory, there are a series of independent folders (such as inbox, trash box, outbox, etc.) and user folders predefined by the system. Self-created independent folders (such as Folder1, Folder2, etc.). Using this storage model, message records and session history records can be stored in any directory, and users can manually move the stored content between folders.
但是,上述方案存在以下缺点:However, the above scheme has the following disadvantages:
(1)CPM消息记录和CPM会话历史记录可以分布在任意的文件夹中,为了能够向用户提供CPM会谈视图,必须要通过使用额外的元数据来将分散在各个目录下的CPM消息记录、CPM会话历史记录和它们所属的CPM会谈关联起来。(1) CPM message records and CPM session history records can be distributed in any folder. In order to provide users with a CPM conversation view, it is necessary to use additional metadata to separate the CPM message records and CPM records scattered in each directory. Session history records are associated with the CPM session they belong to.
(2)由于CPM消息记录和CPM会话历史记录可以分布在任意的文件夹中,服务器端无法支持消息存储客户端通过IMAP/THREAD命令([RFC5256])请求服务器为会谈历史记录构建线性视图,然而对于计算和存储资源有限的移动设备来说,完成构建线性视图的操作会带来较大的开销和负担,可能会造成响应速度慢等不利于用户使用体验的影响。(2) Since CPM message records and CPM session history records can be distributed in arbitrary folders, the server cannot support message storage. The client requests the server to build a linear view for the conversation history records through the IMAP/THREAD command ([RFC5256]), however For mobile devices with limited computing and storage resources, completing the operation of building a linear view will bring a large overhead and burden, which may cause slow response speed and other adverse effects on user experience.
(3)由于属于一个CPM会谈的CPM消息记录、CPM会话历史记录可能分布在不同的文件夹中,则消息存储客户端在获取一个CPM会谈历史记录相关的内容时,需要不断通过IMAP/SELECT命令选中一个文件夹,然后才能通过IMAP/FETCH命令获取该文件夹下存储的记录文件,然后再重新SELECT另一个文件夹,获得该文件夹存储的记录文件,不断重复直到获取到该CPM会谈的所有内容,不断使用SELECT命令打开文件夹的操作增加了消息存储客户端和服务器之间的命令交互次数,存在额外开销,尤其对于移动设备而言,频繁冗余的命令交互会增加无线接口上的数据流量,增加用户使用业务的费用,降低用户使用业务的体验。(3) Since the CPM message records and CPM session history records belonging to a CPM meeting may be distributed in different folders, the message storage client needs to continuously pass the IMAP/SELECT command when obtaining the content related to a CPM meeting history record Select a folder, and then use the IMAP/FETCH command to obtain the record files stored in this folder, and then re-SELECT another folder to obtain the record files stored in this folder, and repeat until all the CPM talks are obtained. Content, the operation of constantly using the SELECT command to open the folder increases the number of command interactions between the message storage client and the server, and there is additional overhead, especially for mobile devices, frequent redundant command interactions will increase the data on the wireless interface traffic, increase the cost of using the service for users, and reduce the experience of using the service for users.
(4)用户的一些管理操作可能会破坏CPM会谈线性视图。在上述存储模型下,用户可以对消息存储服务器上的存储的资源进行任意的管理操作,例如,删除某个消息记录文件,然而造成的结果是破坏了消息之间的回复关系,从而破坏CPM会谈的线性视图。(4) Some management operations of the user may destroy the linear view of the CPM meeting. Under the above storage model, users can perform arbitrary management operations on the resources stored on the message storage server, for example, delete a certain message record file, but the result is to destroy the reply relationship between messages, thereby destroying the CPM session linear view.
相关技术中,还存在基于CPM会谈结构的存储模型方案,具体可以参见图3。如图3所示,该方案基于CPM会谈的结构特点来设计CPM的消息存储模型:即根据CPM会谈历史记录、CPM消息记录和CPM会话历史记录之间的包含关系,将每个CPM会谈历史记录所包含的记录资源文件存储在独立的会谈子文件夹中。In the related art, there is also a storage model solution based on the CPM session structure, as shown in FIG. 3 for details. As shown in Figure 3, this scheme designs the message storage model of CPM based on the structural characteristics of CPM talks: that is, according to the containment relationship among CPM talk history records, CPM message records and CPM session history records, each CPM talk history record The included recording resource files are stored in separate talks subfolders.
在该存储模型方案中,消息存储服务器为每一个CPM用户分配一块专属的存储区域,在该存储区域下为每一个CPM会谈建立一个对应的会谈子文件夹,将该CPM会谈所包含的每一个会话外CPM消息作为独立的消息记录文件、每一个CPM会话作为独立的CPM会话历史记录存储在该会谈子文件夹中。会谈文件夹的创建由系统完成,用户的管理权限受限,只能够查看消息存储服务器上的资源,以防止用户的操作破坏CPM会谈视图。In this storage model solution, the message storage server allocates a dedicated storage area for each CPM user, and establishes a corresponding subfolder for each CPM session under the storage area, and each session included in the CPM session The CPM message outside the session is stored as an independent message record file, and each CPM session is stored in the session subfolder as an independent CPM session history record. The creation of the meeting folder is completed by the system, and the user's management authority is limited, and he can only view the resources on the message storage server to prevent the user's operation from destroying the CPM meeting view.
基于CPM会谈结构的消息存储模型,将同属于一个CPM会谈的记录资源存储在同一个会谈文件夹中,节省了记录CPM会谈历史记录和其所包含的记录资源之间关联关系的元数据以及维护该关联关系的管理操作开销。且会谈文件夹的创建由CPM使能者执行,用户的操作权限受限,因此保证了CPM会谈的视图不会被用户的操作所破坏。Based on the message storage model of the CPM conversation structure, the record resources belonging to the same CPM conversation are stored in the same conversation folder, which saves metadata and maintenance for recording the relationship between the history of the CPM conversation and the record resources it contains The management operation overhead for this relationship. Moreover, the creation of the meeting folder is performed by the CPM enabler, and the user's operation authority is limited, thus ensuring that the view of the CPM meeting will not be destroyed by the user's operation.
然而,上述方案存在以下缺点,由于会谈文件夹由消息存储服务器进行管理,用户没有操作权限,导致用户无法对消息存储服务器上存储的资源进行管理操作,无法创建自定义文件夹、无法移动/复制消息记录、会话历史记录文件,只能以会谈视图来查看,用户体验差。However, the above scheme has the following disadvantages. Since the meeting folder is managed by the message storage server, the user has no operation authority, so the user cannot manage the resources stored on the message storage server, cannot create custom folders, and cannot move/copy Message records and session history files can only be viewed in the chat view, which has a poor user experience.
发明内容 Contents of the invention
针对相关技术中构建线性视图的操作带来的额外开销以及用户对消息存储服务器上存储的资源进行管理操作时,会破坏CPM会谈记录等问题而提出本发明,为此,本发明的主要目的在于提供一种改进的CPM会谈历史记录的访问方法及消息存储服务器,以解决上述问题至少之一。The present invention is proposed in view of the extra overhead brought by the operation of constructing a linear view in the related art and the problems that the CPM meeting record will be destroyed when the user manages the resources stored on the message storage server. Therefore, the main purpose of the present invention is to An improved method for accessing CPM conversation history records and a message storage server are provided to solve at least one of the above-mentioned problems.
根据本发明的一个方面,提供了一种CPM会谈历史记录的访问方法。According to one aspect of the present invention, a method for accessing CPM session history records is provided.
根据本发明的CPM会谈历史记录的访问方法包括:消息存储服务器接收来自于客户端的访问指令;消息存储服务器解析访问指令获取需要访问的文件目录标识,并获取文件目录标识对应的链接元数据信息;消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作。The method for accessing the CPM conversation history record according to the present invention includes: the message storage server receives the access instruction from the client; the message storage server parses the access instruction to obtain the file directory identifier that needs to be accessed, and obtains the link metadata information corresponding to the file directory identifier; The message storage server performs an access operation corresponding to the access instruction according to the link metadata information.
根据本发明的另一方面,提供了一种消息存储服务器。According to another aspect of the present invention, a message storage server is provided.
根据本发明的消息存储服务器包括:第一接收单元,用于接收来自于客户端的访问指令;解析获取单元,用于解析访问指令获取需要访问的文件目录标识,并获取文件目录标识对应的链接元数据信息;执行单元,用于根据链接元数据信息执行与访问指令对应的访问操作。The message storage server according to the present invention includes: a first receiving unit for receiving an access instruction from a client; a parsing and obtaining unit for parsing the access instruction to obtain the file directory identifier to be accessed, and obtaining the link element corresponding to the file directory identifier data information; an execution unit, configured to execute an access operation corresponding to the access instruction according to the link metadata information.
根据本发明,为融合消息业务通信环境中的会谈历史记录定义了一种合适其自身特点的消息存储模型,并通过定义相关的元数据以及相关的存储管理操作形成完整的方案,可以满足CPM会谈的特点,同时满足用户对消息存储服务器上存储的记录资源的自定义管理操作之外,还能够为用户提供多种视图,在尽量减小消息存储服务器管理开销的前提下,能够为用户提供良好的业务体验。According to the present invention, a message storage model suitable for its own characteristics is defined for the meeting history records in the integrated message service communication environment, and a complete solution is formed by defining related metadata and related storage management operations, which can meet the needs of CPM talks In addition to satisfying user-defined management operations on record resources stored on the message storage server, it can also provide users with a variety of views. On the premise of minimizing the management overhead of the message storage server, it can provide users with a good business experience.
附图说明 Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1为CPM会谈与CPM会谈历史记录的关系及其所包含内容的示意图;Figure 1 is a schematic diagram of the relationship between the CPM talks and the historical records of the CPM talks and their contents;
图2为相关技术中基于传统电子邮箱结构的消息存储模型的示意图;FIG. 2 is a schematic diagram of a message storage model based on a traditional electronic mailbox structure in the related art;
图3为相关技术中基于会谈结构的消息存储模型的示意图;FIG. 3 is a schematic diagram of a message storage model based on a conversation structure in the related art;
图4为根据本发明实施例的CPM会谈历史记录的访问方法的流程图;FIG. 4 is a flow chart of a method for accessing CPM conversation history records according to an embodiment of the present invention;
图5为根据本发明实施例的消息存储模型方案的结构示意图;5 is a schematic structural diagram of a message storage model solution according to an embodiment of the present invention;
图6为根据本发明实施例的用户获得访问控制列表操作的指令传输示意图;FIG. 6 is a schematic diagram of command transmission for a user to obtain an access control list operation according to an embodiment of the present invention;
图7为根据本发明实施例的用户设置访问控制列表操作的指令传输示意图;FIG. 7 is a schematic diagram of instruction transmission for user setting access control list operations according to an embodiment of the present invention;
图8为根据本发明实施例的用户删除访问控制列表操作的指令传输示意图;FIG. 8 is a schematic diagram of instruction transmission for a user to delete an access control list operation according to an embodiment of the present invention;
图9为根据本发明实施例的用户获得访问权限操作的指令传输示意图;FIG. 9 is a schematic diagram of instruction transmission for a user to obtain an access right operation according to an embodiment of the present invention;
图10为根据本发明实施例的用户请求设置活跃文件夹操作的指令传输示意图;FIG. 10 is a schematic diagram of instruction transmission according to an embodiment of the present invention in which a user requests to set an active folder operation;
图11为根据本发明实施例的用户选择会谈文件夹,查看CPM会谈记录列表的指令传输示意图;FIG. 11 is a schematic diagram of command transmission for a user to select a conversation folder and view a list of CPM conversation records according to an embodiment of the present invention;
图12为根据本发明实施例的用户选择一个会谈历史记录,查看该CPM会谈历史记录的详细内容的指令传输示意图;Fig. 12 is a schematic diagram of instruction transmission according to an embodiment of the present invention in which the user selects a conversation history record and checks the detailed content of the CPM conversation history record;
图13为根据本发明实施例的用户请求创建文件夹操作的指令传输流程图;FIG. 13 is a flow chart of command transmission for user request to create a folder operation according to an embodiment of the present invention;
图14为根据本发明实施例的用户添加记录对象到自定义文件夹中操作的指令传输流程图;FIG. 14 is a flow chart of instruction transmission for the user to add a record object to a user-defined folder according to an embodiment of the present invention;
图15为根据本发明实施例的用户查看自定义文件夹中的内容操作时,获取记录对象标识符信息的指令传输流程图;Fig. 15 is a flow chart of instruction transmission for obtaining record object identifier information when the user checks the content in the user-defined folder according to an embodiment of the present invention;
图16为根据本发明实施例的用户查看自定义文件夹中的内容操作时,获取消息服务器中存储的会谈历史记录内容的指令传输流程图;Fig. 16 is a flow chart of instruction transmission for obtaining the content of the conversation history record stored in the message server when the user checks the content in the user-defined folder according to an embodiment of the present invention;
图17为根据本发明实施例的用户删除会谈历史记录操作的指令传输流程图;Fig. 17 is a flow chart of instruction transmission for the user to delete the conversation history record operation according to the embodiment of the present invention;
图18为根据本发明实施例的用户删除会谈历史记录操作时MSS处理的流程图;FIG. 18 is a flow chart of MSS processing when the user deletes the session history record operation according to an embodiment of the present invention;
图19为根据本发明实施例的用户删除自定义文件夹中链接对象操作的指令传输流程图;FIG. 19 is a flow chart of command transmission for the operation of deleting a link object in a user-defined folder according to an embodiment of the present invention;
图20为根据本发明实施例的用户移动自定义文件夹中的链接对象操作的指令传输流程图;FIG. 20 is a flow chart of instruction transmission for the user to move the link object operation in the user-defined folder according to an embodiment of the present invention;
图21为根据本发明实施例的消息存储服务器的结构框图;Fig. 21 is a structural block diagram of a message storage server according to an embodiment of the present invention;
图22为根据本发明优选实施例的消息存储服务器的结构框图。Fig. 22 is a structural block diagram of a message storage server according to a preferred embodiment of the present invention.
具体实施方式 Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
根据本发明实施例,提供了一种融合的IP消息CPM会谈历史记录的访问方法。According to an embodiment of the present invention, a method for accessing a history record of a fused IP message CPM conversation is provided.
图4为根据本发明实施例的CPM会谈历史记录的访问方法的流程图。如图4所示,根据本发明实施例的CPM会谈历史记录的访问方法包括以下处理(步骤S402-步骤S406):FIG. 4 is a flowchart of a method for accessing CPM session history records according to an embodiment of the present invention. As shown in Figure 4, the access method of the CPM interview history record according to the embodiment of the present invention includes the following processing (step S402-step S406):
步骤S402:消息存储服务器接收来自于客户端的访问指令;Step S402: the message storage server receives an access instruction from the client;
步骤S404:消息存储服务器解析访问指令获取需要访问的文件目录标识,并获取文件目录标识对应的链接元数据信息;Step S404: The message storage server parses the access instruction to obtain the file directory identifier to be accessed, and obtains the link metadata information corresponding to the file directory identifier;
步骤S406:消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作。Step S406: The message storage server performs an access operation corresponding to the access instruction according to the link metadata information.
采用上述方法,通过在消息存储服务器的存储区域中存储链接元数据信息,将对用户管理区域的访问操作与系统管理区域中存储的CPM会谈历史记录进行关联,解决了相关技术中构建线性视图的操作带来的额外开销以及用户对消息存储服务器上存储的资源进行管理操作时,会破坏CPM会谈记录的问题,可以在满足用户对消息存储服务器上存储的记录资源的自定义管理操作的同时,还能够为用户提供多种视图。Using the above method, by storing the link metadata information in the storage area of the message storage server, the access operation to the user management area is associated with the CPM meeting history records stored in the system management area, which solves the problem of constructing a linear view in the related technology The additional overhead caused by the operation and the problem that the CPM meeting record will be destroyed when the user manages the resources stored on the message storage server can satisfy the user's custom management operation on the record resources stored on the message storage server. It is also possible to provide users with multiple views.
优选地,在消息存储服务器接收来自于客户端的访问指令之前,还可以包括以下处理:Preferably, before the message storage server receives the access instruction from the client, the following processing may also be included:
(1)在消息存储服务器中创建系统管理区域,其中,系统管理区域包括存储会谈历史记录信息的第一存储单元、存储系统预定义文件信息的第二存储单元;(1) Create a system management area in the message storage server, wherein the system management area includes a first storage unit for storing conversation history record information, and a second storage unit for storing system predefined file information;
(2)在消息存储服务器中创建用户管理区域,其中,用户管理区域包括存储用户自定义信息的第三存储单元。(2) Create a user management area in the message storage server, wherein the user management area includes a third storage unit for storing user-defined information.
优选地,上述会谈历史记录信息包括:会谈元数据信息和记录信息,其中,记录信息包括:至少一条CPM消息记录信息、至少一条CPM文件传输历史记录信息、至少一条CPM会话历史记录信息;Preferably, the above meeting history record information includes: meeting metadata information and record information, wherein the record information includes: at least one piece of CPM message record information, at least one piece of CPM file transfer history record information, and at least one piece of CPM session history record information;
优选地,上述系统预定义文件信息包括:系统预定义的文件目录、系统预定义的文件目录下属的链接元数据信息;Preferably, the above system predefined file information includes: system predefined file directory, link metadata information under the system predefined file directory;
优选地,上述用户自定义信息包括:用户自定义文件目录、用户自定义的文件目录下属的链接元数据信息。Preferably, the user-defined information includes: a user-defined file directory, and link metadata information under the user-defined file directory.
其中,上述用户自定义信息还可以包括:客户端上传的本地记录文件信息。Wherein, the above-mentioned user-defined information may also include: local record file information uploaded by the client.
优选地,上述会谈元数据信息包括但不限于以下三类:会谈信息元数据信息、消息/传输文件历史记录信息、会话历史记录元数据信息。Preferably, the above meeting metadata information includes but not limited to the following three types: meeting information metadata information, message/transmission file history record information, and session history record metadata information.
上述消息存储服务器中创建的存储模型架构示例可以参见图5。如图5所示,在消息存储服务器上为每一个合法的用户分配一个专属的存储空间(如“Root-User”文件夹,即根目录),用于存储用户所拥有的会谈历史记录相关的资源记录,并向用户提供管理功能。用户专属存储空间(与“Root-User”目录对应)被划分为两部分:系统管理区域和用户自定义管理区域。Refer to FIG. 5 for an example of the storage model architecture created in the above message storage server. As shown in Figure 5, on the message storage server, assign an exclusive storage space (such as "Root-User" folder, i.e. the root directory) for each legal user on the message storage server, which is used to store information related to the conversation history records owned by the user. Resource records, and provide management capabilities to users. The user-specific storage space (corresponding to the "Root-User" directory) is divided into two parts: the system management area and the user-defined management area.
其中,系统管理区域由MSS预定义的文件夹组成,如图4所示的“Conversation-History”(会谈历史记录文件夹)、“ReceivedBox”(收件箱)、“SendBox”(发件箱)等都是由MSS预定义的文件夹。其中,会谈历史记录文件夹专用于存储会谈历史记录相关的记录资源,并在MSS上维持唯一的备份,为用户提供会谈视图。而其他的系统文件夹则通过“链接元数据”关联存储在会谈历史记录文件夹中的内容,从而为用户提供一些系统预定义的视图,如发件箱视图、收件箱视图等等。Among them, the system management area is composed of MSS predefined folders, such as "Conversation-History" (conversation history folder), "ReceivedBox" (inbox), "SendBox" (outbox) as shown in Figure 4 etc. are folders predefined by MSS. Among them, the meeting history record folder is dedicated to storing record resources related to the meeting history record, and maintains a unique backup on the MSS to provide the user with a view of the meeting. Other system folders associate the content stored in the conversation history folder through "link metadata", thereby providing users with some system-predefined views, such as outbox view, inbox view, and so on.
其中,用户自定义管理区域由用户文件夹组成,如图4所示的“Folder1”、“Folder2”等都是由用户自行创建的文件夹。用户可以将感兴趣的、或觉得重要的CPM消息记录、CPM文件传输记录、CPM会话历史记录或其中的一部分,或CPM会谈历史记录“添加到”自定义的文件夹中,进行个性化管理,提供用户自定义的动态视图。用户文件夹通过“链接元数据”关联存储在“Conversation-History”文件夹中的内容,从而提供用户自定义的动态视图。另外,用户还可以上传本地的记录文件到消息存储服务器上的用户自定义文件夹中,并将上传的这些记录文件在不同的用户文件夹之间移动。Wherein, the user-defined management area is composed of user folders, such as "Folder1" and "Folder2" shown in FIG. 4 are folders created by users themselves. Users can "add" the CPM message records, CPM file transfer records, CPM session history records or a part thereof, or CPM meeting history records that they are interested in or think important to a custom folder for personalized management. Provide user-defined dynamic views. User folders provide user-defined dynamic views by associating content stored in the "Conversation-History" folder through "Link Metadata". In addition, the user can also upload local record files to a user-defined folder on the message storage server, and move the uploaded record files between different user folders.
在该存储模型方案中,为了避免MSC向MSS请求CPM会谈历史记录所包含的记录文件(如消息记录、文件传输记录或会谈历史记录)时,需要不断地通过IMAP4/SELECT([RFC 3501])命令来选中目标文件夹以获取文件而带来的额外开销的弊端,本方案采用将所有的CPM会谈历史记录相关的文件(即所有的消息记录、文件传输历史记录、会话历史记录)都直接存储在“Conversation-History”文件夹下,并通过采用“会谈元数据”来记录CPM会谈的相关信息,维持CPM会谈历史记录和属于该会谈的CPM消息记录、CPM文件传输历史记录以及CPM会话历史记录之间的关联关系。In this storage model scheme, in order to avoid the MSC requesting the record files (such as message records, file transfer records or meeting history records) contained in the CPM meeting history records from the MSS, it is necessary to continuously pass IMAP4/SELECT ([RFC 3501]) Command to select the target folder to obtain the disadvantages of additional overhead caused by the file, this solution uses all the files related to the CPM conversation history (that is, all message records, file transfer history records, session history records) are directly stored Under the "Conversation-History" folder, and by employing "Conversation Metadata" to record information about CPM conversations, maintain CPM conversation history and records of CPM messages belonging to the conversation, CPM file transfer history, and CPM conversation history relationship between.
其中,系统管理区域由MSS管理,主要用来存储和维护CPM会谈视图,用户的访问管理操作受限;用户管理区域中,用户拥有完全的管理权限,可以通过自定义文件夹来实现对会谈历史记录内容的分类管理,以提供多种不同的用户自定义视图。Among them, the system management area is managed by MSS, which is mainly used to store and maintain the CPM meeting view, and the user's access management operation is limited; in the user management area, the user has full management rights, and can realize the meeting history through custom folders Categorical management of recorded content to provide a variety of user-defined views.
其中,该消息存储模型中涉及的存储对象包含以下五类:Among them, the storage objects involved in the message storage model include the following five categories:
第一类:CPM消息记录对象:即用来存储一条会话外CPM消息记录(包含该消息携带的所有媒体对象);The first category: CPM message record object: it is used to store a CPM message record outside the session (including all media objects carried by the message);
第二类:CPM文件传输历史记录对象:即用来存储一个会话外的文件传输历史记录;The second category: CPM file transfer history object: it is used to store the file transfer history outside a session;
第三类:CPM会话历史记录对象:即用来存储一次CPM会话的历史记录信息(包含该CPM会话的会话状态信息,以及该会话中交互的所有CPM消息、传输的CPM文件以及交互的连续性媒体流对象);The third category: CPM session history record object: it is used to store the history record information of a CPM session (including the session state information of the CPM session, and all CPM messages interacted in the session, the transmitted CPM files and the continuity of the interaction media stream object);
第四类:元数据记录对象(即元数据信息):即用来采用元数据信息来提供灵活的管理能力,总的来说,可以包括两种类型的元数据:The fourth category: metadata record object (metadata information): it is used to provide flexible management capabilities by using metadata information. In general, it can include two types of metadata:
会谈元数据(即上述会谈元数据信息):记录CPM会谈历史记录的描述信息,并维持CPM消息记录、CPM文件传输历史记录以及CPM会话历史记录和所属CPM会谈之间的关联关系,以提供会谈视图;Meeting metadata (that is, the above-mentioned meeting metadata information): record the description information of CPM meeting history records, and maintain the association between CPM message records, CPM file transmission history records, and CPM session history records and the CPM meetings to which they belong, so as to provide view;
链接元数据(即上述链接元数据信息):维持CPM会谈内容和被链接到的文件夹(可以是系统文件夹或用户文件夹)之间的关联关系,从而可以灵活地提供多种系统默认视图和用户自定义视图。Link metadata (that is, the above-mentioned link metadata information): maintain the relationship between the content of the CPM meeting and the folder to which it is linked (it can be a system folder or a user folder), so that it can flexibly provide a variety of system default views and user-defined views.
本发明采用建立元数据模型的架构,可以提供灵活的管理能力,其中,元数据包括:会谈元数据、链接元数据。以下详细描述元数据模型。The present invention adopts a framework for establishing a metadata model, which can provide flexible management capabilities, wherein the metadata includes: session metadata and link metadata. The metadata model is described in detail below.
例如,如图5所示,将会谈元数据存储在会谈历史记录文件夹下。将链接元数据分别存储在收件箱、发件箱、以及用户自定义的文件夹下。For example, as shown in FIG. 5 , the conversation metadata is stored under the conversation history record folder. Store link metadata in inbox, outbox, and user-defined folders.
其中,对于会谈元数据,会谈历史记录文件夹需要维持三类元数据,以分别记录和CPM会谈、CPM消息(CPM文件传输)和CPM会话相关的信息。会谈元数据可以从与该会谈相关的各个记录对象文件中提取,并作为元数据存储,当MSC请求呈现会谈视图的时候,需要首先向MSS请求会谈元数据,然后通过这些元数据获得MSS上存储的CPM会谈的描述信息,从而向用户提供会谈视图。CPM消息(传输文件)、CPM会话元数据则主要用来记录消息(文件传输)和CPM会话对象的摘要信息以及被哪些用户文件夹关联等信息,为MSS上的内容管理以及查询操作提供有用信息。Wherein, for the meeting metadata, the meeting history record folder needs to maintain three types of metadata, so as to respectively record information related to the CPM meeting, CPM message (CPM file transfer) and CPM session. The meeting metadata can be extracted from each record object file related to the meeting and stored as metadata. When the MSC requests to present the meeting view, it needs to first request the meeting metadata from the MSS, and then obtain the storage on the MSS through these metadata. The descriptive information of the CPM meeting, so as to provide the user with a meeting view. CPM messages (file transfers) and CPM session metadata are mainly used to record messages (file transfers) and summary information of CPM session objects and which user folders are associated, providing useful information for content management and query operations on MSS .
优选地,MSS每接收到一条CPM消息记录、CPM文件传输历史记录或CPM会话历史记录时,都要对其进行解析,提取出相关的信息,对三种类型的元数据表进行更新。Preferably, each time MSS receives a CPM message record, CPM file transfer history record or CPM session history record, it needs to parse it, extract relevant information, and update the three types of metadata tables.
其中,对于链接元数据,优选地,可以为“SendBox”、“ReceivedBox”等系统预定义文件夹,以及每个用户自定义的用户文件夹创建一张“链接元数据”信息表,用于当系统将CPM会谈历史记录添加到“SendBox”、“ReceivedBox”等系统预定义文件夹,或者用户将某个CPM消息记录对象、CPM文件传输历史记录对象、CPM会话历史记录对象、CPM会谈历史记录对象或其中的某一部分内容“添加到”自定义的用户文件夹中时,为这些对象在目标文件夹下建立对应的“链接元数据”,即在相应文件夹的“链接元数据信息表”中增加相应的表项记录,记录相关联的CPM会谈历史记录的“Conversation-ID”,或相关联的CPM消息记录、CPM文件传输历史记录、CPM会话历史记录的唯一存储标识符(UID)以及被关联的part号。Among them, for the link metadata, preferably, a "link metadata" information table can be created for system predefined folders such as "SendBox" and "ReceivedBox", as well as each user-defined user folder, for the current The system adds CPM conversation history records to system predefined folders such as "SendBox" and "ReceivedBox", or the user adds a CPM message record object, CPM file transfer history record object, CPM session history record object, CPM conversation history record object When "adding" a user-defined user folder or a part of it, the corresponding "link metadata" is created for these objects under the target folder, that is, in the "link metadata information table" of the corresponding folder Add the corresponding entry record, record the "Conversation-ID" of the associated CPM conversation history record, or the associated CPM message record, CPM file transfer history record, unique storage identifier (UID) of the CPM session history record, and The associated part number.
具体地,记录上述元数据信息,是为了在该文件夹下保存相关记录对象的存储路径信息,相当于为它们建立了“链接”,而不用重复存储相关的记录对象,以节省存储空间。另外,使用链接元数据能够关联到实际存储在会谈文件夹中的记录对象中的某一部分内容(如某个媒体附件等),这是使用传统的以文件为单位进行复制/移动的文件管理操作所无法实现的。Specifically, the purpose of recording the above metadata information is to save the storage path information of related record objects under the folder, which is equivalent to establishing a "link" for them, without repeatedly storing related record objects, so as to save storage space. In addition, the use of link metadata can be associated with a certain part of the content (such as a media attachment, etc.) in the record object actually stored in the meeting folder, which is the traditional file management operation of copying/moving in units of files unattainable.
以下对会谈元数据和链接元数据进行详细的描述。The following describes the session metadata and link metadata in detail.
1、会谈元数据1. Session metadata
在会谈历史记录文件夹中需要维持三类元数据,以分别记录和CPM会谈、CPM消息(CPM文件传输)和CPM会话相关的信息。其中,CPM会谈元数据尤为重要,因为CPM会谈历史记录是一个逻辑的概念,它并没有实际物理存储的文件与之对应,所以各个CPM会谈的描述信息必须要通过元数据来提供。会谈元数据可以从与该会谈相关的各个记录对象文件中提取,并作为元数据存储,当MSC请求呈现会谈视图的时候(如该用户拥有哪些会谈信息等),需要首先向MSS请求会谈元数据,然后通过这些元数据获得MSS上存储的CPM会谈的描述信息,从而向用户提供会谈视图。CPM消息(传输文件)、CPM会话元数据则主要用来记录消息(文件传输)和CPM会话对象的摘要信息以及被哪些用户文件夹关联等信息,为MSS上的内容管理以及查询操作提供有用信息。Three types of metadata need to be maintained in the meeting history folder to record information related to CPM talks, CPM messages (CPM file transfers) and CPM sessions, respectively. Among them, the CPM meeting metadata is particularly important, because the CPM meeting history record is a logical concept, and it does not correspond to the actual physical storage file, so the description information of each CPM meeting must be provided through metadata. The meeting metadata can be extracted from each record object file related to the meeting and stored as metadata. When MSC requests to present the meeting view (such as what meeting information the user owns, etc.), it needs to first request the meeting metadata from MSS , and then obtain the description information of the CPM talks stored on the MSS through these metadata, so as to provide the user with a view of the talks. CPM messages (file transfers) and CPM session metadata are mainly used to record the summary information of messages (file transfers) and CPM session objects and which user folders are associated, providing useful information for content management and query operations on MSS .
MSS每接收到一条CPM消息记录、CPM文件传输历史记录或CPM会话历史记录时,都要对其进行解析,提取出相关的信息,对以下的这三种元数据表进行更新。下面介绍三种元数据表。Every time MSS receives a CPM message record, CPM file transfer history record or CPM session history record, it must analyze it, extract relevant information, and update the following three metadata tables. Three metadata tables are described below.
(1)CPM会谈信息元数据表(1) CPM meeting information metadata table
CPM会谈信息元数据的结构定义如下表1所示,第一列“字段名”说明会谈信息元数据表中应有的字段,第二列“说明”给出对应字段的解释说明,第三列“举例”给出该表项应填入内容的举例说明。The structure definition of CPM meeting information metadata is shown in Table 1 below. The first column "Field Name" indicates the fields that should be in the meeting information metadata table, the second column "Description" gives the explanation of the corresponding field, and the third column "Example" gives an example of the content that should be filled in this table item.
MSS接收到CPM参与功能提交的CPM消息记录、CPM文件传输历史记录、CPM会话历史记录时,应该首先对其进行解析,取得这些记录对象的会谈标识符,查询“CPM会谈信息元数据表”的“Conversation-ID”字段,如果没有找到相应的会谈元数据记录,则说明这是一个新的CPM会谈,需要在CPM会谈信息元数据表中为该CPM会谈新增一行元数据信息,并从接收到的历史记录对象中提取相关的信息来填写该会谈历史记录对应元数据记录的相应字段。When MSS receives the CPM message records, CPM file transmission history records, and CPM session history records submitted by the CPM participation function, it should first analyze them, obtain the meeting identifiers of these record objects, and query the "CPM meeting information metadata table" In the "Conversation-ID" field, if no corresponding conversation metadata record is found, it means that this is a new CPM conversation. It is necessary to add a row of metadata information for this CPM conversation in the CPM conversation information metadata table, and receive Extract relevant information from the obtained history record object to fill in the corresponding fields of the metadata record corresponding to the meeting history record.
表1 CPM会谈信息元数据表(Conversation)Table 1 CPM meeting information metadata table (Conversation)
如表1所示的“会谈信息元数据表”,以会谈标识符为主键,每一行记录存储了一次CPM会谈相关的描述信息。As shown in Table 1, the "metadata table of meeting information" uses the meeting identifier as the primary key, and each row of records stores description information related to a CPM meeting.
会谈开始的时间(Start-Time)、结束时间(End-Time)、会谈主题(Subject)、会谈的发起者(Initiator)信息、参与者(Participants)信息;Talk start time (Start-Time), end time (End-Time), talk subject (Subject), talk initiator (Initiator) information, participants (Participants) information;
Content-UID:该会谈所包含的记录文件的UID(UID由MSS分配,文件夹作用域);Content-UID: UID of the record file included in the meeting (UID is assigned by MSS, folder scope);
Thread-Result:即对该会谈历史记录进行线性排序的结果字符串。由于采用将所有的会谈历史记录内容存储在“Conversation-History”下的方案,因此客户端无法使用THREAD命令向服务器请求线性排序结果,为了解决这个问题,在会谈元数据信息表中增加这个记录项,将服务器对该会谈进行线性排序的结果作为元数据存储,这样消息存储客户端通过GETMETADATA命令就可以获取到对指定会谈的线性排序结果。Thread-Result: the result string of linearly sorting the history of the conversation. Due to the scheme of storing all conversation history records under "Conversation-History", the client cannot use the THREAD command to request linear sorting results from the server. In order to solve this problem, add this record item in the conversation metadata information table , store the result of the linear sorting of the conversation by the server as metadata, so that the message storage client can obtain the linear sorting result of the specified conversation through the GETMETADATA command.
Tag:该会谈历史记录的“Tag”信息,即标识该会谈历史记录被关联到了哪些用户文件夹。例如用户将该会谈历史记录“添加到”他自定义的“working”文件夹和“Important”文件夹中,则在会谈信息表中对应的Tag记录项中,添加这两个文件夹的名称(working和Important,用逗号分隔),这样通过会谈信息表也能够很方便地找到这份会谈历史记录被哪些用户文件夹关联; Tag : The "Tag" information of the conversation history record, which identifies which user folders the conversation history record is associated with. For example, the user "adds" the meeting history record to his customized "working" folder and "Important" folder, then in the corresponding Tag record item in the meeting information table, add the names of these two folders ( working and Important, separated by commas), so that you can easily find out which user folders this meeting history is associated with through the meeting information table;
Deleted:标记该会谈历史记录是否被用户执行删除操作的“Deleted”字段,默认设置为“False”。如果用户在浏览会谈文件夹下的会谈视图时,选择了删除该条会谈历史记录,但该会谈会谈历史记录又被其他用户文件夹关联时,则将该字段设置为“True”,表示用户执行了会谈历史记录在会谈文件夹下的删除操作。则当MSC向MSS请求“会谈视图”时,MSS将不会将“Deleted”字段设置为“True”的会谈历史记录的信息返回给MSC。 Deleted : The "Deleted" field that marks whether the chat history has been deleted by the user, and the default setting is "False". If the user chooses to delete the conversation history record when browsing the conversation view under the conversation folder, but the conversation history record is associated with other user folders, set this field to "True", indicating that the user executes Disabled the deletion of meeting history records under the meeting folder. Then when the MSC requests the "conversation view" from the MSS, the MSS will not return the information of the conversation history records whose "Deleted" field is set to "True" to the MSC.
(2)CPM消息/传输文件历史记录信息元数据表(2) CPM message/transmission file history record information metadata table
MSS每接收到一条由CPM PF提交的CPM消息记录文件或CPM文件传输历史记录,就对其进行解析,提取出相关的信息(如贡献标识符、所属会谈的会谈标识符、是否是会话内传输的消息或文件、时间戳、发送者、接收者等)更新CPM消息/传输文件信息表,添加相应的记录。Each time MSS receives a CPM message record file or CPM file transmission history submitted by CPM PF, it parses it and extracts relevant information (such as contribution identifier, session identifier of the session to which it belongs, whether it is transmitted within the session or not) message or file, time stamp, sender, receiver, etc.) to update the CPM message/transmission file information table and add corresponding records.
CPM消息/文件传输历史记录信息元数据表的结构如下表2所示:The structure of the CPM message/file transfer history information metadata table is shown in Table 2 below:
表2 CPM消息/文件传输历史记录元数据表Table 2 CPM message/file transfer history metadata table
(Message_File)(Message_File)
如表2所示的“CPM消息/文件传输记录信息元数据表”的结构,以该记录对象的贡献标识符为主键,每一行记录存储了一个CPM消息或一个CPM文件传输相关的描述信息,例如,As shown in Table 2, the structure of the "CPM message/file transfer record information metadata table" uses the contribution identifier of the record object as the primary key, and each row of records stores a CPM message or a CPM file transfer-related description information. For example,
该CPM消息或文件传输的贡献标识(Contribution-ID)、所属CPM会谈的会谈标识符(Belonged-Conv-ID)、所属CPM会话的贡献标识符(Belonged-to-Session-ID,如果是会话外的对象,则将该字段置空)、由MSS分配的唯一存储标识符(UID)、时间戳(TimeStamp)、发送者(Sender)、接收者(Receiver)、主题(Subject);The contribution identifier (Contribution-ID) of the CPM message or file transfer, the conversation identifier (Belonged-Conv-ID) of the CPM conversation to which it belongs, the contribution identifier (Belonged-to-Session-ID) of the CPM session to which it belongs, if it is outside the session object, then leave this field empty), the unique storage identifier (UID) assigned by MSS, the timestamp (TimeStamp), the sender (Sender), the receiver (Receiver), and the subject (Subject);
“Tag”字段:该记录对象的关联标记,即与该CPM消息或CPM文件传输相关联的那些用户文件夹的名字,例如,用户将该条CPM消息的Part 2(附件1)关联到用户自定义的“InterestMessage”文件夹,则在该字段记录下目的文件夹的名称以及被关联的part号(用“/”分隔),如“Interest Message/2”;如果用户将该条CPM消息的Part3(附件2)关联到用户自定义的“Working”文件夹,则在该字段记录下目的文件夹的名称以及被关联的part号,如“Working/3”。"Tag" field: the associated tag of the record object, that is, the names of those user folders associated with the CPM message or CPM file transmission, for example, the user associates Part 2 (Appendix 1) of the CPM message with the user's own Defined "InterestMessage" folder, record the name of the destination folder and the associated part number (separated by "/") in this field, such as "Interest Message/2"; if the user sends Part3 of this CPM message (Appendix 2) To link to the user-defined "Working" folder, record the name of the destination folder and the associated part number in this field, such as "Working/3".
(3)CPM会话历史记录信息元数据表(3) CPM session history information metadata table
MSS每接收到一份由CPM PF提交的CPM会话历史记录,就对其进行解析,提取出会话历史记录对象中的相关信息(如会话的贡献标识符、所属于CPM会谈的会谈标识符、会话建立时间、结束时间、会话发起者、参与者等信息),更新CPM会话信息表,添加相应的记录,存储相关的元数据,以便于之后的查找和搜索操作。具体内容如下表3所示:Every time MSS receives a CPM session history record submitted by CPM PF, it will analyze it and extract the relevant information in the session history record object (such as the contribution identifier of the session, the session identifier belonging to the CPM session, Establishment time, end time, session initiator, participant, etc.), update the CPM session information table, add corresponding records, and store relevant metadata for subsequent search and search operations. The specific content is shown in Table 3 below:
表3 CPM会话历史记录元数据表(Session)Table 3 CPM session history metadata table (Session)
如表3所示的“CPM会话历史记录信息元数据表”的结构,以该会话历史记录的贡献标识符为主键,每一行记录存储了一个CPM会话历史记录相关的描述信息,例如,As shown in Table 3, the structure of the "CPM session history record information metadata table" uses the contribution identifier of the session history record as the primary key, and each row of records stores a descriptive information related to a CPM session history record, for example,
该CPM会话历史记录的贡献标识(Contribution-ID)、所属CPM会谈的会谈标识符(Belonged-Conv-ID)、由MSS分配的唯一存储标识符(UID)、会话开始时间(StartTime)、会话结束时间(End-Time)、发起者(Initiator)、参与者(Participants)。Contribution ID (Contribution-ID) of the CPM session history record, session identifier (Belonged-Conv-ID) of the CPM session to which it belongs, unique storage identifier (UID) assigned by MSS, session start time (StartTime), session end Time (End-Time), Initiator (Initiator), Participants (Participants).
“Tag”字段:该CPM会话历史记录的关联标记,即与该CPM会话历史记录(或其中某一部分)相关联的那些用户文件夹的名称,例如用户将该条CPM会话历史记录的音频片段(part2),关联到用户自定义的名为“Working”文件夹下,则在该字段记录下目的文件夹的名称以及被关联的Part号,如“Working/2”;如果用户将该条CPM会话历史记录的Part3(附件2)关联到用户自定义的“Important”文件夹,则在该字段记录下目的文件夹的名称以及被关联的part号,如“Important/3”。"Tag" field: the associated tag of the CPM session history record, that is, the names of those user folders associated with the CPM session history record (or a part thereof), for example, the audio clip ( part2), associated to the user-defined folder named "Working", then record the name of the destination folder and the associated Part number in this field, such as "Working/2"; Part3 (Appendix 2) of the historical record is associated with the user-defined "Important" folder, then record the name of the destination folder and the associated part number in this field, such as "Important/3".
2、链接元数据2. Link metadata
为“SendBox”、“ReceivedBox”等系统预定义文件夹,以及每个用户自定义的用户文件夹创建一张“链接元数据”信息表,用于当系统将CPM会谈历史记录添加到“SendBox”、“ReceivedBox”等系统预定义文件夹,或者用户将某个CPM消息记录对象、CPM文件传输历史记录对象、CPM会话历史记录对象、CPM会谈历史记录对象或其中的某一部分内容“添加到”这些自定义的用户文件夹中时,为这些对象在目标文件夹下建立对应的“链接元数据”,即在相应文件夹的“链接元数据信息表”中增加相应的表项记录,记录相关联的CPM会谈历史记录的“Conversation-ID”,或相关联的CPM消息记录、CPM文件传输历史记录、CPM会话历史记录的唯一存储标识符(UID)以及被关联的part号。Create a "Link Metadata" information table for system predefined folders such as "SendBox", "ReceivedBox" and each user-defined user folder, which is used when the system adds CPM meeting history records to "SendBox" , "ReceivedBox" and other system predefined folders, or the user "adds" a CPM message record object, CPM file transfer history record object, CPM session history record object, CPM conversation history record object or a part of them to these When in a custom user folder, create corresponding "link metadata" for these objects under the target folder, that is, add corresponding entry records in the "link metadata information table" of the corresponding folder, and the records are associated The "Conversation-ID" of the CPM conversation history record, or the associated CPM message record, CPM file transfer history record, CPM session history record's unique storage identifier (UID), and the associated part number.
记录这样的元数据信息,是为了在该文件夹下保存相关记录对象的存储路径信息,相当于为它们建立了“链接”,而不用重复存储相关的记录对象,以节省存储空间。另外,使用链接元数据能够关联到实际存储在会谈文件夹中的记录对象中的某一部分内容(如某个媒体附件等),这是使用传统的以文件为单位进行复制/移动的文件管理操作所无法实现的。The purpose of recording such metadata information is to save the storage path information of related record objects under this folder, which is equivalent to establishing a "link" for them, instead of repeatedly storing related record objects, so as to save storage space. In addition, the use of link metadata can be associated with a certain part of the content (such as a media attachment, etc.) in the record object actually stored in the meeting folder, which is the traditional file management operation of copying/moving in units of files unattainable.
链接元数据信息表的具体内容如下表4所示:The specific content of the link metadata information table is shown in Table 4 below:
表4 链接信息元数据表(Relevance)Table 4 Link Information Metadata Table (Relevance)
如表4所示的“链接元数据信息表”的结构,该表中包含有两个字段,即“Seq”字段和“Link”字段,其中“Seq”字段是主键,用于唯一地标识一条链接信息,而“Link”字段用于记录被关联对象的相关信息,为字符串类型,该字段的值针对关联对象类型的不同,具体有不同的格式:As shown in Table 4, the structure of the "Link Metadata Information Table" contains two fields, namely the "Seq" field and the "Link" field, where the "Seq" field is the primary key and is used to uniquely identify a Link information, and the "Link" field is used to record the relevant information of the associated object, which is a string type. The value of this field has different formats for different types of associated objects:
如果关联对象的类型是CPM消息记录对象(或其中某一部分)、或CPM文件传输记录对象、或CPM会话历史记录对象(或其中的某一部分),则按照“Type/UID/Part-Number”的格式进行记录,其中“Type”表示关联对象类型,“UID”表示关联对象记录文件的唯一存储标识符,“Part-Number”表示关联对象的哪一个部分。如关联的是UID为11的CPM消息的附件1(即Part2),则在该字段下新增“Message/11/2”的记录项;关联的是UID为22的会话历史记录对象的附件4(Part3),则在表中新增“Link”值为“Session/22/3”的记录项;If the type of the associated object is a CPM message record object (or a part of it), or a CPM file transfer record object, or a CPM session history record object (or a part of it), then according to "Type/UID/Part-Number" format, where "Type" indicates the type of the associated object, "UID" indicates the unique storage identifier of the associated object record file, and "Part-Number" indicates which part of the associated object. If it is associated with Attachment 1 (ie Part2) of the CPM message with UID 11, add a record item "Message/11/2" under this field; it is associated with Attachment 4 of the session history record object with UID 22 (Part3), add a record item with the value of "Link" as "Session/22/3" in the table;
如果关联的是整个CPM会谈历史记录,则按照“Conversation/Conversation-ID”的格式进行记录,其中“Conversation”指示关联对象是CPM会谈历史记录,“Conversation-ID”指示该会谈历史记录的会谈标识符。如关联的是会谈标识符为“conv3”的会谈历史记录,则在表中新增“Link”值为“Conversation/conv3”的记录项。If the connection is the entire CPM conversation history record, record it in the format of "Conversation/Conversation-ID", where "Conversation" indicates that the associated object is a CPM conversation history record, and "Conversation-ID" indicates the conversation ID of the conversation history record symbol. If the association is the conversation history record with the conversation identifier "conv3", add a record item with the "Link" value "Conversation/conv3" in the table.
创建了上述元数据模型之后,在需要访问的情况下,可以采取如下处理:After the above metadata model is created, when access is required, the following processing can be taken:
处理1:获取指定文件夹相关的元数据Processing 1: Obtain metadata related to the specified folder
MSC可通过IMAP4/GETMETADATA命令([RFC 5464])向MSS请求获取指定文件夹相关的元数据,如果指定的文件夹是“Conversation-History”文件夹,则可以从“CPM会谈信息元数据表”、“CPM消息/传输文件历史记录信息元数据表”、“CPM会话历史记录元数据表”这三种类型的元数据表中获取到相关的元数据。如果指定的文件夹是其他的系统文件夹(如“SendBox”或“ReceivedBox”文件夹)或用户文件夹,则可以从“链接信息元数据表”中获得相关的链接元数据。该命令的格式如下(携带三个参数):MSC can request to MSS to obtain the metadata related to the specified folder through the IMAP4/GETMETADATA command ([RFC 5464]). If the specified folder is the "Conversation-History" folder, it can be obtained from the "CPM Conversation Information Metadata Table" Relevant metadata can be obtained from three types of metadata tables: , "CPM message/transmission file history record information metadata table", and "CPM session history record metadata table". If the specified folder is another system folder (such as "SendBox" or "ReceivedBox" folder) or a user folder, you can get related link metadata from the "Link Information Metadata Table". The format of the command is as follows (with three parameters):
GETMETADATA<“指定文件夹的名称”><(选项)><(指定的元数据表或表中的字段名)>GETMETADATA <"name of the specified folder"><(option)><(specified metadata table or field name in the table)>
<指定文件夹的名称>参数,给出MSC希望获取元数据的目标文件夹的名称,如MSC希望获取会谈描述信息时,就会指定该文件夹为“Conversation-History”,当用户希望查看自定义“Working”文件中的内容,就会指定该文件夹为“Working”;The <specified folder name> parameter specifies the name of the target folder that MSC wants to obtain metadata. For example, when MSC wants to get the description information of the conversation, it will specify the folder as "Conversation-History". Define the content in the "Working" file, and the folder will be designated as "Working";
<(选项)>参数:使用DEPTH选项,扩展返回元数据的范围,当将DEPTH选项设置为“Infinity”时,表示返回指定元数据表中的所有字段的值。<(option)> parameter: Use the DEPTH option to expand the range of returned metadata. When the DEPTH option is set to "Infinity", it means to return the values of all fields in the specified metadata table.
<(指定的元数据表或表中的字段名)>参数:格式为“/shared/表名/主键的值/具体字段”,用于指定MSC希望获取元数据的目标元数据表的名称以及该表中的哪个字段。相关的元数据表和对应的表名为(具体的字段名请参照表1、2、3、4):<(specified metadata table or field name in the table)> parameter: the format is "/shared/table name/primary key value/specific field", which is used to specify the name of the target metadata table that MSC wants to obtain metadata and Which field in this table. Relevant metadata tables and corresponding table names (see Tables 1, 2, 3, and 4 for specific field names):
CPM会谈信息元数据表:ConversationCPM conversation information metadata table: Conversation
CPM消息/传输文件记录信息元数据表:Message_FileCPM message/transfer file record information metadata table: Message_File
CPM会话历史记录信息元数据表:SessionCPM session history information metadata table: Session
链接信息元数据:RelevanceLink information metadata: Relevance
以下结合实例进行描述,例(1),MSC向MSS请求CPM会谈历史记录的所有元数据时,使用如下命令:The following description is combined with an example. In example (1), when the MSC requests all the metadata of the CPM interview history from the MSS, the following command is used:
GETMETADATA“Conversation-History”(DEPTH Infinity)(/shared/conversation/)GETMETADATA "Conversation-History" (DEPTH Infinity) (/shared/conversation/)
例(2),如果MSC只希望获取特定记录项的某一个字段的元数据信息,如希望获得会谈标识符为“Conv3”的会谈历史记录的会谈主题信息,则MSC可使用如下命令:Example (2), if MSC only wants to obtain the metadata information of a certain field of a specific record item, such as the topic information of the conversation history record with the conversation identifier "Conv3", MSC can use the following command:
GETMETADATA“Conversation-History”(/shared/conversation/conv3/Subject)GETMETADATA "Conversation-History" (/shared/conversation/conv3/Subject)
例(3),MSC向MSS请求“SendBox”文件夹中的链接元数据时,使用如下命令:Example (3), when MSC requests the link metadata in the "SendBox" folder from MSS, use the following command:
GETMETADATA“SendBox”(DEPTH Infinity)(/shared/Relevance/)GETMETADATA "SendBox" (DEPTH Infinity) (/shared/Relevance/)
例(4),MSC向MSS请求用户自定义文件夹(如“Working”文件夹)中的所有链接元数据时,使用如下命令:Example (4), when MSC requests MSS for all link metadata in user-defined folders (such as "Working" folder), use the following command:
GETMETADATA“Working”(DEPTH Infinity)(/shared/Relecance/)GETMETADATA "Working" (DEPTH Infinity) (/shared/Relecance/)
处理1:设置指定文件夹相关的元数据Processing 1: Set the metadata related to the specified folder
MSC还可通过IMAP4/SETMETADATA命令([RFC 5464])向MSS请求修改指定文件夹相关的元数据。由于系统文件夹相关联的元数据表由MSS管理,MSC无权请求修改操作,故“Conversation-History”文件夹相关的三张元数据表、以及“SendBox”、“ReceivedBox”等系统文件夹的“链接元数据信息表”的内容应由MSS进行管理,MSC不能进行修改,而只能够以只读状态进行访问。The MSC can also request the MSS to modify the metadata related to the specified folder through the IMAP4/SETMETADATA command ([RFC 5464]). Since the metadata tables associated with system folders are managed by MSS, and MSC has no right to request modification operations, the three metadata tables related to the "Conversation-History" folder, and the system folders such as "SendBox" and "ReceivedBox" The content of the "link metadata information table" shall be managed by MSS, and MSC cannot modify it, but can only be accessed in a read-only state.
故MSC只能对用户文件夹的“链接信息元数据表”中的链接元数据进行设置。该命令的格式如下:Therefore, MSC can only set the link metadata in the "Link Information Metadata Table" of the user folder. The format of the command is as follows:
SETMETADATA<“指定文件夹的名称”><(指定的元数据表或表中的字段名设置的值)>SETMETADATA <"name of the specified folder"><(value of the specified metadata table or field name setting in the table)>
<指定文件夹的名称>参数,给出MSC希望设置元数据的用户文件夹的名称;<name of the specified folder> parameter, giving the name of the user folder that MSC wants to set metadata;
<(指定的元数据表或表中的字段名设置的值)>参数:是一个形如(entry value)的值对,其中“entry”指定了MSC希望修改的元数据所在的表及对应的字段名称,而“value”表示希望设置的值。“entry”部分的具体格式为“/shared/表名/字段名/字段的值”。<(the specified metadata table or the value set by the field name in the table)> parameter: it is a value pair in the form of (entry value), where "entry" specifies the table where the metadata that MSC wants to modify is located and the corresponding The field name, and "value" indicates the value you want to set. The specific format of the "entry" part is "/shared/table name/field name/field value".
例(1),MSC希望删除用户文件夹(“Working”)下的一个关联对象,该关联对象的链接信息序号为12,即“链接元数据表”中“Seq”字段的值“12”的链接记录,则MSC使用如下命令:Example (1), MSC wants to delete an associated object under the user folder ("Working"), the link information sequence number of this associated object is 12, that is, the value of the "Seq" field in the "Link Metadata Table" is "12" To link records, MSC uses the following command:
SETMETADATA“Working”(/shared/Relevance/12/LinkNIL)SETMETADATA "Working" (/shared/Relevance/12/LinkNIL)
第五类:文件夹对象(即文件目录):以上对象的组合存储容器,不同文件夹存储的内容并不相同。The fifth category: folder object (namely file directory): the combined storage container of the above objects, and the contents stored in different folders are different.
其中,CPM消息对象记录、CPM文件传输历史记录、CPM会话历史记录对象是作为“叶子节点”存在,不可嵌套。而文件夹对象中,用户文件夹是可以嵌套的,以提供不同的分组层。Among them, the CPM message object records, CPM file transfer history records, and CPM session history record objects exist as "leaf nodes" and cannot be nested. In folder objects, user folders can be nested to provide different grouping layers.
在具体实施过程中,创建上述消息存储模型主要包括以下处理:In the specific implementation process, creating the above message storage model mainly includes the following processing:
(1)在系统管理区域由MSS生成系统预定义的文件夹,并存放在顶层目录下。(1) In the system management area, the folders predefined by the system are generated by MSS and stored in the top-level directory.
例如,MSS生成会谈历史记录箱、收件箱、发件箱。For example, MSS generates a conversation history box, an inbox, and an outbox.
其中,“Conversation-History”文件夹(会谈历史记录箱),专门用于存储和CPM会谈相关的内容,即所有的CPM会谈以及相关的消息记录对象、文件传输历史记录对象、会话历史记录对象都直接存储在该文件夹下;Among them, the "Conversation-History" folder (conversation history box) is specially used to store content related to CPM conversations, that is, all CPM conversations and related message record objects, file transfer history record objects, and session history record objects. stored directly under this folder;
“SendBox”文件夹(发件箱),用于以CPM会谈历史记录为单位提供“发件箱视图”。即MSS应将该CPM用户发起的CPM会谈历史记录归入“发件箱视图”,其中,发件箱中包含“链接元数据”,需要在“SendBox”文件夹的“链接元数据”中添加一项记录,建立存储在“Conversation-History”文件夹的CPM会谈历史记录和“SendBox”文件夹之间的关联关系,为用户提供系统预定义的发件箱视图;The "SendBox" folder (outbox) is used to provide the "outbox view" in units of CPM session history records. That is, MSS should include the CPM meeting history records initiated by the CPM user into the "Outbox View", where the outbox contains "Link Metadata", which needs to be added in the "Link Metadata" of the "SendBox" folder A record that establishes the association between the CPM conversation history stored in the "Conversation-History" folder and the "SendBox" folder, and provides users with a system-predefined sendbox view;
“ReceivedBox”文件夹(收件箱):以CPM会谈历史记录为单位提供“收件箱视图”。即MSS应将该CPM用户参与(并非发起方)的CPM会谈历史记录归入“收件箱视图”,其中,收件箱中包含“链接元数据”,即在“ReceivedBox”文件夹的“链接元数据”中添加一项记录,建立存储在“Conversation-History”文件夹中的CPM会谈历史记录和“ReceivedBox”文件夹之间的关联关系,为用户提供系统预定义的收件夹视图。"ReceivedBox" folder (inbox): Provides "inbox view" in units of CPM conversation history. That is to say, MSS should include the CPM meeting history records of the CPM user (not the originator) in the "inbox view", where the inbox contains "link metadata", that is, the "link metadata" in the "ReceivedBox" folder Add a record in "Metadata" to establish the association between the CPM conversation history stored in the "Conversation-History" folder and the "ReceivedBox" folder, and provide users with a predefined view of the inbox.
因此,上述系统预定义的文件夹,实际上是由MSS提供的三种系统预定义视图,即“会谈视图”、“发件箱视图”、“收件箱视图”,此三种视图都是以CPM会谈历史记录为单位,为用户提供系统预定义的存储内容的组织关系。Therefore, the above system-predefined folders are actually three system-predefined views provided by MSS, namely "conversation view", "outbox view" and "inbox view". These three views are all Taking the CPM meeting history record as the unit, it provides users with the organizational relationship of the storage content predefined by the system.
优选地,用户对系统文件夹(例如,“Conversation-History”文件夹、“SendBox”文件夹和“ReceivedBox”文件夹)的管理操作是受限的。例如,不允许用户在系统文件夹下创建子文件夹;不允许用户删除、复制、移动、重命名系统文件夹;不允许用户上传文件到系统文件夹;只允许用户查看系统文件夹中的内容,只允许用户以会谈为单位删除会谈历史记录。Preferably, the user's management operations on system folders (eg, "Conversation-History" folder, "SendBox" folder, and "ReceivedBox" folder) are limited. For example, users are not allowed to create subfolders under system folders; users are not allowed to delete, copy, move, and rename system folders; users are not allowed to upload files to system folders; only users are allowed to view the contents of system folders , only allow users to delete meeting history records in units of meetings.
(2)上述会谈历史记录箱是在MSS上专门用于存储CPM会谈历史记录相关的内容的文件夹,也就是说,将所有的消息记录对象、文件传输历史记录对象和会话历史记录对象都直接存储在“Conversation-History”文件夹下。(2) The above-mentioned meeting history record box is a folder specially used to store the content related to the CPM meeting history record on the MSS, that is to say, all message record objects, file transfer history record objects and session history record objects are directly Stored under the "Conversation-History" folder.
优选地,通过“会谈元数据”信息维持会谈视图。即会谈历史记录箱中的记录对象和它们各自所属CPM会谈之间的关联关系通过“会谈元数据”信息来维持。Preferably, the chat view is maintained through "chat metadata" information. That is, the relationship between the recorded objects in the meeting history box and their respective CPM talks is maintained through the "metadata of the meeting".
优选地,由于CPM会谈本身就是一个逻辑的概念,并没有实际的物理实体与之相对应,所以关于各个CPM会谈的描述信息需要通过元数据来提供,因此“会谈元数据”需要提供CPM会谈的描述信息。Preferably, since the CPM meeting itself is a logical concept, and there is no actual physical entity corresponding to it, the description information about each CPM meeting needs to be provided through metadata, so the "metadata of the meeting" needs to provide the CPM meeting Description.
(3)用户实际需求在用户管理区域中建立一个或多个自定义文件夹(可嵌套),并通过使用“链接元数据”建立存储在会谈历史记录文件夹中的实际会谈内容和用户文件夹之间的关联关系,从而提供用户自定义视图。(3) The user's actual needs Create one or more custom folders (can be nested) in the user management area, and create the actual meeting content and user files stored in the meeting history folder by using "link metadata" The relationship between folders, thus providing a user-defined view.
优选地,用户可以将本地存储的消息记录文件、文件传输历史记录文件或会话历史记录文件(或记录文件的某部分内容)上传到消息存储服务器上的用户自定义文件夹中,并可以将这些文件在不同的用户自定义文件夹之间进行移动。也就是说,对于用户自定义的文件夹,用户拥有完全的管理权限,可以创建子文件夹、重命名、移动、删除、复制用户文件夹和文件。Preferably, the user can upload the locally stored message record file, file transfer history record file or session history record file (or some content of the record file) to a user-defined folder on the message storage server, and can upload these Files are moved between different user-defined folders. That is to say, for user-defined folders, users have full administrative rights, and can create subfolders, rename, move, delete, and copy user folders and files.
优选地,用户还可以上传本地记录文件到消息存储服务器上的自定义文件夹中,并可以在不同的用户文件夹之间将文件进行移动。也就是说,对于用户自定义的文件夹,用户拥有完全的管理权限,可以创建子文件夹、重命名、移动、删除、复制用户文件夹和文件。Preferably, the user can also upload the local record file to a custom folder on the message storage server, and can move the file between different user folders. That is to say, for user-defined folders, users have full administrative rights, and can create subfolders, rename, move, delete, and copy user folders and files.
优选地,在执行步骤S402之后,上述方法还可以包括以下处理:Preferably, after step S402 is performed, the above method may further include the following processing:
(1)消息存储服务器将客户端对请求访问的文件信息的权限进行检查;(1) The message storage server checks the authority of the client to request access to the file information;
(2)消息存储服务器确定客户端对请求的文件信息具有访问控制权限。(2) The message storage server determines that the client has access control authority to the requested file information.
其中,客户端的访问控制权限规定了用户能够对消息存储服务器上的文件夹以及该文件夹下所存储资源的访问及操控能力。每当用户请求对消息存储服务器上所存储的资源进行操控时(即执行不同的操作命令时),都需要对该请求方对相应资源的访问控制权限进行检查,只有满足一定的权限,消息存储服务器才可以执行相关的操作,否则消息存储服务器将拒绝请求方的请求命令,并返回错误应答消息。Wherein, the access control authority of the client defines the ability of the user to access and manipulate the folder on the message storage server and the resources stored in the folder. Whenever a user requests to manipulate the resources stored on the message storage server (that is, when executing different operation commands), it is necessary to check the access control authority of the requester to the corresponding resource. Only when certain permissions are met, the message storage Only the server can perform related operations, otherwise the message storage server will reject the requesting party's request command and return an error response message.
根据[RFC 4314 ACL扩展]中的定义,上述访问控制权限可以参见访问控制列表(ACL),其中,ACL是一组<Access Identifiers,rights>值对,“Access Identifiers”标识责任人,而“rights”标识相应的责任人有哪些访问控制权限。一个ACL应用于一个“邮箱”(即文件夹)。According to the definition in [RFC 4314 ACL extension], the above access control rights can refer to the access control list (ACL), where ACL is a set of <Access Identifiers, rights> value pairs, "Access Identifiers" identifies the responsible person, and "rights ”Identifies which access control permissions the corresponding responsible person has. An ACL applies to a "mailbox" (ie folder).
[RFC 4314]为IMAP4服务器上的文件夹及文件夹下的资源定义了以下的访问控制权限,并通过不同的权限标识符进行标识,例如:[RFC 4314] defines the following access control permissions for folders on the IMAP4 server and resources under the folders, and is identified by different permission identifiers, for example:
l:lookup,表示文件夹可列表,即可以被LIST、LSUB、SUBSCRIBE命令访问;l: lookup, indicating that the folder can be listed, that is, it can be accessed by LIST, LSUB, and SUBSCRIBE commands;
r:read,表示文件夹可读,即可被SELECT、STATUS命令访问;r: read, indicating that the folder is readable and can be accessed by SELECT and STATUS commands;
s:在会话中保持seen/unseen标记信息,即可通过STORE命令设置或清除\SEEN标记;s: Keep the seen/unseen flag information in the session, you can set or clear the \SEEN flag through the STORE command;
w:write,表示文件夹可写,即可通过STORE设置或清除除了\SEEN和\DELETED之外的其他标记,或通过APPEND、COPY命令对除了\SEEN和\DELETED之外的其他标记进行设置;w: write, indicating that the folder is writable, you can set or clear other marks except \SEEN and \DELETED through STORE, or set other marks except \SEEN and \DELETED through APPEND and COPY commands;
i:insert,表示文件夹可被APPEND、COPY命令操作;i: insert, indicating that the folder can be operated by APPEND and COPY commands;
k:create mailboxes,表示可使用CREATE命令在该文件夹下创建任意层次的字文件夹,或通过RENAME命令对该文件夹进行移动/重命名操作;k: create mailboxes, which means that you can use the CREATE command to create sub-folders of any level under this folder, or use the RENAME command to move/rename the folder;
x:delete mailboxes,表示该文件夹可通过DELETE命令删除,或可被RENAME命令删除源文件夹;x: delete mailboxes, indicating that the folder can be deleted by the DELETE command, or the source folder can be deleted by the RENAME command;
t:delete Messages,可通过STORE操作对该文件夹下的文件设置或清除\DELETED标记,通过APPEND/COPY命令设置\DELETED标记;t: delete Messages, the \DELETED mark can be set or cleared for the files under the folder through the STORE operation, and the \DELETED mark can be set through the APPEND/COPY command;
e:可通过EXPUNGE命令执行删除操作;e: The delete operation can be performed through the EXPUNGE command;
a:administer,可执行SETACL、DELETEACL、GETACL、LISTRIGHTS等对访问控制列表进行管理的命令;a:administer, which can execute SETACL, DELETEACL, GETACL, LISTRIGHTS and other commands to manage the access control list;
在具体实施过程中,消息存储服务器上的文件夹可以分成两种不同的类型:(1)由系统创建的文件夹,如“Root-User”根目录文件夹,以及“Conversation-History”会谈历史记录文件夹;(2)由用户自定义创建的文件夹,如“Folder1”、“Folder2”等;In the specific implementation process, the folders on the message storage server can be divided into two different types: (1) folders created by the system, such as "Root-User" root directory folder, and "Conversation-History" conversation history Record folder; (2) Folders created by users, such as "Folder1", "Folder2" and so on;
当MSS创建一个文件夹时就会首先为这个文件夹分配一定的权限,之后用户对该文件夹的操作应该依据权限来执行。当然,根据系统请求创建的文件夹和用户请求创建的文件夹的不同,MSS为其分配的权限也不相同。When MSS creates a folder, it will first assign certain permissions to the folder, and then the user's operations on the folder should be performed according to the permissions. Of course, depending on the folder created by the system request and the folder created by the user request, the MSS assigns different permissions to it.
例如,为系统级文件夹分配用户访问控制权限,CPM用户主要对系统文件夹进行查看行为,应限制其他的如修改、删除、移动等操作权限,防止用户的误操作对CPM会谈历史记录完整性的破坏。所以对于系统级文件夹,可以分配以下访问权限:l、r等。系统文件夹不能分配以下访问权限:x、k等。For example, assign user access control permissions to system-level folders. CPM users mainly view system folders, and other operations such as modification, deletion, and movement should be restricted to prevent user misoperations from affecting the integrity of CPM session history records. destruction. So for system-level folders, you can assign the following access rights: l, r, etc. System folders cannot be assigned the following access rights: x, k, etc.
在为用户自定义文件夹分配访问控制权限时,因为用户对自己创建的文件夹拥有完全的访问控制权限,可以分配所有的权限标识符,并且用户还可以按照[RFC 4314]的规定和流程,通过SETACL、DELETEACL、GETACL、LISTRIGHTS等命令来管理自定义文件夹的各种访问控制权限,即为别的CPM用户赋予访问用户自定义文件夹的相关权限的能力。When assigning access control permissions to user-defined folders, because users have full access control permissions to the folders they create, all permission identifiers can be assigned, and users can also follow the regulations and procedures of [RFC 4314], Through SETACL, DELETEACL, GETACL, LISTRIGHTS and other commands to manage various access control permissions of user-defined folders, that is, to give other CPM users the ability to access relevant permissions of user-defined folders.
以下结合四个实施例分别对用户“获得访问控制列表操作”、“设置访问控制列表操作”、“删除访问控制列表操作”以及“获得访问权限操作”进行描述,其中,上述操作都是针对用户文件夹进行的,系统文件夹由于出于安全性考虑,没有对用户分配“a”(administer)权限,故用户无法管理系统文件夹的访问控制列表。The following describes the user's "operation of obtaining access control list", "operation of setting access control list", "operation of deleting access control list" and "operation of obtaining access authority" in combination with four embodiments, wherein the above operations are all for users For security reasons, the system folder does not assign "a" (administer) permission to the user, so the user cannot manage the access control list of the system folder.
实施例一:用户获得访问控制列表操作Embodiment 1: User obtains access control list operation
用户如果想获得某个用户文件夹的访问控制列表,则按照[RFC4314]中的规定,由MSC构造IMAP4/GETACL命令,指定目标文件夹的名称,向MSS请求目标文件夹的访问控制列表,具体可以参见图6。If the user wants to obtain the access control list of a certain user folder, according to the regulations in [RFC4314], the MSC constructs the IMAP4/GETACL command, specifies the name of the target folder, and requests the MSS for the access control list of the target folder, specifically See Figure 6.
用户向MSS请求“Working”用户文件夹的访问控制列表,MSS接收到该命令后检查请求方用户是否对目标文件夹具有“a”权限,即是否能够获取访问控制列表的权限。如果具有该权限,则MSS在对GETACL命令的应答消息中返回访问控制列表,如上图所示,访问控制列表中显示,用户“Fred”对目标文件夹拥有“rwipslxetad”权限,而用户“Chris”对目标文件夹拥有“lrswi”权限。The user requests the MSS for the access control list of the "Working" user folder. After receiving the command, the MSS checks whether the requesting user has the "a" permission for the target folder, that is, whether the permission of the access control list can be obtained. If it has this permission, MSS returns the access control list in the response message to the GETACL command, as shown in the above figure, the access control list shows that the user "Fred" has the "rwipslxetad" permission on the target folder, and the user "Chris" Have "lrswi" permissions on the target folder.
如果请求方用户对目标文件夹不具有“a”权限,则MSS应该使用失败应答消息拒绝请求方的GETACL命令。If the requester user does not have "a" permission on the target folder, the MSS should reject the requester's GETACL command with a failure response message.
实施例二:用户设置访问控制列表操作Embodiment 2: User setting access control list operation
如果用户希望对某个用户文件夹的访问控制列表进行设置,例如为另外的用户赋予某些权限,则应该按照[RFC 4314]中规定的流程,由MSC构造IMAP4/SETACL命令,请求MSS为指定目标文件夹添加对某用户的访问控制权限,具体可以参见图7。If the user wants to set the access control list of a user folder, such as granting certain permissions to another user, the MSC should construct the IMAP4/SETACL command according to the procedure specified in [RFC 4314], and request the MSS to specify Add the access control permission to a certain user to the target folder, see Figure 7 for details.
用户向MSS请求为另外的用户“Chris”增加对目标文件夹“Working”的访问控制权限“cda”。MSS接收到该命令后,首先应该检查请求方用户对目标文件夹是否具有“a”权限,如果请求方用户对目标文件夹具有“a”权限,那么MSS将按照SETACL命令中的请求,为目标文件夹“Working”的访问控制列表中,增加“Chris”用户的“cda”权限;如果请求方用户对目标文件夹不具有“a”权限,则MSS应该使用失败应答消息拒绝请求方的SETACL命令。The user requests MSS to add the access control authority "cda" to the target folder "Working" for another user "Chris". After MSS receives this command, it should first check whether the requesting user has the "a" permission on the target folder. If the requesting user has "a" permission on the target folder, then MSS will follow the request in the SETACL command as the target folder. In the access control list of the folder "Working", add the "cda" permission of the "Chris" user; if the requester user does not have the "a" permission for the target folder, MSS should reject the requester's SETACL command with a failure response message .
实施例三:用户删除访问控制列表操作Embodiment 3: User deletes the access control list operation
如果用户希望删除另一个用户对某用户文件夹的访问控制列表,则应该按照[RFC 4314]中规定的流程,由MSC构造“IMAP4/DELETEACL”命令,请求MSS将指定用户对目标文件夹的访问控制权限列表删除,具体可以参见图8。If a user wants to delete another user's access control list to a certain user folder, the MSC should follow the procedure specified in [RFC 4314] to construct an "IMAP4/DELETEACL" command, requesting the MSS to specify the user's access to the target folder Control permission list deletion, see Figure 8 for details.
用户向MSS请求删除另外的用户“Fred”对目标文件夹“Working”的访问控制权限列表。MSS接收到该命令后,首先应该检查请求方用户对目标文件夹是否具有“a”权限;如果请求方用户对目标文件夹具有“a”权限,那么MSS将按照DELETEACL命令中的请求,为目标文件夹“Working”的访问控制列表中,删除“Fred”用户的所有访问控制权限;如果请求方用户对目标文件夹不具有“a”权限,则MSS应该使用失败应答消息拒绝请求方的DELETEACL命令。The user requests the MSS to delete the access control permission list of another user "Fred" to the target folder "Working". After MSS receives this command, it should first check whether the requesting user has "a" permission on the target folder; if the requesting user has "a" permission on the target folder, then MSS will follow the request in the DELETEACL command as the target In the access control list of the folder "Working", delete all access control permissions of the "Fred" user; if the requester user does not have the "a" permission on the target folder, MSS should reject the requester's DELETEACL command with a failure response message .
实施例四:用户获得访问权限操作Embodiment 4: User obtains access permission operation
如果用户想获得某个特定的用户对自己所创建的用户文件夹拥有哪些访问控制权限,则可按照[RFC 4314]中的规定,由MSC构造“IMAP4/LISTRIGHTS”命令,请求MSS返回指定用户对目标文件夹的访问控制权限列表,具体可以参见图9。If the user wants to know which access control authority a specific user has for the user folder he created, he can follow the regulations in [RFC 4314], and the MSC constructs the "IMAP4/LISTRIGHTS" command to request the MSS to return the specified user's access control authority. For the access control permission list of the target folder, see Figure 9 for details.
用户向MSS请求获得某用户“Smith”对目标文件夹“Working”的访问控制权限列表。MSS接收到该命令后,首先应该检查请求方用户对目标文件夹是否具有“a”权限;如果请求方用户对目标文件夹具有“a”权限,那么MSS将按照LISTRIGHTS命令中的请求,在目标文件夹“Working”的访问控制列表中,查找“Smith”用户的所有访问控制权限,并在对LISTRIGHTS命令的应答消息中返回;如果请求方用户对目标文件夹不具有“a”权限,则MSS应该使用失败应答消息拒绝请求方的LISTRIGHTS命令。The user requests the MSS to obtain the access control permission list of the user "Smith" to the target folder "Working". After MSS receives this command, it should first check whether the requesting user has the "a" permission on the target folder; if the requesting user has the "a" permission on the target folder, then MSS will follow the request in the LISTRIGHTS In the access control list of the folder "Working", find all access control permissions of the "Smith" user and return it in the reply message to the LISTRIGHTS command; if the requesting user does not have the "a" permission on the target folder, MSS The requestor's LISTRIGHTS command SHOULD be rejected with a failure response message.
用户进行消息存储访问操作主要包括以下处理(操作一至操作十):The user's message storage access operation mainly includes the following processing (operation 1 to operation 10):
在具体实施过程中,当CPM用户希望查看MSS上存储的内容时,首先将使用MSC(即上述客户端)登陆MSS(即消息存储服务器)。In the specific implementation process, when a CPM user wishes to view the content stored on the MSS, he will first log in to the MSS (ie, the message storage server) using the MSC (ie, the above-mentioned client).
步骤1、用户使用MSC登陆MSS;Step 1. The user uses MSC to log in to MSS;
其中,MSC将按照[RFC 3501]的规定和流程通过使用IMAP4/AUTHENTICATE命令或IMAP4/LOGIN命令和MSS之间进行认证,只有认证成功,MSC才可以访问MSS上的资源,如果认证失败,MSC将无法访问MSS上的资源。Among them, MSC will use the IMAP4/AUTHENTICATE command or IMAP4/LOGIN command to authenticate with MSS according to the regulations and procedures of [RFC 3501]. Only when the authentication is successful, MSC can access the resources on MSS. Unable to access resources on MSS.
优选地,AUTHENTICATE命令允许MSC不发送文本格式的用户名和口令,而是使用其他的认证机制登陆MSS。当使用该命令时,MSC必须按照[RFC 3501]中的规定和流程,构造一条有效的AUTHENTICATE命令,并在<authentication mechanism name>参数中使用特定的认证机制。Preferably, the AUTHENTICATE command allows the MSC to use other authentication mechanisms to log in to the MSS instead of sending the user name and password in text format. When using this command, MSC must construct a valid AUTHENTICATE command according to the regulations and procedures in [RFC 3501], and use a specific authentication mechanism in the <authentication mechanism name> parameter.
步骤2:MSS接收到该命令后会返回一个提示字符串,提示MSC选择适当的认证方法,如果MSS不支持MSC建议的认证方法,将返回NO应答消息。这时MSC必须尝试使用其他认证方法,直至使用LOGIN命令。Step 2: MSS will return a prompt string after receiving the command, prompting MSC to select an appropriate authentication method, if MSS does not support the authentication method suggested by MSC, it will return a NO response message. At this time the MSC must try to use other authentication methods until the LOGIN command is used.
其中,LOGIN命令允许MSC使用文本方式的用户名和口令登陆MSS,尽管这并不是一个好的方法,但有时却是MSC和MSS之间均可使用的唯一方法。当使用该命令时,MSC必须按照[RFC 3501]中的规定和流程,构造一条有效的LOGIN命令,在<user name>参数中使用MSC的用户名,在<password>参数中使用口令。Among them, the LOGIN command allows MSC to use textual user name and password to log in to MSS. Although this is not a good method, it is sometimes the only method that can be used between MSC and MSS. When using this command, MSC must construct a valid LOGIN command according to the regulations and procedures in [RFC 3501], use the MSC user name in the <user name> parameter, and use the password in the <password> parameter.
步骤3:MSS接收到LOGIN命令后,使用用户名和口令进行认证,若认证成功,则返回OK应答消息,认证失败则返回NO应答消息,若参数错误则返回BAD应答消息。Step 3: After MSS receives the LOGIN command, it uses the user name and password for authentication. If the authentication is successful, it returns an OK response message. If the authentication fails, it returns a NO response message. If the parameters are wrong, it returns a BAD response message.
在用户登录消息存储器之后,如果用户选择某个文件夹(可以是系统文件夹,也可以是用户文件夹)进行查看,那么MSC首先通过构造IMAP4/SELECT命令([RFC 3501])携带该文件夹的名字,请求MSS选中该文件夹。MSS接收到该命令后将目标文件夹设置为活跃文件夹。After the user logs into the message storage, if the user selects a folder (it can be a system folder or a user folder) to view, then MSC first carries the folder by constructing an IMAP4/SELECT command ([RFC 3501]) name, request MSS to select the folder. MSS sets the target folder as the active folder after receiving the command.
如图10所示,如果用户选择“Conversation-History”文件夹,则MSC构造如下的SELECT命令向MSS请求将该文件夹设置为活跃文件夹。As shown in Figure 10, if the user selects the "Conversation-History" folder, the MSC constructs the following SELECT command to request the MSS to set the folder as an active folder.
同样,用户还可以选中用户文件夹以将其设置为活跃文件夹。Likewise, users can also check a user folder to make it the active folder.
操作一、用户选中会谈历史记录箱,查看CPM会谈历史记录列表;Operation 1. The user selects the meeting history box to view the CPM meeting history list;
用户通过MSC登录MSS之后,首先会获得服务器上的可用文件夹列表,用户在界面上看到“Conversation-History”文件夹(会谈历史记录箱),当用户希望查看会谈历史记录文件夹下有哪些会谈历史记录时,MSC就会向MSS请求会谈历史记录的相关信息。After the user logs in to MSS through MSC, the user will first obtain a list of available folders on the server, and the user will see the "Conversation-History" folder (conversation history box) on the interface. When the interview history is recorded, the MSC will request information about the interview history from the MSS.
优选地,当用户需要查看会谈历史记录信息时,方法还可以包括以下处理:Preferably, when the user needs to view the conversation history record information, the method may also include the following processing:
(1)消息存储服务器接收来自于客户端的会谈元数据信息请求指令,其中,会谈元数据信息请求指令携带有会谈元数据信息所属的目录标识信息;(1) The message storage server receives the session metadata information request instruction from the client, wherein the session metadata information request instruction carries the directory identification information to which the session metadata information belongs;
(2)消息存储服务器将会谈元数据信息发送至客户端以进行解析和呈现。(2) The message storage server sends the metadata information of the conversation to the client for parsing and presentation.
上述图2所示的架构中,将所有的记录对象分散在任意的文件夹中,没有定义相应的机制来展现“会谈历史记录”。而图5所示的存储架构中,会谈视图可以通过会谈元数据提供。In the architecture shown in Figure 2 above, all record objects are scattered in arbitrary folders, and no corresponding mechanism is defined to display "conversation history records". In the storage architecture shown in Figure 5, the session view can be provided through session metadata.
具体地,MSC可使用IMAP4/GETMETADATA命令([RFC5464]),指定目标文件夹的名称为“Conversation-History”,向MSS的会谈历史记录文件夹请求获取“会谈信息元数据表”所有会谈历史记录元数据信息。MSC在获取到会谈相关的描述信息之后,进行解析并在客户端展现会谈视图。(注:“Deleted字段”设置为“True”的那些CPM会谈将不会通过系统提供的会谈视图呈现给MSC。)Specifically, MSC can use the IMAP4/GETMETADATA command ([RFC5464]), specify the name of the target folder as "Conversation-History", and request to obtain all the conversation history records of the "Conversation Information Metadata Table" from the conversation history folder of MSS metadata information. After MSC obtains the description information related to the meeting, it analyzes and displays the meeting view on the client. (Note: Those CPM talks with "Deleted Field" set to "True" will not be presented to MSC through the system-provided talk view.)
以下结合实例进行描述。Describe below in conjunction with example.
如果用户选择CPM会谈文件夹(即“Conversation-History”),希望查看CPM会谈记录信息,则MSC应该向MSS发送IMAP4/GETMETADATA命令([RFC 5464]),获取“Conversation-History”文件夹相关联的CPM会谈元数据信息,作为CPM会谈的描述信息,在客户端展现。If the user selects the CPM conversation folder (that is, "Conversation-History") and wants to view the CPM conversation record information, the MSC should send the IMAP4/GETMETADATA command ([RFC 5464]) to the MSS to obtain the information associated with the "Conversation-History" folder. The metadata information of the CPM session is displayed on the client as the description information of the CPM session.
因为CPM会谈是一个逻辑概念,并没有实际的物理存储实体与之相对应,也就是说CPM会谈的摘要信息(如发起时间、结束时间、会谈主题、参与者等)信息都来自于该会谈所包含的CPM消息或CPM文件传输历史记录或CPM会话历史记录。当MSC向MSS请求会谈摘要信息时,MSS不可能每次都去解析CPM消息记录文件或者CPM文件传输历史记录文件或者CPM会话历史记录文件,从而获得CPM会谈的相关信息,而通过元数据可以较好地记录这些信息。故使用[RFC 5264]扩展的GETMETADATA命令来获取会谈信息元数据,具体参见图11。Because the CPM talk is a logical concept, there is no actual physical storage entity corresponding to it, that is to say, the summary information of the CPM talk (such as start time, end time, talk topic, participants, etc.) comes from the information of the talk Included CPM messages or CPM file transfer history or CPM session history. When the MSC requests the meeting summary information from the MSS, it is impossible for the MSS to parse the CPM message record file or the CPM file transmission history record file or the CPM session history record file every time, so as to obtain the relevant information of the CPM meeting, and the metadata can be compared Record this information well. Therefore, use the extended GETMETADATA command of [RFC 5264] to obtain the meeting information metadata, see Figure 11 for details.
如图11所示,该GETMETADATA请求命令之后,执行以下步骤:As shown in Figure 11, after the GETMETADATA request command, the following steps are performed:
步骤1:解析该命令,提取出<目标文件夹名称>参数为“Conversation-History”,<选项>参数为“DEPTH infinity”,<entry>参数为“/shared/Conversation/”后;Step 1: Parse the command and extract the <target folder name> parameter as "Conversation-History", the <option> parameter as "DEPTH infinity", and the <entry> parameter as "/shared/Conversation/";
步骤2:根据元数据表名为“Conversation”,MSS查询会谈历史记录文件夹的“CPM会谈信息元数据表”,取得该表中所有那些“Deleted”字段设置为“False”的记录行(表示用户没有执行过会谈记录删除操作的那些记录,即有效会谈历史记录信息)的所有字段以及对应的值,通过GETMETADATA的应答命令向MSC返回。Step 2: According to the name of the metadata table "Conversation", MSS queries the "CPM Conversation Information Metadata Table" in the conversation history folder, and obtains all the record rows in the table whose "Deleted" field is set to "False" (indicating All fields and corresponding values of those records for which the user has not performed the operation of deleting interview records (that is, the effective interview history record information) are returned to the MSC through the response command of GETMETADATA.
由图可知,MSS返回的GETMETADATA命令的应答消息中获得MSS上存储的有效CPM会谈信息元数据表的所有信息。如图6所示的GETMETADATA命令返回的是一系列的值对<entry,value>,其中,entry指示元数据表中的字段,而value是该字段对应的值。例如“/shared/conversation/convID1/StartTime“2009/05/22 18:00””表示会谈信息表中会谈标识符为“ConvID1”的CPM会谈历史记录的会谈开始时间(“StartTime”)为“2009/05/22 18:00”。这样MSC就能够获取到MSS上存储了哪些会谈,以及这些会谈的摘要信息,MSC就能够通过界面向用户展现。例如,当用户选择了会谈文件夹之后,就会在右侧的显示区域以一行记录为单位显示该会谈文件夹下存储的所有CPM会谈的摘要信息。It can be seen from the figure that all information of the effective CPM meeting information metadata table stored on the MSS is obtained from the response message of the GETMETADATA command returned by the MSS. The GETMETADATA command shown in Figure 6 returns a series of value pairs <entry, value>, where entry indicates a field in the metadata table, and value is the value corresponding to the field. For example, "/shared/conversation/convID1/StartTime"2009/05/22 18:00"" indicates that the conversation start time ("StartTime") of the CPM conversation history record with the conversation identifier "ConvID1" in the conversation information table is "2009 /05/22 18:00". In this way, the MSC can obtain which talks are stored on the MSS and the summary information of these talks, and the MSC can display them to the user through the interface. For example, after the user selects a meeting folder, the summary information of all CPM talks stored under the meeting folder will be displayed in units of one line of records in the display area on the right.
操作二、用户选择一个会谈历史记录,查看该会谈历史记录的具体内容;Operation 2. The user selects a conversation history record to view the specific content of the conversation history record;
优选地,在查看会谈历史记录信息之后,方法还可以包括以下处理:Preferably, after viewing the interview history record information, the method may further include the following processing:
(1)消息存储服务器接收来自于客户端的记录对象标识信息;(1) The message storage server receives the record object identification information from the client;
(2)消息存储服务器将记录对象标识信息对应的记录对象的部分或全部信息发送至客户端以进行呈现。(2) The message storage server sends part or all information of the record object corresponding to the record object identification information to the client for presentation.
在具体实施过程中,当用户在获得会谈列表后,已经通过命令获取到该会谈的相关元数据信息,其中,该信息包括了<Content-UID>字段的值,该字段值记录的正是该CPM会谈包含的所有CPM消息记录、CPM文件传输历史记录、CPM会话历史记录文件的UID(MSS上的唯一存储标识符),使用这些UID,MSC就能够通过相应命令向MSS获取该CPM会谈相关的所有记录文件的头部信息或内容信息,在本地呈现。In the specific implementation process, after the user obtains the meeting list, he has obtained the relevant metadata information of the meeting through commands, where the information includes the value of the <Content-UID> field, which records exactly the The UIDs (unique storage identifiers on the MSS) of all CPM message records, CPM file transfer history records, and CPM session history files contained in the CPM conversation, using these UIDs, the MSC can obtain the information related to the CPM conversation from the MSS through corresponding commands. The header information or content information of all recorded files is presented locally.
以下结合实例进行描述。Describe below in conjunction with example.
CPM用户查看到会谈信息列表时,可能选择其中一条CPM会谈历史记录,查看其详细的记录内容。由于MSC已经通过LIST命令获取到CPM会谈历史记录在MSS上对应的会谈历史记录子文件夹的名称,则MSC可以通过IMAP4/SELECT命令选中对应的会谈历史记录子文件夹,再通过IMAP4/FETCH命令取得该文件夹下与该CPM会谈相关的所有记录文件,具体可以参见图12。When a CPM user views the meeting information list, he may select one of the CPM meeting history records to view its detailed record content. Since MSC has acquired the name of the subfolder of CPM conversation history on MSS through the LIST command, MSC can select the corresponding conversation history subfolder through the IMAP4/SELECT command, and then through the IMAP4/FETCH command Obtain all the record files related to the CPM meeting under the folder, see Figure 12 for details.
如图12所示,当MSC通过IMAP4/SELECT命令([RFC 3501])选中对应的会谈历史记录子文件夹之后,就可以通过IMAP4/FETCH命令([RFC 3501])向MSS请求获取该会谈包含的CPM消息记录文件、CPM文件传输历史记录文件和CPM会话历史记录文件的头部或正文部分信息,MSS接收到该命令之后,获取到相关的信息通过FETCH应答命令向MSC返回。As shown in Figure 12, after the MSC selects the corresponding session history subfolder through the IMAP4/SELECT command ([RFC 3501]), it can request the MSS to obtain the session history record subfolder through the IMAP4/FETCH command ([RFC 3501]) After receiving the command, the MSS obtains relevant information and returns it to the MSC through the FETCH response command.
MSC在本地存储上述信息,并进行解析,向用户展现该CPM会谈历史记录的内容。The MSC stores the above information locally, analyzes it, and presents the content of the CPM meeting history to the user.
用户浏览CPM会谈历史记录内容,如果希望查看某条CPM消息或CPM会话历史记录携带的媒体附件的内容,则MSC通过FETCH命令携带希望获取的媒体附件所在的消息记录文件或CPM会话历史记录文件的UID以及媒体附件的part编号,向MSS请求数据。MSS接收到该命令后进行解析,根据UID和Part号取得相应的数据向MSC返回,MSC在本地存储并进行解析呈现。When a user browses the content of the CPM conversation history record, if he wants to view the content of a certain CPM message or the content of the media attachment carried by the CPM session history record, the MSC uses the FETCH command to carry the information of the message record file or the CPM session history file where the desired media attachment is located. The UID and the part number of the media attachment request data from the MSS. After receiving the command, the MSS analyzes it, obtains the corresponding data according to the UID and Part number and returns it to the MSC, and the MSC stores it locally and performs analysis and presentation.
在具体实施过程中,上述用户自定义文件夹(用户自定义文件目录)是用户在MSS的用户管理区域中创建的。由于操作权限的限制,用户无权在系统管理区域中创建文件夹,只能够在用户管理区域中创建自定义文件夹。In the specific implementation process, the above-mentioned user-defined folder (user-defined file directory) is created by the user in the user management area of MSS. Due to the limitation of operation rights, users do not have the right to create folders in the system management area, but can only create custom folders in the user management area.
MSC通过构造IMAP4/CREATE命令([RFC 3501])请求MSS创建用户自定义文件夹,并在CREATE命令中的<mailbox name>参数中携带该用户要创建的文件夹的名称,该文件夹的命名符合标准路径命名规则,使用斜线(/)作为层次分隔符。MSC requests MSS to create a user-defined folder by constructing an IMAP4/CREATE command ([RFC 3501]), and carries the name of the folder to be created by the user in the <mailbox name> parameter in the CREATE command, and the name of the folder Comply with the standard path naming rules, use slash (/) as the layer separator.
如图13所示,MSC使用CREATE命令创建名为“working/ims/cpm”的文件夹,且该路径并不存在时,MSS将在用户的登录目录下首先创建working文件夹和ims文件夹,再在working/ims路径下创建cpm文件夹。As shown in Figure 13, MSC uses the CREATE command to create a folder named "working/ims/cpm", and if the path does not exist, MSS will first create the working folder and ims folder in the user's login directory. Then create a cpm folder under the working/ims path.
当MSC接收到来自MSS的OK应答命令时,表示创建文件夹操作成功完成,MSC在本地呈现新创建的文件夹。如果MSC接收到来自MSS的NO应答命令或BAD应答命令时,表示创建文件夹操作失败,不能创建指定的文件夹,则MSC向用户返回错误提示信息。When the MSC receives the OK response command from the MSS, it means that the operation of creating the folder is successfully completed, and the MSC presents the newly created folder locally. If the MSC receives a NO response command or a BAD response command from the MSS, it means that the folder creation operation fails and the specified folder cannot be created, and the MSC returns an error message to the user.
操作三、在访问指令指示将部分或全部会谈历史记录信息添加到自定义文件目录(即用户添加CPM消息记录(或其中某一部分)、CPM文件传输历史记录、CPM会话历史记录(或其中某一部分)或CPM会谈历史记录到自定义文件夹中)时,上述步骤S406可以进一步包括以下处理:Operation 3. Add part or all of the interview history information to the custom file directory under the access instruction instruction (that is, the user adds CPM message records (or a part of them), CPM file transfer history records, CPM session history records (or a part of them) ) or the history of CPM talks into a custom folder), the above step S406 may further include the following processing:
(1)消息存储服务器将需要关联的记录项添加在链接元数据信息中,以使记录项的部分或全部信息与用户自定义文件目录相关联;(1) The message storage server adds the record item that needs to be associated to the link metadata information, so that part or all of the information of the record item is associated with the user-defined file directory;
(2)消息存储服务器根据记录项的类型更新会谈元数据信息的关联字段。(2) The message storage server updates the associated field of the meeting metadata information according to the type of the record item.
在具体实施过程中,用户在浏览CPM会谈历史记录的时候,可能对某个CPM消息记录/CPM文件传输历史记录/CPM会话历史记录、或记录文件中的某个部分(如某图片、音频、视频)、或对这整条CPM会谈历史记录感兴趣,希望将它们添加到自定义的文件夹中进行分类管理,进行分类管理,从而构建个性化的视图。则执行以下处理:In the specific implementation process, when the user browses the CPM conversation history record, he may record a certain CPM message record/CPM file transmission history record/CPM session history record, or record a certain part of the file (such as a certain picture, audio, video), or are interested in this entire CPM interview history, and hope to add them to a custom folder for category management, and then perform category management to build a personalized view. Then perform the following processing:
步骤1:用户执行“添加操作”,MSC通过构造IMAP4/SETMETADATA命令([RFC 5464])修改目标用户文件夹的“链接元数据信息表”,增加关联该记录对象的记录项。Step 1: The user executes the "add operation", and MSC modifies the "link metadata information table" of the target user folder by constructing an IMAP4/SETMETADATA command ([RFC 5464]), and adds a record item associated with the record object.
步骤2:MSS接收到该请求命令后,首先进行解析获取目标文件夹的名称,然后查询该文件夹的链接元数据信息表,在该表中增加相应的记录项,将实际存储在会谈历史记录文件夹中的指定的记录或记录的某个部分与该文件夹进行关联。Step 2: After MSS receives the request command, it first analyzes and obtains the name of the target folder, then queries the link metadata information table of the folder, adds corresponding record items in the table, and stores the actual information in the meeting history A specified record or a part of a record in a folder is associated with the folder.
步骤3:MSS根据关联对象的类别,相应地更新会谈信息元数据表、消息/传输文件历史记录元数据表、会话历史记录元数据表中的“Tag”字段,添加目标用户文件夹的名称和/或被关联的Part号,以添加关联关系。Step 3: MSS correspondingly updates the "Tag" field in the meeting information metadata table, message/transfer file history metadata table, and session history metadata table according to the category of the associated object, and adds the name of the target user folder and /or the associated Part number to add an association relationship.
以下结合实例进行描述。Describe below in conjunction with example.
用户在浏览CPM会谈历史记录内容的时候,可能对某条CPM消息记录、CPM文件传输历史记录或某条CPM会谈历史记录或这些记录中某个部分(如某图片、音频、视频)或对整个CPM会谈历史记录感兴趣,希望将它们添加到自定义的文件夹中进行分类管理,则用户执行“添加链接对象操作”。When users browse the content of CPM meeting history records, they may have a certain CPM message record, CPM file transmission history record or a certain CPM meeting history record or a certain part of these records (such as a picture, audio, video) or the entire If you are interested in the history of CPM talks and want to add them to a custom folder for classified management, the user performs the "Add Link Object Operation".
在传统的消息业务中(如Email),是采用IMAP4/COPY命令以文件为单位将源文件拷贝到目标文件夹下,如果使用该命令,则用户只能够以一整条消息记录、会话历史记录为单位。而本技术发明方案中,MSC通过构造IMAP4/SETMETADATA命令修改目标文件夹的“链接元数据信息表”,增加与被关联记录对象相关的记录项,能够灵活地实现关联一个CPM会谈历史记录或一个记录文件或记录文件中的某一部分(如某个图片、音频、视频等)。In traditional messaging services (such as Email), the IMAP4/COPY command is used to copy the source file to the target folder in units of files. If this command is used, the user can only record a whole message, session history as the unit. In the inventive solution of this technology, MSC modifies the "link metadata information table" of the target folder by constructing the IMAP4/SETMETADATA command, and increases the record items related to the associated record object, which can flexibly realize the association of a CPM conversation history record or a Record a file or a certain part of a record file (such as a picture, audio, video, etc.).
如图14所示,MSC在发起“添加链接对象操作”之前,首先要通过IMAP4/GETMETADATA命令获得服务器上与目标用户文件夹相关联的最新“链接元数据”,才能够正确地对MSS上的“链接元数据”进行修改操作。As shown in Figure 14, before MSC initiates the "add link object operation", it must first obtain the latest "link metadata" associated with the target user folder on the server through the IMAP4/GETMETADATA command, and then it can correctly update the MSS. "Link metadata" to modify the operation.
如图14所示,MSC已经知道MSS上用户文件夹“Working”下已经存在有9个链接对象,则当MSC请求将会谈文件夹下存储的一条UID为2的CPM消息记录的Part 2(附件1)添加到用户自定义的“Working”文件夹中时,应该将链接元数据序列号递增设置为10。As shown in Figure 14, MSC already knows that there are already 9 link objects under the user folder "Working" on MSS, then when MSC requests to record Part 2 (attachment) of a CPM message with UID 2 stored in the talk folder 1) When adding to the user-defined "Working" folder, the link metadata serial number increment should be set to 10.
MSS接收到该命令后执行以下的操作:MSS performs the following operations after receiving the command:
步骤1、进行解析,取得目标用户文件夹的名字;Step 1, analyze and obtain the name of the target user folder;
步骤2、查找到“Working”文件夹的链接元数据表“Relevance”,在该表中的“Seq”字段中查找值为“10”的记录,如果找到,说明该文件夹下已经存在序列号为10的链接记录,则MSS返回错误应答;如果不存在该记录,则MSS将增加一个序列号为“10”的记录添加到该元数据表中,并将<Link>字段设置为“Message/2/2”;Step 2. Find the link metadata table "Relevance" of the "Working" folder, and search for the record with the value "10" in the "Seq" field in the table. If found, it means that the serial number already exists in this folder If the link record is 10, MSS returns an error response; if the record does not exist, MSS will add a record with the serial number "10" to the metadata table, and set the <Link> field to "Message/ 2/2";
步骤3、在操作成功情况下,MSS向MSC返回成功应答。Step 3. If the operation is successful, the MSS returns a success response to the MSC.
步骤4、MSS更新“Conversation-History”文件夹的“CPM消息/文件传输历史记录元数据表”,找到UID为2的那项记录,然后在该记录的“Tag”字段中加入“Working/2”字符串,表示该消息记录的Part 2部分和Working文件夹相关联。Step 4. MSS updates the "CPM Message/File Transfer History Metadata Table" in the "Conversation-History" folder, finds the record with UID 2, and then adds "Working/2" to the "Tag" field of the record. " string, indicating that the Part 2 part of the message record is associated with the Working folder.
同理,如果MSC希望将会谈文件夹下存储的一条UID为13的CPM会话历史记录添加到用户自定义的“My Favorite”文件夹中,则MSC首先应该向MSS请求用户文件夹“My Favorite”当前最新的“链接元数据”信息,获知目前该文件夹下共有10个链接对象,则MSC将链接元数据的序列号递增设置为11,并使用如下的命令:Similarly, if MSC wants to add a CPM session history record with UID 13 stored under the talk folder to the user-defined "My Favorite" folder, MSC should first request the user folder "My Favorite" from MSS According to the latest "link metadata" information, there are currently 10 link objects under this folder, then MSC will increment the serial number of the link metadata to 11, and use the following command:
SETMETADATA“My Favorite”(/shared/Relevance/11/Link“Session/13”)SETMETADATA "My Favorite" (/shared/Relevance/11/Link "Session/13")
MSS接收到该命令进行解析后,首先对“My Favorite”文件夹的“链接元数据信息表”(Relevance)中添加(11,Session/13)记录行后,还需要更新“Conversation-History”文件夹的“会话历史记录元数据表”,找到UID为13的那项记录,然后在该记录项的“Tag”字段中加入“My Favorite”文件夹的名称,表明该会话历史记录文件和“My Favorite”文件夹相关联。After receiving the command and analyzing it, MSS first adds (11, Session/13) record lines to the "Link Metadata Information Table" (Relevance) of the "My Favorite" folder, and then needs to update the "Conversation-History" file Folder "Session History Metadata Table", find the record with UID 13, and then add the name of the "My Favorite" folder in the "Tag" field of the record item, indicating that the session history file and "My Favorite" folder Favorite" folder.
优选地,如果MSC希望将一个CPM会谈历史记录添加到用户自定义的“Working”文件夹中,则使用如下的命令:Preferably, if MSC wants to add a CPM interview history to the user-defined "Working" folder, use the following command:
SETMETADATA“working”(/shared/Relevance/12/Link“Conversation/convID1”)SETMETADATA "working" (/shared/Relevance/12/Link "Conversation/convID1")
MSS接收到该命令进行解析后,首先对“Working”文件夹的“链接元数据信息表”(Relevance)中添加(12,Conversation/conID1)记录行后,还需要更新“Conversation-History”文件夹的“CPM会谈信息元数据表”,找到会谈标识符为convID1的那项记录,然后在该记录项的“Tag”字段中加入“Working”文件夹的名称,表明该会谈历史记录文件和“Working”文件夹相关联。After receiving the command and analyzing it, MSS first adds (12, Conversation/conID1) record line to the "Link Metadata Information Table" (Relevance) of the "Working" folder, and then needs to update the "Conversation-History" folder "CPM meeting information metadata table", find the record with the meeting identifier convID1, and then add the name of the "Working" folder in the "Tag" field of the record item, indicating that the meeting history file and "Working " folder.
操作四、在访问指令指示将系统预定义文件目录对应的信息进行呈现(即用户查看“SendBox”、“ReceivedBox”等系统预设文件夹中的内容)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括:Operation 4. When the access instruction indicates to present the information corresponding to the system's predefined file directory (that is, the user views the content in the system preset folders such as "SendBox" and "ReceivedBox"), the message storage server executes according to the link metadata information Access operations corresponding to access instructions include:
(1)消息存储服务器将系统预定义文件目录关联的第一会谈历史记录标识信息发送至客户端;(1) The message storage server sends the identification information of the first conversation history record associated with the system predefined file directory to the client;
(2)在客户端本地保存有第一会谈历史记录标识信息对应的全部记录文件的第一标识信息时,消息存储服务器接收来自于客户端的全部或部分第一标识信息;(2) When the client locally stores the first identification information of all record files corresponding to the first meeting history record identification information, the message storage server receives all or part of the first identification information from the client;
优选地,在客户端本地未保存有会谈历史记录标识信息对应的全部记录文件的标识信息时,方法还可以包括:Preferably, when the identification information of all record files corresponding to the meeting history record identification information is not saved locally at the client, the method may further include:
(2.1)消息存储服务器接收来自于客户端的标识请求指令;(2.1) The message storage server receives the identification request instruction from the client;
(2.2)消息存储服务器将会谈历史记录标识信息对应的全部记录文件的标识信息发送至客户端;(2.2) The message storage server sends the identification information of all record files corresponding to the session history identification information to the client;
(2.3)消息存储服务器接收来自于客户端全部或部分全部记录文件的标识信息,并将全部或部分全部记录文件的标识信息对应的记录信息发送至客户端以进行呈现。(2.3) The message storage server receives identification information of all or part of all record files from the client, and sends record information corresponding to the identification information of all or part of all record files to the client for presentation.
(3)消息存储服务器将全部或部分第一标识信息对应的记录信息发送至客户端以进行呈现。(3) The message storage server sends all or part of the record information corresponding to the first identification information to the client for presentation.
在具体实施过程中,MSC获取用户请求,通过IMAP4/GETMETADATA命令向MSS请求目标文件夹的“链接元数据”,从而获得该文件夹所关联的所有会谈历史记录的会谈标识符信息。In the specific implementation process, MSC obtains the user's request, and requests the "link metadata" of the target folder from MSS through the IMAP4/GETMETADATA command, so as to obtain the meeting identifier information of all meeting history records associated with the folder.
其中,MSC取得“SendBox”或“ReceivedBox”文件夹所关联的会谈历史记录的会谈标识符之后,包括以下两种处理方式:Among them, after the MSC obtains the meeting identifier of the meeting history record associated with the "SendBox" or "ReceivedBox" folder, it includes the following two processing methods:
方式1:如果本地保存有会谈的描述信息,即该会谈所包含的所有记录文件的UID信息(如在通过查看“Conversation-History”文件夹内容时取得),则MSC首先通过SELECT命令选择“Conversation-History”文件夹,然后使用这些UID,通过IMAP4/FETCH命令向MSS的请求相关记录文件的具体内容;Method 1: If the description information of the conversation is stored locally, that is, the UID information of all record files contained in the conversation (such as obtained when viewing the contents of the "Conversation-History" folder), the MSC first selects "Conversation-History" through the SELECT command -History" folder, and then use these UIDs to request the specific content of relevant record files to MSS through the IMAP4/FETCH command;
方式2:如果MSC本地没有保存会谈的描述信息,则MSC首先通过IMAP4/GETMETADATA命令向MSS的请求会谈元数据的“Content-UID”字段的内容,取得该会谈所包含的所有记录文件的UID信息,然后再通过SELECT命令选择“Conversation-History”文件夹,最后使用上述UID,通过IMAP4/FETCH命令向MSS请求相关记录文件的具体内容。Method 2: If the MSC does not store the description information of the meeting locally, the MSC first requests the content of the "Content-UID" field of the meeting metadata from the MSS through the IMAP4/GETMETADATA command to obtain the UID information of all the record files included in the meeting , and then select the "Conversation-History" folder through the SELECT command, and finally use the above UID to request the specific content of the relevant record file from MSS through the IMAP4/FETCH command.
操作五、在访问指令指示将用户自定义文件目录对应的信息进行呈现(即用户查看自定义文件夹中的内容)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作还可以包括:Operation 5. When the access instruction indicates to present the information corresponding to the user-defined file directory (that is, the user views the content in the user-defined folder), the message storage server performs the access operation corresponding to the access instruction according to the link metadata information. include:
(1)消息存储服务器将用户自定义文件目录关联的第二会谈历史记录标识信息发送至客户端;(1) The message storage server sends the second conversation history identification information associated with the user-defined file directory to the client;
(2)在客户端本地保存有第二会谈历史记录标识信息对应的全部记录文件的第二标识信息时,消息存储服务器接收来自于客户端的全部或部分第二标识信息;(2) When the client locally stores the second identification information of all record files corresponding to the second meeting history record identification information, the message storage server receives all or part of the second identification information from the client;
(3)消息存储服务器将全部或部分第二标识信息对应的记录信息发送至客户端以进行呈现。(3) The message storage server sends all or part of the record information corresponding to the second identification information to the client for presentation.
在具体实施过程中,当用户选择自定义文件夹进行查看,上述文件夹中除了链接对象之外,还可能存储有用户从本地上传的记录文件。因此,MSC首先通过SELECT命令选中用户文件夹,获得该文件夹下存储的实际记录文件的UID,然后通过FETCH命令将上述用户上传记录文件的内容取回本地。然后,MSC再通过IMAP4/GETMETADATA命令向MSS请求该用户文件夹的“链接元数据”,从而获得该文件夹所关联的所有链接对象的UID信息。具体处理包括以下三种情况:In the specific implementation process, when the user selects a custom folder to view, in addition to the link object, the above-mentioned folder may also store record files uploaded by the user locally. Therefore, MSC first selects the user folder through the SELECT command, obtains the UID of the actual record file stored under the folder, and then retrieves the content of the above-mentioned user uploaded record file locally through the FETCH command. Then, the MSC requests the "link metadata" of the user folder from the MSS through the IMAP4/GETMETADATA command, so as to obtain the UID information of all link objects associated with the folder. Specific processing includes the following three situations:
情况一:如果关联的是整个会谈历史记录,则MSC将获得该会谈历史记录的会谈标识符,并使用该会谈标识符在本地存储的会谈信息(在查看会谈列表操作时获得)中查询该会谈所包含的相关记录文件的UID,然后使用这些UID通过IMAP4/FETCH命令向MSS的会谈历史记录文件夹请求该会谈的具体内容;Case 1: If the association is the entire history of the meeting, the MSC will obtain the meeting identifier of the meeting history, and use the meeting identifier to query the meeting in the locally stored meeting information (obtained when viewing the meeting list operation) The UIDs of the relevant recording files included, and then use these UIDs to request the specific content of the meeting from the meeting history folder of MSS through the IMAP4/FETCH command;
情况二:如果关联的是一条完整的消息记录、文件传输历史记录或会话历史记录文件,则MSC将获得该记录文件的UID,然后MSC使用该UID通过IMAP4/FETCH命令向MSS的会谈历史记录文件夹请求该记录文件的具体内容;Situation 2: If the association is a complete message record, file transfer history record or session history record file, MSC will obtain the UID of the record file, and then MSC will use this UID to send the session history record file of MSS through the IMAP4/FETCH command The folder requests the specific content of the record file;
情况三:如果关联的是一条消息记录文件或会话历史记录文件的某一部分(如携带的某个媒体对象),则MSC将获得对应记录文件的UID和指示该部分的<Part-Number>,然后MSC使用该UID和<Part-Number>通过IMAP/FETCH命令向MSS的会谈历史记录文件夹请求该部分的具体内容。Case 3: If the association is a certain part of a message record file or a session history record file (such as a certain media object carried), the MSC will obtain the UID of the corresponding record file and the <Part-Number> indicating this part, and then The MSC uses the UID and <Part-Number> to request the specific content of this part from the conversation history folder of the MSS through the IMAP/FETCH command.
然后,MSC通过SELECT命令选中“Conversation-History”文件夹,并使用已经获取的关联的记录对象的UID信息,通过FETCH操作将关联对象的内容取回本地,因此用户就能够查看到自定义文件夹中的内容。Then, MSC selects the "Conversation-History" folder through the SELECT command, and uses the obtained UID information of the associated record object to fetch the content of the associated object back to the local through the FETCH operation, so the user can view the custom folder in the content.
以下结合实例进行描述。Describe below in conjunction with example.
当用户选择了自定义的文件夹(如“Working”)进行浏览,则MSC首先需要MSS发送SELECT命令选中目标文件夹“Working”,并在MSS返回的应答命令中获取到该文件夹下存储的用户上传的记录文件的UID。然后MSC通过FETCH UID命令将这些记录内容取回本地。然后MSC使用GETMETADATA命令请求“Working”文件夹的“链接元数据”信息,以能够获得该文件夹所关联的所有的CPM消息记录、CPM文件传输历史记录、CPM会话历史记录或CPM会谈历史记录对象的标识符信息。When the user selects a user-defined folder (such as "Working") to browse, MSC first needs MSS to send a SELECT command to select the target folder "Working", and obtains the files stored under this folder in the response command returned by MSS. The UID of the record file uploaded by the user. Then MSC retrieves these recorded contents locally through the FETCH UID command. Then MSC uses the GETMETADATA command to request the "Link Metadata" information of the "Working" folder to be able to obtain all the CPM message records, CPM file transfer history records, CPM session history records or CPM conversation history record objects associated with this folder identifier information.
如图15所示,MSC按照[RFC 5464]构造GETMETADATA命令,设置目标文件夹名为希望查看的用户自定义文件夹名“Working”,设置<选项>参数为“DEPTH infinity”,表示取得元数据表中的所有记录,设置<entry>参数为“/shared/Relevance”,表示希望取得“链接元数据信息表”中的记录。As shown in Figure 15, MSC constructs the GETMETADATA command according to [RFC 5464], sets the target folder name to the user-defined folder name "Working" that you want to view, and sets the <option> parameter to "DEPTH infinity", which means to obtain metadata For all the records in the table, set the <entry> parameter to "/shared/Relevance", indicating that you want to get the records in the "Link Metadata Information Table".
MSS接收到该命令之后,取得GETMETADATA命令所携带的参数值,然后去目标文件夹的“链接元数据信息表”中取得所有的记录项,并通过GETMETADATA命令的应答消息向MSC返回。MSC通过解析应答命令就能够获得该文件夹下所关联的所有CPM会话历史记录、CPM消息记录、CPM文件传输历史记录的UID或UID+<Part-Number>,或CPM会谈历史记录的会谈标识符。After MSS receives the command, it obtains the parameter value carried by the GETMETADATA command, and then obtains all records from the "Link Metadata Information Table" of the target folder, and returns to MSC through the response message of the GETMETADATA command. The MSC can obtain the UID or UID+<Part-Number> of all CPM session history records, CPM message records, CPM file transfer history records, or the meeting identifiers of the CPM meeting history records associated with the folder by parsing the response command.
则MSC执行SELECT命令,选中会谈文件夹,然后通过得到的各种UID和相关<Par-Number>使用FETCH命令去MSS上获取实际存储的记录内容,如图16所示,MSC向MSS请求获得UID为2的记录文件的Part 2,请求UID为12的记录文件的Part 3,请求UID为1,2,4,5,6的记录文件的头和正文部分。MSC获得这些记录内容之后,在本地呈现给用户查看。Then MSC executes the SELECT command, selects the meeting folder, and then uses the obtained UID and related <Par-Number> to use the FETCH command to obtain the actual stored record content on the MSS. As shown in Figure 16, the MSC requests the MSS to obtain the UID For Part 2 of the record file with UID 2, request Part 3 of the record file with UID 12, and request the header and body part of the record file with UID 1, 2, 4, 5, and 6. After the MSC obtains these recorded contents, it presents them locally to the user for viewing.
操作六、用户删除会谈历史记录Operation 6. User deletes meeting history
在用户需要在所述系统管理区域中删除一整条会谈历史记录信息时,所述方法还可以包括以下处理:When the user needs to delete a whole piece of conversation history record information in the system management area, the method may also include the following processing:
(1)消息存储服务器获取一整条会谈历史记录信息所对应的全部记录文件的标识信息;(1) The message storage server obtains the identification information of all record files corresponding to a whole piece of conversation history record information;
(2)在会谈信息元数据信息的关联字段为空的情况下,消息存储服务器删除一整条会谈历史记录信息所对应的记录项;(2) When the associated field of the meeting information metadata information is empty, the message storage server deletes the record item corresponding to a whole piece of meeting history record information;
(3)在消息/传输文件历史记录信息、或会话历史记录元数据信息的关联字段为空的情况下,消息存储服务器删除一整条会谈历史记录信息所对应的全部记录文件的标识信息对应的记录项。(3) When the associated field of message/transmission file history record information or session history record metadata information is empty, the message storage server deletes all records corresponding to the identification information of a whole conversation history record information. record item.
在具体实施过程中,MSC接收用户的删除请求,MSC使用“IMAP4/STORE[UID-List]+FLAG(\Deleted)”命令(UID-List指示那些希望删除的记录文件的UID列表,用逗号分离)请求MSS删除该会谈历史记录,以及该会谈历史记录包含的所有记录文件。In the specific implementation process, MSC receives the user's deletion request, and MSC uses the "IMAP4/STORE[UID-List]+FLAG(\Deleted)" command (UID-List indicates the UID list of the record files that you want to delete, separated by commas ) request MSS to delete the interview history record and all the record files contained in the interview history record.
MSS接收到该命令后应执行以下的处理。MSS shall perform the following processing after receiving this command.
步骤1:MSS使用从STORE命令中获得的UID列表查询“Conversation-History”文件夹的“会谈信息元数据表”的“Content-UID”字段,找到相应的会谈历史记录项,然后检查该记录项的“Tag”字段是否为空,如果为空,则执行步骤2;如果不为空则执行步骤3;Step 1: MSS uses the UID list obtained from the STORE command to query the "Conversation-History" folder's "Conversation Information Metadata Table" "Content-UID" field, find the corresponding conversation history record item, and then check the record item Whether the "Tag" field of "Tag" is empty, if it is empty, go to step 2; if it is not empty, go to step 3;
步骤2:如果该CPM会谈历史记录没有和其他的用户文件夹关联,执行以下步骤:Step 2: If the CPM meeting history record is not associated with other user folders, perform the following steps:
步骤2.1:将该会谈历史记录的对应的记录行从“会谈信息元数据表”中删除;Step 2.1: Delete the corresponding record line of the meeting history record from the "metadata table of meeting information";
步骤2.2:使用UID列表分别查询“CPM消息/文件传输历史记录元数据表”和“CPM会话历史记录元数据表”的“UID”字段,找到对应的记录;Step 2.2: Use the UID list to query the "UID" fields of the "CPM Message/File Transfer History Metadata Table" and "CPM Session History Metadata Table" to find the corresponding records;
步骤2.3:检查该记录的“Tag”字段是否为空,如果为空,说明该记录没有和任何其他的用户自定义文件夹关联,可以删除,执行以下步骤:将该UID所代表的记录文件的FLAG标签([RFC3501])设置为(\DELETE)状态;将该消息对象的记录信息行从相应的元数据表中删除;更新“ReceivedBox”或“SendBox”的“链接元数据表”,将该UID所代表的链接信息删除,以更新“收件箱”和“发件箱”视图。Step 2.3: Check whether the "Tag" field of the record is empty. If it is empty, it means that the record is not associated with any other user-defined folder and can be deleted. Perform the following steps: the record file represented by the UID Set the FLAG tag ([RFC3501]) to (\DELETE) state; delete the record information line of the message object from the corresponding metadata table; update the "link metadata table" of "ReceivedBox" or "SendBox", and set the The link information represented by the UID is removed to update the "Inbox" and "Outbox" views.
步骤2.4:如果“Tag”字段不为空,说明该记录对象还和其他的用户自定义文件夹相关联,则将该记录对象的“Belonged-to-Conv-ID”字段设置为空,表示该记录对象所属的会谈历史记录已经被删除了,该记录对象不再和会谈关联,而作为独立的记录对象存在。Step 2.4: If the "Tag" field is not empty, it means that the record object is also associated with other user-defined folders, then set the "Belonged-to-Conv-ID" field of the record object to empty, indicating that the The conversation history record to which the record object belongs has been deleted, and the record object is no longer associated with the conversation, but exists as an independent record object.
重复执行2.3和2.4步骤,直到UID列表中的所有UID项都被检查过一遍。Repeat steps 2.3 and 2.4 until all UID items in the UID list have been checked.
步骤3:如果该CPM会谈历史记录和其他的用户文件夹关联,则该CPM会谈所包含的所有记录文件都不能够被实际删除,则将CPM会谈信息表中该CPM会谈对应的那项记录的“Deleted字段”设置为“True”,表示用户执行过删除操作。Step 3: If the CPM meeting history record is associated with other user folders, all the record files contained in the CPM meeting cannot be actually deleted, and then delete the record corresponding to the CPM meeting in the CPM meeting information table If the "Deleted field" is set to "True", it means that the user has performed a delete operation.
执行完上述的步骤,如果操作成功,MSS向MSC返回操作成功应答消息,MSC更新本地会谈视图,不再通过会谈文件夹显示该CPM会谈历史记录的内容。After performing the above steps, if the operation is successful, the MSS returns an operation success response message to the MSC, and the MSC updates the local meeting view, and no longer displays the content of the CPM meeting history record through the meeting folder.
以下结合实例进行描述。Describe below in conjunction with example.
用户在查看会谈历史记录列表信息时,如图17所示,如果希望删除某个CPM会谈历史记录,则首先选中该CPM会谈历史记录,由于MSC在查看CPM会谈记录列表时,已经通过GETMETADATA命令获取到CPM会谈所包含的所有记录文件的UID(通过“Content-UID”字段)获得,则MSC使用STORE[UID-List]+FLAG(\Deleted)命令删除(UID-List指示那些希望删除的记录文件的UID列表,用逗号分离)。When the user checks the meeting history list information, as shown in Figure 17, if he wants to delete a certain CPM meeting history record, he must first select the CPM meeting history record, because MSC has already obtained it through the GETMETADATA command when viewing the CPM meeting record list To obtain the UIDs (through the "Content-UID" field) of all record files included in the CPM meeting, MSC uses the STORE[UID-List]+FLAG(\Deleted) command to delete (UID-List indicates those record files that you want to delete list of UIDs, separated by commas).
当MSC请求MSS删除某条CPM会谈历史记录时,MSC取得该会谈历史记录所包含的所有记录文件的UID,并构造STORE命令,向MSS请求删除操作。MSC和MSS之间的命令交互流程如下图所示:When MSC requests MSS to delete a certain CPM meeting history record, MSC obtains the UIDs of all record files contained in the meeting history record, constructs a STORE command, and requests MSS for a deletion operation. The command interaction process between MSC and MSS is shown in the figure below:
MSS接收到该命令后应执行以下的处理流程,具体可以参见图18。After receiving the command, the MSS should execute the following processing flow, see Figure 18 for details.
步骤1:MSS使用从STORE命令中获得的UID列表(1,2,3,5,6)查询“Conversation-History”文件夹的“CPM会谈信息元数据表”的“Content-UID”字段,找到相应的会谈历史记录项,然后检查该记录项的“Tag”字段是否为空,如果为空,则执行步骤2,如果不为空则执行步骤3;Step 1: MSS uses the UID list (1, 2, 3, 5, 6) obtained from the STORE command to query the "Content-UID" field of the "CPM Conversation Information Metadata Table" in the "Conversation-History" folder, and finds Corresponding conversation history record item, and then check whether the "Tag" field of the record item is empty, if it is empty, go to step 2, if it is not empty, go to step 3;
步骤2:该CPM会谈历史记录没有和其他的用户文件夹关联,则执行以下步骤:Step 2: If the CPM meeting history record is not associated with other user folders, perform the following steps:
步骤2.1:将该会谈历史记录的对应的记录行从“会谈信息元数据表”中删除;Step 2.1: Delete the corresponding record line of the meeting history record from the "metadata table of meeting information";
步骤2.2:使用UID列表(1,2,3,5,6)分别查询“CPM消息/文件传输历史记录元数据表”和“CPM会话历史记录元数据表”的“UID”字段,找到对应的记录;Step 2.2: Use the UID list (1, 2, 3, 5, 6) to query the "UID" fields of the "CPM message/file transfer history metadata table" and "CPM session history metadata table" respectively, and find the corresponding Record;
步骤2.3:检查该记录的“Tag”字段,如果“Tag”字段为空,则执行以下步骤:将该UID所代表的记录文件的FLAG标签([RFC3501])设置为(\DELETE)状态;将该消息对象的记录信息行从相应的元数据表中删除;更新“SendBox”或“ReceivedBox”的“链接元数据表”,将该UID所代表的链接信息删除,以更新“收件夹”和“发件夹”视图。如果该字段不为空,则执行步骤2.4;Step 2.3: Check the "Tag" field of the record, if the "Tag" field is empty, perform the following steps: set the FLAG tag ([RFC3501]) of the record file represented by the UID to (\DELETE) state; set The record information line of the message object is deleted from the corresponding metadata table; update the "link metadata table" of "SendBox" or "ReceivedBox", and delete the link information represented by the UID to update the "receipt" and The Outbox view. If the field is not empty, go to step 2.4;
步骤2.4:“Tag”字段不为空,说明该记录对象还和其他的用户自定义文件夹相关联,不能删除,则在将该记录行对应的“Belonged-to-Conv-ID”字段设置为空,说明将该记录对象所属的会谈历史记录已经被删除了,该记录对象不再和会谈关联,而作为独立的记录文件存在。Step 2.4: The "Tag" field is not empty, indicating that the record object is associated with other user-defined folders and cannot be deleted, then set the "Belonged-to-Conv-ID" field corresponding to the record line to If it is empty, it means that the meeting history record to which the record object belongs has been deleted, and the record object is no longer associated with the meeting, but exists as an independent record file.
步骤2.5:不断重复执行步骤2.3和2.4,直到UID列表中的所有UID项都被检查过一遍。Step 2.5: Repeat steps 2.3 and 2.4 until all UID items in the UID list have been checked.
步骤3:该CPM会谈历史记录和其他的用户文件夹关联,则该CPM会谈所包含的所有记录文件都不能够被实际删除(因为用户将该会谈历史记录关联到自定义的文件夹中,他认为这是重要信息),则在CPM会谈信息表中该CPM会谈对应的那项记录的“Deleted字段”设置为“True”,表示用户执行过删除操作。注意,“Deleted字段”被设置为“True”的那些CPM会谈将不会返回给MSC呈现。Step 3: The CPM conversation history is associated with other user folders, then all the record files contained in the CPM conversation cannot be actually deleted (because the user associates the conversation history with a custom folder, he consider this important information), then in the CPM meeting information table, the "Deleted field" of the record corresponding to the CPM meeting is set to "True", indicating that the user has performed a delete operation. Note that those CPM talks with "Deleted Field" set to "True" will not be returned to MSC for presentation.
MSC接收到MSS返回的删除会谈历史记录操作成功的应答时,认为这条CPM会谈历史记录已经被删除成功,则MSC更新本地视图,不再在会谈文件夹下显示该会谈相关的信息。When the MSC receives the reply from the MSS that the operation of deleting the meeting history record is successful, it considers that the CPM meeting history record has been deleted successfully, and then the MSC updates the local view, and no longer displays the information related to the meeting under the meeting folder.
操作七、在访问指令指示将用户自定义文件目录对应的链接元数据信息的部分或全部进行删除(即用户删除自定义文件夹中的链接对象)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括:Operation 7. When the access instruction indicates to delete part or all of the link metadata information corresponding to the user-defined file directory (that is, the user deletes the link object in the user-defined folder), the message storage server executes the link metadata information according to the link metadata information. The access operations corresponding to the access instructions include:
(1)消息存储服务器将需要删除的记录项在链接元数据信息中进行删除,以使记录项的部分或全部信息与用户自定义文件目录无关联;(1) The message storage server deletes the record item that needs to be deleted in the link metadata information, so that part or all of the information of the record item is not associated with the user-defined file directory;
(2)消息存储服务器根据记录项的类型在会谈元数据信息的关联字段中删除用户自定义文件目录的标识信息。(2) The message storage server deletes the identification information of the user-defined file directory in the associated field of the meeting metadata information according to the type of the record item.
在具体实施过程中,MSC获取用户删除请求,使用IMAP4/SETMETADATA命令,将目标对象的链接元数据的值设置为“NIL”。During the specific implementation process, the MSC obtains the user deletion request, and uses the IMAP4/SETMETADATA command to set the value of the link metadata of the target object to "NIL".
MSS接收到该命令后将执行以下处理:MSS will perform the following processing after receiving this command:
步骤1:在目标用户文件夹的“链接元数据表”中,找到指定的那项链接元数据的记录,然后将这行记录删除;Step 1: In the "Link Metadata Table" of the target user folder, find the record of the specified link metadata, and then delete this row of records;
步骤2:检查要删除的链接记录对象的类型,如果是CPM消息记录(或其中某一部分)、CPM文件传输历史记录或CPM会话历史记录(或其中某一部分),则执行步骤3;如果是CPM会谈历史记录对象,则执行步骤4:Step 2: Check the type of the link record object to be deleted, if it is a CPM message record (or a part of it), a CPM file transfer history record or a CPM session history record (or a part of it), go to step 3; if it is a CPM Talk history object, then perform step 4:
步骤3:查找到会谈历史记录文件夹的“CPM消息/文件传输历史记录元数据表”或“CPM会话历史记录元数据表”,找到请求解除关联关系的那项记录的“Tag”字段,首先将目标文件夹的名称从“Tag”字段的值中移除,然后检查该字段是否为空,如果为空则执行步骤3.1;否则,执行步骤3.2;Step 3: Find the "CPM Message/File Transfer History Metadata Table" or "CPM Conversation History Metadata Table" in the meeting history folder, find the "Tag" field of the record requesting to disassociate, first Remove the name of the target folder from the value of the "Tag" field, then check whether the field is empty, if it is empty, go to step 3.1; otherwise, go to step 3.2;
步骤3.1:该记录对象再没有被任何用户文件夹关联,检查“Belonged-to-Conv-ID字段”,如果该字段为空,则执行步骤a;否则,则执行步骤b;Step 3.1: The record object is no longer associated with any user folder, check the "Belonged-to-Conv-ID field", if the field is empty, go to step a; otherwise, go to step b;
步骤a:说明该记录对象所在的会谈历史记录已经被删除,是一个独立文件,可以被删除,则执行以下步骤:MSS将该记录文件从会谈历史记录文件夹中实际删除(设置其FLAG为\DELETE),并将该记录文件的元数据从相应的元数据表中删除;更新“ReceivedBox”或“SendBox”的“链接元数据表”,将该UID所代表的链接对象信息删除,以更新“收件箱”和“发件箱”视图;Step a: Indicate that the conversation history where the record object is located has been deleted, and it is an independent file that can be deleted, then perform the following steps: MSS actually deletes the record file from the conversation history folder (set its FLAG to \ DELETE), and delete the metadata of the record file from the corresponding metadata table; update the "Link Metadata Table" of "ReceivedBox" or "SendBox", and delete the link object information represented by the UID to update " Inbox and Outbox views;
步骤b:说明该记录对象所在的会谈历史记录还存在,则该记录文件不能够被删除,则结束操作;Step b: Indicate that the conversation history record where the record object is located still exists, then the record file cannot be deleted, and then end the operation;
该记录对象还与别的用户文件夹相关联,不能删除,结束操作;The record object is also associated with other user folders, which cannot be deleted, and the operation ends;
找到会谈历史记录文件夹的“CPM会谈信息元数据表”,找到请求解除关联关系的那项记录的“Tag”字段,首先将目标文件夹的名称从“Tag”字段的值中移除,然后检查该字段是否为空,如果为空则执行步骤4.1;如果不为空,则执行步骤4.2。Find the "CPM Meeting Information Metadata Table" of the meeting history folder, find the "Tag" field of the record requesting to disassociate, first remove the name of the target folder from the value of the "Tag" field, and then Check whether the field is empty, if it is empty, go to step 4.1; if not, go to step 4.2.
步骤4.1:该会谈记录对象再没有被任何用户文件夹关联,检查“Deleted”字段,如果该字段设置为“True”,则执行步骤a,如果该字段设置为“False”,则执行步骤b:Step 4.1: The interview record object is no longer associated with any user folder, check the "Deleted" field, if this field is set to "True", then perform step a, if this field is set to "False", then perform step b:
步骤a:说明该会谈历史记录已经被用户执行了删除操作,可以被删除,则MSS将会谈历史记录对应的元数据记录行从会谈信息元数据表中删除,并按照“(5)用户删除CPM会谈历史记录”中相关的描述,检查该会谈所包含的记录文件是否需要被同时删除;Step a: Indicate that the meeting history record has been deleted by the user and can be deleted, then MSS will delete the metadata record line corresponding to the meeting history record from the meeting information metadata table, and follow the "(5) User deletes CPM According to the relevant descriptions in "Conversation History", check whether the record files contained in the meeting need to be deleted at the same time;
步骤b:说明该会谈历史记录还没有被用户执行删除操作,则该会谈历史记录还不能够被删除,结束操作;Step b: Indicate that the conversation history record has not been deleted by the user, then the conversation history record cannot be deleted, and the operation ends;
步骤4.2:该记录对象还与其他的用户文件夹关联,则该记录对象不能被删除,结束操作;Step 4.2: If the record object is also associated with other user folders, the record object cannot be deleted, and the operation ends;
执行完上述的步骤,如果操作成功,MSS向MSC返回操作成功应答消息,MSC更新本地会谈视图,不再通过该用户文件夹显示该记录的内容。After performing the above steps, if the operation is successful, the MSS returns an operation success response message to the MSC, and the MSC updates the local chat view, and no longer displays the content of the record through the user folder.
以下结合实例进行描述。Describe below in conjunction with example.
用户在浏览自定义文件夹下的内容时,如果觉得不希望将某个记录对象放在该文件夹中,想将它删除,则应该执行如下的步骤。When the user browses the contents of the custom folder, if he does not want to put a record object in the folder and wants to delete it, he should perform the following steps.
注意,由于用户文件夹中可能存在用户上传的记录对象,也有可能存在链接对象,对于这两种不同的对象,MSC的删除操作也有所不同。由于MSC在获取用户文件夹下存储的内容时,就是通过不同的操作获取用户上传的记录对象(通过SELECT+FETCH命令)和链接对象(通过GETMETADATA+FETCH命令),所以对于MSC来说,它可以区分用户文件夹下这两类不同的对象,并在执行删除操作时,采用不同的命令,如图13所示。Note that since there may be record objects uploaded by users in the user folder, there may also be link objects, and MSC's deletion operations are also different for these two different objects. When MSC obtains the content stored in the user folder, it obtains the record object (via SELECT+FETCH command) and link object (via GETMETADATA+FETCH command) uploaded by the user through different operations, so for MSC, it can Distinguish between these two types of objects under the user folder, and use different commands when performing deletion operations, as shown in Figure 13.
如果删除的是用户上传的记录文件,则使用IMAP/STORE命令将该文件置为(\Deleted)状态;If the deleted record file is uploaded by the user, use the IMAP/STORE command to set the file to (\Deleted) state;
如果删除的是链接对象,则使用SETMETADATA命令,如图13所示。If you delete a linked object, use the SETMETADATA command, as shown in Figure 13.
如图13所示的命令,将解除Working文件夹和UID为2的CPM消息记录文件的Part 2之间的关联关系。The command shown in Figure 13 will release the association between the Working folder and Part 2 of the CPM message record file with UID 2.
MSS收到该命令后将执行以下处理:MSS will perform the following processing after receiving the command:
步骤1:在Working文件夹的“链接元数据信息表”(Relevance)中,找到<Link>字段值为“/Message/2/2”的那项记录,然后将这行记录删除;Step 1: In the "Link Metadata Information Table" (Relevance) of the Working folder, find the record whose <Link> field value is "/Message/2/2", and then delete this row of records;
步骤2:在“Conversation-History”文件夹的“CPM消息/文件传输记录元数据表”中,找到<UID>字段为2的那项记录,然后执行以下步骤:Step 2: In the "CPM Message/File Transfer Record Metadata Table" in the "Conversation-History" folder, find the record whose <UID> field is 2, and then perform the following steps:
步骤2.1:检查该项记录的“Tag”字段,首先将“working/2”字符串信息从该字段中移除,如果移除后,“Tag”字段为空,则执行步骤2.2);如果移除后,“Tag”字段不为空,则执行步骤2.3);Step 2.1: Check the "Tag" field of the record, first remove the "working/2" string information from this field, if the "Tag" field is empty after removal, then perform step 2.2); After the division, the "Tag" field is not empty, then perform step 2.3);
步骤2.2:该记录对象不再和其它的用户文件夹关联,则检查“Belonged-to-ConID”字段:Step 2.2: The record object is no longer associated with other user folders, then check the "Belonged-to-ConID" field:
如果该字段为空,则说明该记录对象已经和CPM会谈解除了关联,是一个独立文件,又没有别的用户文件夹再和它关联,则应当从MSS上删除,MSS设置该记录文件的FLAG为“\DELETE”;并更新“SendBox Folder”或“ReceivedBox Folder”的“链接元数据表”,将该UID所代表的链接信息删除,以更新“收件夹”和“发件夹”视图;If this field is empty, it means that the record object has been disassociated from the CPM meeting, and it is an independent file, and there is no other user folder associated with it, so it should be deleted from MSS, and MSS sets the FLAG of the record file "\DELETE"; and update the "Link Metadata Table" of "SendBox Folder" or "ReceivedBox Folder", delete the link information represented by the UID, so as to update the "Received Folder" and "Sent Folder" views;
如果该字段不为空,说明该记录对象还与CPM会谈相关联,不能够被实际删除,则结束操作;If the field is not empty, it means that the record object is still associated with the CPM meeting and cannot be actually deleted, then end the operation;
步骤2.3:说明该对象还被别的用户文件夹关联,不能删除,则结束操作。Step 2.3: Indicate that the object is also associated with other user folders and cannot be deleted, then end the operation.
如果上述的过程中执行了记录文件的实际删除操作(即将该记录文件的FLAG标记置为了“/Deleted”,则还应该对“收件夹”、“发件夹”的链接元数据信息表进行更新,将该被删除的记录文件的链接元数据从表中删除,即被删除的记录文件将不会在“收件箱”或“发件箱”视图中出现。If the actual deletion operation of the record file is performed in the above process (that is, the FLAG flag of the record file is set to "/Deleted", then the link metadata information tables of "Incoming Folder" and "Outbox Folder" should also be deleted. Update, delete the link metadata of the deleted record file from the table, that is, the deleted record file will not appear in the "Inbox" or "Outbox" view.
操作八、在访问指令指示将用户自定义文件目录进行删除(即用户删除自定义的用户文件夹)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括:Operation 8. When the access instruction indicates to delete the user-defined file directory (that is, the user deletes the user-defined user folder), the message storage server performs the access operation corresponding to the access instruction according to the link metadata information, including:
(1)消息存储服务器获取链接元数据信息所对应的会谈及该会谈包含的全部记录文件的标识信息;(1) The message storage server obtains the session corresponding to the link metadata information and the identification information of all the record files included in the session;
(2)在会谈信息元数据信息的关联字段为空的情况下,消息存储服务器中删除会谈的记录项;(2) When the associated field of the meeting information metadata information is empty, delete the record item of the meeting in the message storage server;
(3)在消息/传输文件历史记录信息、或会话历史记录元数据信息的关联字段为空的情况下,消息存储服务器中删除全部或部分全部记录文件的标识信息对应的记录项。(3) When the associated field of message/transmission file history record information or session history record metadata information is empty, the message storage server deletes all or part of record items corresponding to the identification information of all record files.
在具体实施过程中,MSC获取用户请求,使用IMAP4/DELETE命令([RFC 3501])将指定的用户文件夹删除。MSS接收到该DELETE命令后,进行解析,提取出要删除的目标文件夹的名称,然后执行以下步骤:In the specific implementation process, MSC obtains the user request, and uses the IMAP4/DELETE command ([RFC 3501]) to delete the specified user folder. After receiving the DELETE command, MSS analyzes it to extract the name of the target folder to be deleted, and then performs the following steps:
步骤1:检查目标用户文件夹相关的“链接元数据信息表”,取得该用户文件夹所关联的所有记录对象的UID和Part信息;Step 1: Check the "Link Metadata Information Table" related to the target user folder, and obtain the UID and Part information of all record objects associated with the user folder;
步骤2:对“链接元数据信息表”中的每一个链接对象记录,分别执行“(6)用户删除自定义文件夹中的链接对象”中描述的相应操作,根据这些链接对象的不同类别(可能是会谈历史记录、消息记录、文件传输历史记录或会话历史记录),进行检查,确定是否可以删除实际存储的记录文件。Step 2: For each link object record in the "Link Metadata Information Table", perform the corresponding operations described in "(6) Users delete link objects in custom folders", according to the different categories of these link objects ( may be conversation history, message history, file transfer history, or session history), check to see if the actual stored log file can be deleted.
步骤3:处理完以上过程后,将该目标文件夹对应的“链接元数据表”删除;Step 3: After processing the above process, delete the "link metadata table" corresponding to the target folder;
步骤4:将该用户文件夹删除。Step 4: Delete the user folder.
MSS执行以上操作成功后,向MSC返回成功应答消息,MSC更新本地视图,不再显示已删除的自定义用户文件夹。After the MSS executes the above operations successfully, it returns a success response message to the MSC, and the MSC updates the local view, and no longer displays the deleted custom user folder.
以下结合实例进行描述。Describe below in conjunction with example.
用户在浏览自定义文件夹下的内容时,如果觉得不希望将某个记录对象放在该文件夹中,想将它删除,则应该执行如下的步骤。When the user browses the contents of the custom folder, if he does not want to put a record object in the folder and wants to delete it, he should perform the following steps.
注意,由于用户文件夹中可能存在用户上传的记录对象,也有可能存在链接对象,对于这两种不同的对象,MSC的删除操作也有所不同。由于MSC在获取用户文件夹下存储的内容时,就是通过不同的操作获取用户上传的记录对象(通过SELECT+FETCH命令)和链接对象(通过GETMETADATA+FETCH命令),所以对于MSC来说,它可以区分用户文件夹下这两类不同的对象,并在执行删除操作时,采用不同的命令,如图13所示。Note that since there may be record objects uploaded by users in the user folder, there may also be link objects, and MSC's deletion operations are also different for these two different objects. When MSC obtains the content stored in the user folder, it obtains the record object (via SELECT+FETCH command) and link object (via GETMETADATA+FETCH command) uploaded by the user through different operations, so for MSC, it can Distinguish between these two types of objects under the user folder, and use different commands when performing deletion operations, as shown in Figure 13.
如果删除的是用户上传的记录文件,则使用IMAP/STORE命令将该文件置为(\Deleted)状态;If the deleted record file is uploaded by the user, use the IMAP/STORE command to set the file to (\Deleted) state;
如果删除的是链接对象,则使用SETMETADATA命令,如图13所示。If you delete a linked object, use the SETMETADATA command, as shown in Figure 13.
如图19所示的命令,将解除Working文件夹和UID为2的CPM消息记录文件的Part 2之间的关联关系。The command shown in Figure 19 will disassociate the Working folder from Part 2 of the CPM message record file with UID 2.
MSS收到该命令后将执行以下处理:MSS will perform the following processing after receiving the command:
步骤1:在Working文件夹的“链接元数据信息表”(Relevance)中,找到<Link>字段值为“/Message/2/2”的那项记录,然后将这行记录删除;Step 1: In the "Link Metadata Information Table" (Relevance) of the Working folder, find the record whose <Link> field value is "/Message/2/2", and then delete this row of records;
步骤2:在“Conversation-History”文件夹的“CPM消息/文件传输记录元数据表”中,找到<UID>字段为2的那项记录,然后执行以下步骤:Step 2: In the "CPM Message/File Transfer Record Metadata Table" in the "Conversation-History" folder, find the record whose <UID> field is 2, and then perform the following steps:
步骤2.1:检查该项记录的“Tag”字段,首先将“working/2”字符串信息从该字段中移除,如果移除后,“Tag”字段为空,则执行步骤2.2);如果移除后,“Tag”字段不为空,则执行步骤2.3);Step 2.1: Check the "Tag" field of the record, first remove the "working/2" string information from this field, if the "Tag" field is empty after removal, then perform step 2.2); After the division, the "Tag" field is not empty, then perform step 2.3);
步骤2.2:该记录对象不再和其它的用户文件夹关联,则检查“Belonged-to-ConID”字段:Step 2.2: The record object is no longer associated with other user folders, then check the "Belonged-to-ConID" field:
如果该字段为空,则说明该记录对象已经和CPM会谈解除了关联,是一个独立文件,又没有别的用户文件夹再和它关联,则应当从MSS上删除,MSS设置该记录文件的FLAG为“\DELETE”;并更新“SendBox Folder”或“ReceivedBox Folder”的“链接元数据表”,将该UID所代表的链接信息删除,以更新“收件夹”和“发件夹”视图;If this field is empty, it means that the record object has been disassociated from the CPM meeting, and it is an independent file, and there is no other user folder associated with it, so it should be deleted from MSS, and MSS sets the FLAG of the record file "\DELETE"; and update the "Link Metadata Table" of "SendBox Folder" or "ReceivedBox Folder", delete the link information represented by the UID, so as to update the "Received Folder" and "Sent Folder" views;
如果该字段不为空,说明该记录对象还与CPM会谈相关联,不能够被实际删除,则结束操作;If the field is not empty, it means that the record object is still associated with the CPM meeting and cannot be actually deleted, then end the operation;
步骤2.3:说明该对象还被别的用户文件夹关联,不能删除,则结束操作。Step 2.3: Indicate that the object is also associated with other user folders and cannot be deleted, then end the operation.
如果上述的过程中执行了记录文件的实际删除操作(即将该记录文件的FLAG标记置为了“/Deleted”,则还应该对“收件夹”、“发件夹”的链接元数据信息表进行更新,将该被删除的记录文件的链接元数据从表中删除,即被删除的记录文件将不会在“收件箱”或“发件箱”视图中出现。If the actual deletion operation of the record file is performed in the above process (that is, the FLAG flag of the record file is set to "/Deleted", then the link metadata information tables of "Incoming Folder" and "Outbox Folder" should also be deleted. Update, delete the link metadata of the deleted record file from the table, that is, the deleted record file will not appear in the "Inbox" or "Outbox" view.
操作九、在访问指令指示将用户自定义文件目录进行删除(即用户删除自定义文件夹)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括以下处理:Operation 9. When the access instruction indicates to delete the user-defined file directory (that is, the user deletes the user-defined folder), the message storage server performs the access operation corresponding to the access instruction according to the link metadata information, including the following processing:
(1)消息存储服务器获取链接元数据信息所对应的会谈及该会谈包含的全部记录文件的标识信息;(1) The message storage server obtains the session corresponding to the link metadata information and the identification information of all the record files included in the session;
(2)在会谈信息元数据信息的关联字段为空的情况下,消息存储服务器中删除会谈的记录项;(2) When the associated field of the meeting information metadata information is empty, delete the record item of the meeting in the message storage server;
(3)在消息/传输文件历史记录信息、或会话历史记录元数据信息的关联字段为空的情况下,消息存储服务器中删除全部或部分全部记录文件的标识信息对应的记录项。(3) When the associated field of message/transmission file history record information or session history record metadata information is empty, the message storage server deletes all or part of record items corresponding to the identification information of all record files.
在具体实施过程中,如果用户希望将某个链接对象从源文件夹中复制到目的文件夹中,则MSC通过IMAP4/SETMETADATA命令请求将该链接对象添加到目标文件夹的链接元数据信息表中。In the specific implementation process, if the user wants to copy a link object from the source folder to the destination folder, the MSC requests to add the link object to the link metadata information table of the target folder through the IMAP4/SETMETADATA command .
MSS接收到SETMETADATA命令后,进行相应的链接元数据信息表的更新操作,并相应地更新CPM会谈信息元数据表、CPM消息/文件传输历史记录元数据表或CPM会话历史记录元数据表的“Tag”字段中内容。After receiving the SETMETADATA command, the MSS performs the update operation of the corresponding link metadata information table, and correspondingly updates the " Tag" field content.
MSS操作成功,向MSC返回成功应答消息。The MSS operates successfully, and returns a success response message to the MSC.
以下结合实例进行描述。Describe below in conjunction with example.
用户如果希望删除自定义的文件夹,但该文件夹中又存在相关联的记录文件对象,则客户端应该提醒用户,“该文件夹非空,是否将该文件夹清空并删除?”,如果用户确定执行删除操作,则MSC应该使用IMAP4/DELETE([RFC 3501])命令将指定的文件夹删除。If the user wants to delete a custom folder, but there is an associated record file object in the folder, the client should remind the user, "This folder is not empty, do you want to empty this folder and delete it?", if If the user decides to perform the delete operation, the MSC should use the IMAP4/DELETE ([RFC 3501]) command to delete the specified folder.
如果用户希望删除自定义文件夹“Working”,则MSC构造“DELETE“\Working””命令。MS S收到该DELETE命令后,进行解析,提取出要删除的目标文件夹的名称(“Working”),然后执行以下步骤:If the user wishes to delete the custom folder "Working", the MSC constructs a "DELETE "\Working"" command. After receiving the DELETE command, MS S analyzes it to extract the name of the target folder to be deleted ("Working"), and then performs the following steps:
步骤1:查询目标文件夹对应的“链接元数据信息表”,取得该表中的所有记录行,每一行代表一个关联对象;Step 1: Query the "Link Metadata Information Table" corresponding to the target folder, and obtain all the record rows in the table, each row represents an associated object;
步骤2:检查每一行的关联对象的类型,如果关联的是CPM消息记录(或其中某一部分)、CPM文件传输历史记录或CPM会话历史记录(或其中某一部分),则执行步骤3;如果关联的是CPM会谈历史记录,则执行步骤4:Step 2: Check the type of the associated object in each line, if the associated object is a CPM message record (or a part thereof), a CPM file transfer history record or a CPM session history record (or a part thereof), then perform step 3; if the associated is the CPM meeting history, then go to step 4:
步骤3:找到会谈历史记录文件夹的“CPM消息/文件传输历史记录元数据表”或“CPM会话历史记录元数据表”,找到请求解除关联关系的那项记录的“Tag”字段,首先将目标文件夹的名称从“Tag”字段的值中移除,然后检查该字段是否为空,如果为空则执行步骤3.1;如果不为空,执行步骤3.2;Step 3: Find the "CPM Message/File Transfer History Metadata Table" or "CPM Conversation History Metadata Table" in the meeting history folder, and find the "Tag" field of the record requesting to disassociate. The name of the target folder is removed from the value of the "Tag" field, then check whether the field is empty, if it is empty, go to step 3.1; if not, go to step 3.2;
步骤3.1:该记录对象再没有被任何用户文件夹关联,检查“Belonged-to-Conv-ID字段”,如果该字段为空,则执行步骤a;如果该字段不为空,则执行步骤b;Step 3.1: The record object is no longer associated with any user folder, check the "Belonged-to-Conv-ID field", if the field is empty, go to step a; if the field is not empty, go to step b;
步骤a:说明该记录对象所在的会谈历史记录已经被删除,是一个独立文件,可以被删除,则MSS将该记录文件从会谈历史记录文件夹中删除(设置其FLAG为\DELETE),并将该记录文件的元数据从相应的元数据表中删除;并更新“SendBox”或“ReceivedBox”的“链接元数据表”,将该UID所代表的链接信息删除,以更新“收件箱”和“发件箱”视图;Step a: Indicate that the conversation history record where the record object is located has been deleted and is an independent file that can be deleted, then MSS deletes the record file from the conversation history record folder (set its FLAG to \DELETE), and The metadata of the record file is deleted from the corresponding metadata table; and the "Link Metadata Table" of "SendBox" or "ReceivedBox" is updated, and the link information represented by the UID is deleted to update the "Inbox" and "Outbox" view;
步骤b:说明该记录对象所在的会谈历史记录还存在,则该记录文件不能够被删除,结束操作;Step b: Indicate that the meeting history record where the record object is located still exists, then the record file cannot be deleted, and the operation ends;
步骤3.2:该记录对象还与别的用户文件夹相关联,不能删除,结束操作;Step 3.2: The record object is also associated with other user folders and cannot be deleted, so end the operation;
步骤4:找到会谈历史记录文件夹的“CPM会谈信息元数据表”,找到请求解除关联关系的那项记录的“Tag”字段,首先将目标文件夹的名称从“Tag”字段的值中移除,然后检查该字段是否为空,如果为空则执行步骤4.1);如果不为空,则执行步骤4.2):Step 4: Find the "CPM meeting information metadata table" of the meeting history record folder, find the "Tag" field of the record requesting to disassociate, first move the name of the target folder from the value of the "Tag" field , and then check whether the field is empty, if it is empty, perform step 4.1); if it is not empty, perform step 4.2):
步骤4.1:该记录对象再没有被任何用户文件夹关联,检查“Deleted”字段,如果该字段设置为“True”,则执行步骤a,如果该字段设置为“False”,则执行步骤b:Step 4.1: The record object is no longer associated with any user folder, check the "Deleted" field, if this field is set to "True", then perform step a, if this field is set to "False", then perform step b:
步骤a:说明该会谈历史记录已经被用户执行了删除操作,可以被删除,则MSS将会谈历史记录对应的元数据记录行从会谈信息元数据表中删除,并按照“(5)用户删除CPM会谈历史记录”中相关的描述,检查该会谈所包含的记录文件是否需要被同时删除;Step a: Indicate that the meeting history record has been deleted by the user and can be deleted, then MSS will delete the metadata record line corresponding to the meeting history record from the meeting information metadata table, and follow the "(5) User deletes CPM According to the relevant descriptions in "Conversation History", check whether the record files contained in the meeting need to be deleted at the same time;
步骤b:说明该会谈历史记录还没有被用户执行删除操作,则该会谈历史记录还不能够被删除,结束操作;Step b: Indicate that the conversation history record has not been deleted by the user, then the conversation history record cannot be deleted, and the operation ends;
步骤4.2:该记录对象还与其他的用户文件夹关联,则该记录对象不能被删除,结束操作;Step 4.2: If the record object is also associated with other user folders, the record object cannot be deleted, and the operation ends;
不断重复步骤2、3、4,直到检查完目标用户文件夹的“链接元数据信息表”中的所有记录行。处理完以上过程后,将该“链接元数据信息表”删除;Repeat steps 2, 3, and 4 until all records in the "Link Metadata Information Table" of the target user folder are checked. After processing the above process, delete the "link metadata information table";
步骤6:将该用户文件夹删除。Step 6: Delete the user folder.
上述操作成功,MSS向MSC返回DELETE命令成功应答消息,MSC收到后认为该用户文件夹及其关联的所有内容已经在服务器上被删除,则更新用户界面,向用户显示操作结果。If the above operation is successful, MSS returns a DELETE command success response message to MSC. After receiving it, MSC thinks that the user folder and all associated contents have been deleted on the server, then updates the user interface and displays the operation result to the user.
操作十、在访问指令指示将链接对象进行拷贝(即用户复制链接对象)时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括以下处理:Operation 10. When the access instruction indicates to copy the link object (that is, the user copies the link object), the message storage server performs the access operation corresponding to the access instruction according to the link metadata information, including the following processing:
(1)消息存储服务器将链接对象从源文件目录对应的链接元数据信息中,拷贝至目的文件目录对应的链接元数据信息中;(1) The message storage server copies the link object from the link metadata information corresponding to the source file directory to the link metadata information corresponding to the destination file directory;
(2)消息存储服务器根据链接对象的类型更新会谈元数据信息的关联字段。(2) The message storage server updates the associated field of the meeting metadata information according to the type of the link object.
在具体实施过程中,如果用户希望将某个链接对象从源文件夹中复制到目的文件夹中,则MSC通过IMAP4/SETMETADATA命令请求将该链接对象添加到目标文件夹的链接元数据信息表中。In the specific implementation process, if the user wants to copy a link object from the source folder to the destination folder, the MSC requests to add the link object to the link metadata information table of the target folder through the IMAP4/SETMETADATA command .
MSS接收到SETMETADATA命令后,进行相应的链接元数据信息表的更新操作,并相应地更新CPM会谈信息元数据表、CPM消息/文件传输历史记录元数据表或CPM会话历史记录元数据表的“Tag”字段中内容。After receiving the SETMETADATA command, the MSS performs the update operation of the corresponding link metadata information table, and correspondingly updates the " Tag" field content.
MSS操作成功,向MSC返回成功应答消息。The MSS operates successfully, and returns a success response message to the MSC.
操作十一、在访问指令指示将链接对象进行移动时,消息存储服务器根据链接元数据信息执行与访问指令对应的访问操作包括:Operation 11. When the access instruction indicates to move the link object, the message storage server performs the access operation corresponding to the access instruction according to the link metadata information, including:
(1)消息存储服务器将链接对象从源文件目录对应的链接元数据信息中,移动至目的文件目录对应的链接元数据信息中;(1) The message storage server moves the link object from the link metadata information corresponding to the source file directory to the link metadata information corresponding to the destination file directory;
(2)消息存储服务器根据链接对象的类型更新会谈元数据信息的关联字段。(2) The message storage server updates the associated field of the meeting metadata information according to the type of the link object.
在具体实施过程中,如果用户希望将某个链接对象从源文件夹中移动到目的文件夹中,则MSC首先通过SETMETADATA命令请求将该链接对象添加到目标文件夹的链接元数据信息表中,然后再使用SETMETADATA命令请求删除源文件夹中该链接对象的元数据信息。In the specific implementation process, if the user wants to move a link object from the source folder to the destination folder, the MSC first requests to add the link object to the link metadata information table of the target folder through the SETMETADATA command, and then Then use the SETMETADATA command to request to delete the metadata information of the link object in the source folder.
MSS接收到SETMETADATA命令后,进行相应的链接元数据信息表的更新操作,并相应地更新CPM会谈信息元数据表、CPM消息/文件传输历史记录元数据表或CPM会话历史记录元数据表的“Tag”字段中内容。After receiving the SETMETADATA command, the MSS performs the update operation of the corresponding link metadata information table, and correspondingly updates the " Tag" field content.
MSS操作成功,向MSC返回成功应答消息。The MSS operates successfully, and returns a success response message to the MSC.
以下结合实例进行描述。Describe below in conjunction with example.
如果用户希望将某链接对象移到另一个用户自定义的文件夹中,则首先将该链接添加到另一个文件夹的“链接元数据信息表“中,然后再执行源文件夹的元数据信息删除操作,如图20所示。If the user wants to move a linked object to another user-defined folder, first add the link to the "Link Metadata Information Table" of the other folder, and then execute the metadata information of the source folder Delete operation, as shown in Figure 20.
MSS接收到“SETMETADATA“/My Favorite”(/shared/Relevance/15/Link“Message/2/2”)”命令后,执行以下步骤(如3.2.3小节“用户添加链接记录”操作):After MSS receives the "SETMETADATA“/My Favorite”(/shared/Relevance/15/Link“Message/2/2”)”command, it performs the following steps (such as the operation of “User Add Link Record” in section 3.2.3):
首先在“My Favorite”文件夹的元数据表中,添加<Seq>字段为“15”的链接记录(假设MSC已经通过GETMETADATA操作获知在目的文件夹“My Favorite”中最新的链接元数据信息中有14项记录,则构造SETMETADATA命令添加第15项链接记录),该链接记录的<Link>字段的值为“Message/2/2”;First, in the metadata table of the "My Favorite" folder, add a link record with the <Seq> field as "15" (assuming that MSC has learned the latest link metadata information in the destination folder "My Favorite" through the GETMETADATA operation If there are 14 records, construct the SETMETADATA command to add the 15th link record), the value of the <Link> field of the link record is "Message/2/2";
然后在“Conversation-History”的CPM消息记录元数据表中,找到UID为2的记录项,在该记录项的“Tag”字段中,添加“MyFavorite/2”信息。Then, in the CPM message record metadata table of "Conversation-History", find the record item with UID 2, and add "MyFavorite/2" information in the "Tag" field of the record item.
MSS接收到“SETMETADATA“/Working”(/shared/link/message/2/2 NIL)”命令后,按照操作七中描述的“用户删除链接对象”执行相关操作。After receiving the "SETMETADATA "/Working" (/shared/link/message/2/2 NIL)" command, MSS performs related operations according to the "user deletes the link object" described in operation 7.
根据本发明实施例,还提供了一种融合的IP消息(CPM)会谈历史记录的访问装置。According to an embodiment of the present invention, a device for accessing a Converged IP Messaging (CPM) conversation history record is also provided.
图21为根据本发明实施例的消息存储服务器的结构框图。如图21所示,根据本发明实施例的CPM会谈历史记录的访问装置包括:第一接收单元1、解析获取单元2、执行单元3。Fig. 21 is a structural block diagram of a message storage server according to an embodiment of the present invention. As shown in FIG. 21 , the device for accessing CPM conversation history records according to the embodiment of the present invention includes: a first receiving unit 1 , an analysis and acquisition unit 2 , and an execution unit 3 .
第一接收单元1,用于接收来自于客户端的访问指令;The first receiving unit 1 is configured to receive an access instruction from a client;
解析获取单元2,用于解析访问指令获取需要访问的文件目录标识,并获取文件目录标识对应的链接元数据信息;The parsing and obtaining unit 2 is used to parse the access instruction to obtain the file directory identifier to be accessed, and obtain the link metadata information corresponding to the file directory identifier;
执行单元3,用于根据链接元数据信息执行与访问指令对应的访问操作。The execution unit 3 is configured to execute an access operation corresponding to the access instruction according to the link metadata information.
在上述消息存储服务器的存储区域中,存储链接元数据信息,将对用户管理区域的访问操作与系统管理区域中存储的CPM会谈历史记录进行关联,可以在满足用户对消息存储服务器上存储的记录资源的自定义管理操作的同时,还能够为用户提供多种视图。In the storage area of the above-mentioned message storage server, the link metadata information is stored, and the access operation to the user management area is associated with the CPM meeting history records stored in the system management area, which can meet the requirements of the user for the records stored on the message storage server. While customizing resource management operations, it can also provide users with multiple views.
优选地,如图22所示,上述装置还可以包括:第一创建单元4,用于在消息存储服务器中创建系统管理区域,其中,系统管理区域包括存储会谈历史记录信息的第一存储单元、存储系统预定义文件信息的第二存储单元;第二创建单元5,用于在消息存储服务器中创建用户管理区域,其中,用户管理区域包括存储用户自定义信息的第三存储单元。Preferably, as shown in FIG. 22, the above-mentioned device may further include: a first creation unit 4, configured to create a system management area in the message storage server, wherein the system management area includes a first storage unit for storing conversation history record information, A second storage unit for storing system predefined file information; a second creating unit 5, configured to create a user management area in the message storage server, wherein the user management area includes a third storage unit for storing user-defined information.
优选地,如图22所示,上述装置还可以包括:第二接收单元6,用于接收来自于客户端上传的本地记录文件信息。Preferably, as shown in FIG. 22 , the above device may further include: a second receiving unit 6 configured to receive local record file information uploaded from the client.
优选地,如图22所示,上述装置还可以包括:鉴权单元7,用于将客户端对请求访问的文件信息的权限进行检查;确定单元8,用于确定客户端对请求的文件信息具有访问控制权限。Preferably, as shown in FIG. 22, the above-mentioned device may further include: an authentication unit 7, configured to check the authority of the client to the requested file information; Has access control permissions.
上述装置中各单元相互结合的工作方式,可以参见图4至图20的描述,此处不再赘述。The working mode of the combination of the units in the above-mentioned device can refer to the description in FIG. 4 to FIG. 20 , and will not be repeated here.
综上所述,通过本发明的上述实施例,为融合消息业务通信环境中的会谈历史记录定义了合适其特点的存储模型,并通过定义相关的元数据以及相关的存储管理操作形成一整套完整的方案,除了可以满足CPM会谈的特点,同时满足用户对消息存储服务器上存储的记录资源的自定义管理操作之外,还能够为用户提供多种视图,如会谈视图(以CPM会谈为单位查看会谈历史记录)、会谈的线性视图(按照回复-被回复的关系构建的视图)、以及系统预定义视图(如按照收发关系视图、主题分类视图)和用户自定义视图(用户自定义文件夹,并将感兴趣的记录文件或记录文件中的部分内容添加到自定义文件夹中),在尽量减小消息存储服务器管理开销的前提下,能够为用户提供良好的业务体验。To sum up, through the above-mentioned embodiments of the present invention, a storage model suitable for its characteristics is defined for the conversation history records in the converged message service communication environment, and a complete set of related metadata and related storage management operations is formed by defining related metadata and related storage management operations. The solution, in addition to meeting the characteristics of CPM talks and satisfying users' custom management operations on the record resources stored on the message storage server, can also provide users with multiple views, such as the meeting view (viewed in units of CPM talks conversation history), the linear view of the conversation (constructed according to the relationship between replies and replies), and the system predefined views (such as views according to the relationship between sending and receiving, subject classification) and user-defined views (user-defined folders, and add the interested record file or part of the content in the record file to the custom folder), on the premise of minimizing the management overhead of the message storage server, it can provide users with a good business experience.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010120039.9A CN102143125B (en) | 2010-01-29 | 2010-01-29 | Access method of converged internet protocol messaging (CPM) session history record and message storage server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010120039.9A CN102143125B (en) | 2010-01-29 | 2010-01-29 | Access method of converged internet protocol messaging (CPM) session history record and message storage server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102143125A CN102143125A (en) | 2011-08-03 |
CN102143125B true CN102143125B (en) | 2015-07-22 |
Family
ID=44410353
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010120039.9A Active CN102143125B (en) | 2010-01-29 | 2010-01-29 | Access method of converged internet protocol messaging (CPM) session history record and message storage server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102143125B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111007982B (en) * | 2019-11-29 | 2021-04-20 | 珠海豹趣科技有限公司 | Electronic whiteboard implementation method, device and related system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1735077A (en) * | 2004-08-12 | 2006-02-15 | 上海华为技术有限公司 | Bulk mail processing method |
CN101155022A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Data synchronization method, system and device |
CN101227418A (en) * | 2007-01-19 | 2008-07-23 | 华为技术有限公司 | A method, device and system for realizing fusion of IP messages |
-
2010
- 2010-01-29 CN CN201010120039.9A patent/CN102143125B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1735077A (en) * | 2004-08-12 | 2006-02-15 | 上海华为技术有限公司 | Bulk mail processing method |
CN101155022A (en) * | 2006-09-30 | 2008-04-02 | 华为技术有限公司 | Data synchronization method, system and device |
CN101227418A (en) * | 2007-01-19 | 2008-07-23 | 华为技术有限公司 | A method, device and system for realizing fusion of IP messages |
Also Published As
Publication number | Publication date |
---|---|
CN102143125A (en) | 2011-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100384186C (en) | System and method for multiple account number simultaneously realizing IMPS service on one client | |
US8417696B2 (en) | Contact information merger and duplicate resolution | |
US7797010B1 (en) | Systems and methods for talk group distribution | |
US8954494B2 (en) | Method and system for synchronizing operations of multiple groups | |
US20120195325A1 (en) | Alert message portal to securely notify subscribers of events | |
US7864716B1 (en) | Talk group management architecture | |
US7738900B1 (en) | Systems and methods of group distribution for latency sensitive applications | |
US20110270880A1 (en) | Automated communications system | |
EP1796314A1 (en) | A system for implementing the network hard-disk based on the real-time communication platform and the method thereof | |
CN101442558B (en) | Method and system for providing index service for P2SP network | |
WO2008046308A1 (en) | A network storage system and a control method for accessing the network storage content | |
US20140188802A1 (en) | Pull and paste | |
US9356896B2 (en) | Automated announcement-and-bulletins system | |
US7844294B1 (en) | Systems and methods for opt-in and opt-out talk group management | |
WO2008022522A1 (en) | Method and system for providing mobile service and management center server therefor | |
US20100325208A1 (en) | Methods and apparatus to forward documents in a communication network | |
CN104113572A (en) | Distribution method, system and front end device for user generation content | |
CN104348848B (en) | Manage method, terminal device and the server of picture | |
US20100325225A1 (en) | Methods and apparatus to forward documents in a communication network | |
KR20040101414A (en) | Group management | |
CN103873570A (en) | Unified information interaction method for use in self-media platform socializing and sharing | |
CN102143126B (en) | The access method of CPM meeting history record and message storage server | |
US7725489B2 (en) | Node for providing a file service to a mobile terminal | |
CN101389088A (en) | Multimedia message group sending method, group sending request method, multimedia message management platform device | |
US9237206B2 (en) | Method and apparatus for updating personal information in communication system |
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 |