C H A P T E R 8 |
Content Validation Workflows |
Content submitted to the Sun Java System Content Delivery Server goes through a validation process that is managed by the submission verifier workflows. A workflow typically includes steps to validate the content. Content that does not require special processing must be processed by the default workflow.
The workflows provided with Content Delivery Server are defined in the $CDS_HOME/deployment/deployment-name/conf/SubmissionVerifierWorkflows.xml file.
Workflows are provided for the following types of content:
Use of the workflows provided with the Content Delivery Server is described in the Sun Java System Content Delivery Server Installation Guide. If these workflows do not meet your needs, you can create your own.
This chapter presents the following topics:
A content validation adapter processes the content that is submitted to the Content Delivery Server according to the purpose of the adapter. Any preprocessing that is required before the content is accepted can be handled by an adapter. For example, adapters can be used to verify that the content meets the guidelines established by your enterprise, add code for digital rights management (DRM), or obfuscate the code.
Each step in a workflow must include the name of the content validation adapter to be run for that step. The following table describes the adapters provided with the Content Delivery Server.
If none of the adapters provided meets your needs, you can create your own adapter using the Content Validation API. See the Sun Java System Content Delivery Server Customization Guide for information on the Content Validation API.
If the adapter that you write needs values that cannot be known at the time the adapter is written, create a property file for the adapter. For example, if the adapter needs to know the location of a utility that it uses, create a property file that contains a property for the location. Set the location property to point to the directory that contains the utility on the system on which the adapter runs. Write the adapter to reference the location property when the location of the utility is needed. The property file that you create must be placed in the $CDS_HOME/deployment/deployment-name/conf directory.
If you create your own adapter, you must register the adapter by adding a statement in the $CDS_HOME/deployment/deployment-name/conf/SubmissionVerifierAdapters.xml file. If the adapter requires values in a property file, specify the name of the file in the property-file attribute. For example, if you create an adapter named MyValidationAdapter that requires a property file named Validation.properties, add the following statement to the file:
<adapter id="MyValidationAdapter" name="sample.package.MyValidationAdapter" propertyfile="Validation.properties"/> |
A workflow describes the steps taken to validate and protect content submitted to the Content Delivery Server. The following code example shows the workflow for externally hosted copyrighted content.
Each workflow that you define requires the following items:
If your workflow creates more than one edition, the edition delivered to the subscriber depends on the capabilities of the device. If more than one edition matches the device, the last edition created that matches is the one delivered. For example, if steps 2, 5, and 7 in your workflow create unique editions of the content and the device is capable of running the editions created in steps 2 and 7, the edition created in step 7 is delivered.
The workflow that is executed is determined by the criteria defined for the workflow. See the section "Specifying Workflow Criteria" in the Sun Java System Content Delivery Server Installation Guide for information on setting up the criteria for the workflow that you created.
Copyright © 2005, Sun Microsystems, Inc. All Rights Reserved.