Changelog of version 2.x

SDK for Java 2.x

v 2.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 the WS library the behaviour of some methods have 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 password contains special characters like dot.

v 2.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<?> clazz, 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 variables HqlQueryResultColumns what contains a list of columns ( related with method executeHqlQuery ).
  • Bugs
    • FormElement parentValue mapping solved ( only applicable for Select type ).
    • Changed variable named "role" in favour of name "user" in the method grantUser.

v 2.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.
  • Reporsitory 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 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)