Show/Hide Toolbars

Attempts to check in a document (of type file) with a given unique key.

Code Snippet

byte[] docContent = "test document content".getBytes();

protected DocumentRepository documentRepository;

//the first parameter, documentUniqueKey, identifies an existing document to check in a new version for

//the second parameter, content, contains the updated file content to check in

//the third parameter, version, identifies the numeric version of the file you are checking in

documentRepository.checkIn("DOCU_2901", docContent, "1.3");