Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
TCK, xCMIS
Description
CMISClient.createRelationship
public Entry createRelationship(IRI parent, String type, String targetId, String atomEntryFile) throws Exception {
type = (type == null) ? defaultRelationshipType : type;
String createFile = templates.load(atomEntryFile);
createFile = createFile.replace("${RELTYPE}", type);
createFile = createFile.replace("${TARGETID}", targetId);
Request req = new PostRequest(parent.toString(), createFile, CMISConstants.MIMETYPE_ENTRY);
Response res = executeRequest(req, 201);