The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices. The microservice is based on the standard CMI

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices. The microservice is based on the standard CMIS protocol (Content Management Interoperability Service).

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Compared with the standard CMIS, the Document Service of the SAP cloud platform adds support for some functions:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Learn how to consume Document Service of SAP Cloud Platform in Java program through a Hello World application.

Download the sample program from this link .

Click this hyperlink to download the Java Web Tomcat 8 SDK.

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The sample programs are located in the samples folder of the SDK.

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

After deploying the application to the SAP cloud platform, access the application and see the following prompt information:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The prompt information is output by the goGet method of the applied DocumentStoreServlet:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Once the Connect hyperlink is clicked:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Call the doGet method of another servlet DocumentStoreConnectServlet to perform three logics:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Ecm in Step 1 is Enterprise Content Management, which refers to the Document Service on the SAP cloud platform.

The instance handle of this Document Service is obtained through JNDI:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Configure in web.xml:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

When you click Connect for the first time, the code in the catch branch in the figure below is executed, creating a new repository with the hardcoded key. The second execution enters the logic of line 85, so the repository already exists at this time.

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The output of the first click of Connect:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The second output:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

You can see the successfully created repository in the Cockpit of the SAP cloud platform:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

If you need to delete the repository, you need to provide the hardcoded key abcdef0123456789 when it was created.

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

To get more original technical articles from Jerry, please follow the public account "Wang Zixi" or scan the QR code below:

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

The SAP cloud platform provides CRUD (add, delete, modify, and search) operations for Document in the form of microservices.  The microservice is based on the standard CMI

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325333053&siteId=291194637