编校参数随各个文档一起传递。
The redaction parameters are passed with each individual document.
有3 种使用这些编校服务的方法
场景2:在批处理存储库中编校文档。
一个客户端程序连接到服务器并编校文档。
A client program simply connects to the server and redacts a document.
该API提供了几个方法来调用编校服务。
The API provides several methods to invoke the redaction services.
这允许客户端跟踪进度和控制编校的执行。
This allows clients to track the progress and control the execution of the redactions.
它以一个JVM进程的形式启动编校服务器。
使用角色可以更容易地指定编校的数据类型。
The data types for redaction can be more easily specified by using roles.
它还需要编校服务器的有效用户ID和密码。
It also requires a valid user id and password for the redaction server.
清单2显示了如何设置这个类对象的编校属性。
Listing 2 shows how to set the redaction attributes for this class object.
因此,该方法需要编校服务器的IP地址和端口号。
Therefore the method requires the IP address and port number of the redaction server.
示例配置文件同时用于编校服务器和进程内客户端。
The same configuration files are used for both the redaction server and the in-process client.
如果未指定语言,系统会在编校过程中自动识别它。
If the language is not specified, the system identifies it automatically during the redaction process.
为每种角色指定各种语义类别的权限(即是否编校)。
Permissions for the various semantic categories (as in whether or not to redact) are specified for each role.
清单4给出了一个准备编校规则和调用该方法的示例。
Listing 4 shows an example of how to prepare the redaction rules and call the method.
它用于输入和输出文档,以及编校中使用的其他工件。
It is used for input and output documents as well as for other artifacts used in redaction.
要实现更高的吞吐量,客户端可从多个线程提交编校请求。
For better throughput, clients can submit redaction requests from multiple threads.
批处理存储库用于通过可配置数量的线程一次编校许多文档。
A batch repository is designed to redact many documents at one time by a configurable number of threads.
与批处理存储库不同,按需存储库不会自动开始编校输入文档。
Unlike the batch repository, the on-demand repository does not start to redact the input document automatically.
可扩展此场景,根据需要将文档编校流程集成到文档工作流中。
This scenario can be extended to integrate the document redaction process into the document workflow as required.
此模式为客户端应用程序提供了对编校服务器生命周期的控制。
This mode gives a client application control over the redaction server life cycle.
因此,在文件系统中编校文档时,该文档必须在二进制模式下打开。
Therefore, the files must be opened in binary mode when redacting documents in a file system.
第二个场景适合在不应阻止客户端应用程序时对大量文档进行编校。
The second scenario is suitable for the redaction of large Numbers of documents when the client application should not be blocked.
编校服务器可访问一个ECM系统,并使用它的数据存储作为存储库。
The redaction server can access an ECM system and use its data store as a repository.
可为每个存储库指定一组编校选项,例如输出格式、颜色模式、角色等。
One set of redaction options, for example output format, color mode, role, and others, can be specified for each repository.
使用存储在存储库的编校服务器上的配置文件中定义的选项来处理文档。
The documents are processed with the options that are defined in the configuration file that is stored on the redaction server for that repository.
RedactionAttributes类对象指定如何编校文档。
The RedactionAttributes class object specifies how to redact the document.
当用 ""指定为内容类型时,编校服务器会检查文档数据并识别类型。
When "" is specified as the content type, the redaction server examines the document data and identifies the type.
在进程内客户端模式中,整个编校服务器作为客户端应用程序的一部分运行。
In the in-process client mode, the entire redaction server runs as a part of the client application.
第三个场景是一种高级情形,展示了应用程序对一组文档的编校的高级控制。
The third scenario is an advanced case showing the high level of control that an application has over the redaction of a collection of documents.
应用推荐