By | May 26, 2013 | 0 Comment
CIS or Content Integration Suite is a set of APIs that help the users to access the content server services. Through these APIs, the user can actually fetch the UCM services like document check in, workflow, search, full text search etc in a custom application and deploy it in any J2EE compatible container.
The CIS API connects to the content server through the Universal Content and Process Management APIs which in turn communicate to it through the SCS APIs. So the UCPM API wraps the content services and data in a unified object model that is accessed by the SCS API through its classes.
To use CIS, you need to configure adapter in your application. The adapter settings are stored in adapterconfig.xml in your application. You need to specify the following tags in the adapterconfig.xml
At the content server end, to make it compatible for communication through CIS connection, we need to enable the CIS_Helper component in the content server. This component needs to be explicitly installed before it is enabled. Moreover, we need to ensure that our application server IP address is included in the UCM security filter.
To allow the IP address, follow the steps below:
To install and enable the CIS_HELPER component, once you download the component as the zip file, follow the steps below:
The CIS API
The UCPM API uses the ICISApplication class to gain a reference to the IUCPMAPI Object. The class offers a getUCPMAPI() method to access the object. Since the UCPM API in turn uses the SCS APIs, we take reference to the SCS API using the getActiveAPI() method. The SCS API then acquires the content server services and exposes them to the end user.
SCSActiveAPI activeAPI = m_cisApplication.getUCPMAPI ().getActiveAPI ();
As discussed earlier about creation of adapter in adapterconfig.xml. The sameis then called through code. We initialise CIS using the CISApplicationFactory inside the com.stellant.cis.impl package. This initialization happens only once since we typically connect through the socket. We first set the following properties as it is as shown below and then read the other details defined in the adapterconfig.xml as under:
URL xmlRes = new File (“adapterconfig.xml”).toURL()
Properties properties = new Properties();
application = CISApplicationFactory.initialize(properties);
After the CIS instance has been initialize, we call the SCSInitializeServlet to initialize the CISApplication from within our web, typically a J2EE, application. To call the SCSInitializeServlet, the following configuration is required in the deployment descriptor, web.xml:
<display-name>SCS Initialize Servlet</display-name>