Changelog of version 2.x

SDK for .NET 2.x

v2.7.0

  • Released 2020-05-21
  • Updated the RestSharp library to version 106.10.1.
  • Document
    • Added methods:
      • stamp(String docId, int type, long stId)
      • stampImage(String docId, long stId, String range, String exprX, String exprY, FileStream image)
  • Plugins
    • Added methods:
      • Stream executePluginPostReturnFile(String className, Dictionary<String, String> parameters, FileStream fs)
      • Stream executePluginGetReturnFile(String className, Dictionary<String, String> parameters)
  • Bugs
    • Improvements in the serialization and deserialization of objects: Document, Folder, Mail, Record, FormElementComplex, ProcessInstance, TaskInstance, Token, ProcessDefinition and MapParams.

v2.6.3

  • Released 2020-04-17
  • Bugs
    • The method "findPaginated" returns a null value for the property "actualVersion"
    • Fixed issue when copying a FormElementComplex to FormElement: the array validator was skipped.
    • Bug when uploading documents with accented names. Affected methods ( createDocumentcheckincreateAttachmentimportMSGimportEML and doc2txt)
    • Bug with deserialization in findMoreLikeThis and findByQueryPaginated.

v2.6.2

  • Released 2019-04-05
  • Bugs
    • General
      • Validation of the host URL for methods using System.Net.Http.  Affected methods: createDocumentSimple, check-in, createAttachment, importEml, importMsg and doc2txt.
    • Auth
      • Corrected the value assignment of the password parameter. Affected methods: updateUser.
      • Error in the serialization of the changeSecurity. Affected methods: changeSecurity.
    • Document
      • Download large files. Affected methods: getContentByVersion and getDifferences.
      • Correction in the URL of the service. Affected methods: getAnnotations.
    • Mail
      • Replacement of the internal data type "byte array" with "StreamContent". Affected methods: importMsg, importEml and createAttachment.
    • Report
      • Error when generating the report file. Affected methods: executeReport.
    • Search
      • Correction in the value assignment of the query parameter. Affected methods: FindByQueryPaginated.
      • Correction in the deserialization of the QueryParams type with respect to the Operator property. Affected methods: updateSearch.
      • Correction of the parameter "qpId" as type "UrlSegment". Affected methods: deleteSearch.

v2.6.1

  • Released 2018-11-16
  • Updated tools:
    • .NET Framework 4.5.2
    • RestSharp 105.2.3.0
    • System.Net.Http
  •  Bugs
    • Upload, download and update large files. Affected methods: createDocumentSimple, getContent and check-in.

v2.6.0

  • Released 2018-09-14
  • Search changes:
    • The method findByQueryPaginated does not capture a parameter.
    • Added method findByQueryPaginated.
    • Manual serialization of the type query params.
  • Repository changes:
    • Added method getServerTime to get the current server time.
  • Mail changes:
    • The method sendMailWithAttachments now has a field named 'from'.
  • Because we have introduced Swagger support the WS library has been updated and thebehaviour 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

v2.5.2

  • Released 2018-07-17
  • Bugs:
    • Relation:
      • The method getRelationGroups has been modified. Changes have been applied for deserialization of the RelationGroup type.
      • Method findGroup: changed the service URL from "services/rest/relation/getRelationGroups" to "services/rest/relation/findGroup".
    • Search:
      • The method find has been modified. Changes have been applied for deserialization of the Record type.

v2.5.1

  • Released 2017-08-28
  • Auth changes:
    • In the login method, an error message has been included. Now it indicates when the error is caused by a wrong URL connection.
  • Search changes:
    • Methods find, findPaginated and findSimpleQueryPaginated have been modified. Core changes have been applied for deserialization of resultset, queryresult, and node types.
    • Added List<string> suggestions property in ResultSet class.

v2.5.0

  • Released 2017-02-24
  • 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 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 now 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 fixed (only applicable for Select type).
    • Renamed variable "role" to "user" in the method grantUser.

v2.4.0

  • Released 2016-02-24
  • 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 a Document object.
      • Method "setTitle" has been renamed to "setDocumentTitle".
  • 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, Dictionary<String, String> parameters)
  • Search changes:
    • Changes:
      • Added variable "propertiesPlugin" in method find.
      • Added variable "propertiesPlugin" in method findPaginated.
  • Workflow:
    • Changes
      • Changed "FormElementComplexList values" in favour of "List<FormElement> values" in method runProcessDefinition.
      • Changed "FormElementComplexList values" in favour of "List<FormElement> values" in method setTaskInstanceValues.
  • Added variables "language" and "title" in Document object.
  • Added Conversion support:
    • Added Methods:
      • public InputStream doc2pdf(FileStream is, String fileName)

      • public InputStream pdf2swf(FileStream is, String fileName)

      • public InputStream imageConvert(FileStream 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)

v2.3.1

  • Released 2015-11-18
  • Fixed problem with MessageBox present in some methods.