Changelog v2.x

SDK for Java v2.x

v2.7

  • Released 2020-04-20
  • Added methods:
    • stamp(String docId, int type, long stId)
    • stampImage(String docId, long stId, String range, String exprX, String exprY, InputStream image)
  •  Bugs
    • Fix the wrong URL when accessing plugin methods.

v2.6

  • Released 2018-09-10
  • Search changes:
    • The method findByQueryPaginated does not capture a parameter.
  • Repository changes:
    • Added method getServerTime to get the current server time.
  • Mail changes:
    • The method sendMailWithAttachments now have a field named from
  • Because we have introduced Swagger support to the WS library the behavior of some methods has been changed. That means if you use version 2.5 or older with OpenKM version 6.4.45 or upper it will be raised and error. The methods affected are what return boolean or long values :
    • isCheckedOut
    • isLocked
    • getVersionHistorySize
    • isValidDocument
    • isValidFolder
    • isValidMail
    • isValidRecord
    • hasGroup
    • hasNode
    • saveSearch
  • Solves a bug when the password contains special characters like a dot.

v2.5

  • Released 2017-01-02
  • Auth changes:
    • Added methods:
      • public void login()
  • Repository changes:
    • Added methods:
      • public List<ChangeLogged> getChangeLog(String nodePath, Calendar modificationsFrom)
    • Changes
      • method executePlugin(String className, Map<String, String> parameters, Class<?> class, InputStream is) now allows to uploading a document.
  • Document changes
    • Added methods:
      • public InputStream getDifferences(String docId, String v1, String v2)
      • public List<Document> getCheckedOut()
      • public Version checkin(String docId, InputStream is, String comment, int increment)
  • Workflow changes
    • Added methods:
      • public Map<String, List<FormElement>> getProcessDefinitionForms(long pdId)
  • PropertyGroup changes
    • Changes
      • method getPropertyGroupForm raises PluginNotFoundException
  • Folder changes
    • Added methods:
      • public void createMissingFolders(String fldPath)
  •  Improvements 
    • Added support for Reports.
    • Added variable hasRelation in class Node ( Document, Folder, Record, and Mail related ).
    • The object HqlQueryResults now has a variable HqlQueryResultColumns which contains a list of columns ( related to method executeHqlQuery ).
  • Bugs
    • FormElement parentValue mapping solved ( only applicable for Select type ).
    • The changed variable named "role" is in favor of the name "user" in the method grantUser.

v2.4

  • Released 2016-01-18
  • Auth changes:
    • Added methods:
      • public void createUser(String user, String password, String email, String name, boolean active)
      • public void deleteUser(String user)
      • public void updateUser(String user, String password, String email, String name, boolean active)
      • public void createRole(String role, boolean active)
      • public void deleteRole(String role)
      • public void updateRole(String role, boolean active)
      • public void assignRole(String user, String role)
      • public void removeRole(String user, String role)
      • public void changeSecurity(ChangeSecurity changeSecurity)
  • Document changes: 
    • Added methods:
      • public List<String> getDetectedLanguages()
      • public String getAnnotations(String docId, String verName)
    • Changes:
      • Now renameDocument(String docId, String newName) returns Document object.
      • Method "setTitle" has been renamed in favour "setDocumentTitle" name.
  • Mail changes:
    • Added methods:
      • public Mail importEml(String dstId, String title, InputStream is)
      • public Mail importMsg(String dstId, String title, InputStream is)
      • public void setMailTitle(String mailId, String title)
      • public void sendMail(List<String> recipients, String subject, String body)
    • Changes:
      • Added variable "newName" in extendedMailCopy method.
  • Repository changes:
    • Added methods:
      • public Configuration getConfiguration(String key)
      • public Object executePlugin(String className, Map<String, String> parameters, Class<?> clazz)
  • Search changes:
    • Changes:
      • Added variable "propertiesPlugin" in method find.
      • Added variable "propertiesPlugin" in method findPaginated.
  • Workflow:
    • Changes
      • Changed "FormElementComplexList values" in favour "List<FormElement> values" in method runProcessDefinition.
      • Changed "FormElementComplexList values" in favour "List<FormElement> values" in method setTaskInstanceValues.
  • Added variables "language" and "title" in the Document object.
  • Added Conversion support:
    • Added Methods:
      • public InputStream doc2pdf(InputStream is, String fileName)

      • public InputStream pdf2swf(InputStream is, String fileName)

      • public InputStream imageConvert(InputStream is, String fileName, List<String> params, String dstMimeType)

      • public InputStream html2pdf(String URL)

      • public String doc2txt(InputStream is, String fileName)

      • public String img2txt(InputStream is, String fileName)

      • public String barcode2txt(InputStream is, String fileName)