Overview

AtomPub Binding
KomXwork Backend https://partner.digitalfabrix.de/komxwork_balvi

Connected

Required: 24.2.872.0

Current:

KomX Identity Endpoint https://partner.digitalfabrix.de/komxwork_balvi/identity

normal

import org.apache.chemistry.opencmis.commons.*
import org.apache.chemistry.opencmis.commons.data.*
import org.apache.chemistry.opencmis.commons.enums.*
import org.apache.chemistry.opencmis.client.api.*
import org.apache.chemistry.opencmis.client.util.*

String projectPath = "/folder/project"
String filePath = "path/to/file.txt"

Folder parentProject= session.getObjectByPath(projectPath)
File file = new File(filePath)

def properties = [
    (PropertyIds.OBJECT_TYPE_ID): "komx:document",
    (PropertyIds.NAME): file.name
]

def contentStream = ContentStreamUtils.createFileContentStream(file)

parentProject.createDocument(properties, contentStream, VersioningState.MAJOR)


details-text

import org.apache.chemistry.opencmis.commons.*
import org.apache.chemistry.opencmis.commons.data.*
import org.apache.chemistry.opencmis.commons.enums.*
import org.apache.chemistry.opencmis.client.api.*
import org.apache.chemistry.opencmis.client.util.*

String projectPath = "/folder/project"
String filePath = "path/to/file.txt"
String propertyId = "komx:detail:detailKey" 
String propertyValue = "Test"

Folder parentProject = session.getObjectByPath(projectPath)
File file = new File(filePath)

def properties = [
    (PropertyIds.OBJECT_TYPE_ID): "komx:document",
    (PropertyIds.NAME): file.name,
	(propertyId): propertyValue
]

def contentStream = ContentStreamUtils.createFileContentStream(file)

parentProject.createDocument(properties, contentStream, VersioningState.MAJOR)


details-number

import org.apache.chemistry.opencmis.commons.*
import org.apache.chemistry.opencmis.commons.data.*
import org.apache.chemistry.opencmis.commons.enums.*
import org.apache.chemistry.opencmis.client.api.*
import org.apache.chemistry.opencmis.client.util.*

String projectPath = "/folder/project"
String filePath = "path/to/file.txt"
String propertyId = "komx:detail:detailKey" 
def propertyValue = 7

Folder parentProject = session.getObjectByPath(projectPath)
File file = new File(filePath)

def properties = [
    (PropertyIds.OBJECT_TYPE_ID): "komx:document",
    (PropertyIds.NAME): file.name,
	(propertyId): propertyValue
]

def contentStream = ContentStreamUtils.createFileContentStream(file)

parentProject.createDocument(properties, contentStream, VersioningState.MAJOR)


details-date

import org.apache.chemistry.opencmis.commons.*
import org.apache.chemistry.opencmis.commons.data.*
import org.apache.chemistry.opencmis.commons.enums.*
import org.apache.chemistry.opencmis.client.api.*
import org.apache.chemistry.opencmis.client.util.*
import java.time.LocalDateTime
import java.time.ZoneId
import java.util.Date

String projectPath = "/folder/project"
String filePath = "path/to/file.txt"
String propertyId = "komx:detail:detailKey" 
def ldt = LocalDateTime.parse("2025-01-08T10:15:30")
def propertyValue = Date.from(ldt.atZone(ZoneId.systemDefault()).toInstant())

Folder parentProject = session.getObjectByPath(projectPath)
File file = new File(filePath)

def properties = [
    (PropertyIds.OBJECT_TYPE_ID): "komx:document",
    (PropertyIds.NAME): file.name,
	(propertyId): propertyValue
]

def contentStream = ContentStreamUtils.createFileContentStream(file)

parentProject.createDocument(properties, contentStream, VersioningState.MAJOR)