The following guide describes how to setup your Document Integration Layer
- Documentum Installation including the Documentum Core Rest 7.3 and EMC CMIS 1.1 applications
- Java 8 JDK to compile the code
- Spring Tool Suite (STS) which includes a built-in functionality to run the Spring Boot Application.
Clone the repository to your local environment. The repository currently contains two projects :-
Rest-Sample-User-1( needs to be renamed soon ie:DocumentumIntegrationLayer) Which provides the Rest Micro services integrating with the configured repositories.D2FS Client( Soap Client used for D2 Integration )
Use git to clone the repository into a new folder
git clone https://github.com/mmohen/dctm-rest-samples.git ./IntegrationLayer
Import the projects into your STS workspace and load them as existing maven projects
Import the two projects
Edit the Spring Project's application.properties file which contains the configuration for the Core REST & CMIS Application.
Make sure that the link used to reference the ACS Server can be referenced from your machine, if you are using the Documentum Developer Image the host name will be demo-server you can edit as an entry in your hosts file pointing to the ACS Server
After configuring your link to the repositories, Run the Rest-Sample-User-1 Project as a Spring Boot App
Use the following endpoints to get a list of cabinets available for the configured used
http://localhost:8080/cmis/services/get/cabinets
http://localhost:8080/corerest/services/get/cabinets
You should get a response similar to this
[
{
"id": "0c0007c280000104",
"name": "postgres",
"type": "Cabinet",
"properties": {
"cmis:objectId": "0c0007c280000104",
"cmis:path": "/postgres",
"cmis:allowedChildObjectTypeIds": [
"cmis:folder",
"cmis:document"
],
"cmis:name": "postgres",
"cmis:lastModifiedBy": "postgres",
"cmis:objectTypeId": "dm_cabinet",
"cmis:lastModificationDate": 1393801987000,
"cmis:baseTypeId": "cmis:folder",
"cmis:createdBy": "postgres",
"cmis:creationDate": 1393801987000
},
"checkedOut": false
},
{
"id": "0c0007c280000105",
"name": "dmadmin",
"type": "Cabinet",
"properties": {
"cmis:objectId": "0c0007c280000105",
"cmis:path": "/dmadmin",
"cmis:allowedChildObjectTypeIds": [
"cmis:folder",
"cmis:document"
],
"cmis:name": "dmadmin",
"cmis:lastModifiedBy": "postgres",
"cmis:objectTypeId": "dm_cabinet",
"cmis:lastModificationDate": 1393801987000,
"cmis:baseTypeId": "cmis:folder",
"cmis:createdBy": "postgres",
"cmis:creationDate": 1393801987000
},
"checkedOut": false
},
{
"id": "0c0007c280000107",
"name": "Temp",
"type": "Cabinet",
"properties": {
"cmis:objectId": "0c0007c280000107",
"cmis:path": "/Temp",
"cmis:allowedChildObjectTypeIds": [
"cmis:folder",
"cmis:document"
],
"cmis:name": "Temp",
"cmis:lastModifiedBy": "postgres",
"cmis:objectTypeId": "dm_cabinet",
"cmis:lastModificationDate": 1393801988000,
"cmis:baseTypeId": "cmis:folder",
"cmis:createdBy": "postgres",
"cmis:creationDate": 1393801988000
},
"checkedOut": false
}
]