A simple danger alert - check it out!
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 filePath = "path/to/file.txt"
String inboxFileType = "komx:inboxFileCustomType"
File file = new File(filePath)
def properties = [
(PropertyIds.OBJECT_TYPE_ID): inboxFileType,
(PropertyIds.NAME): file.name
]
def contentStream = ContentStreamUtils.createFileContentStream(file)
session.createDocument(properties, null , contentStream, VersioningState.NONE)
ext-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 filePath = "path/to/file.txt"
String propertyId = "ext:customText"
String propertyValue = "Test"
String inboxFileType = "komx:inboxFileCustomType"
File file = new File(filePath)
def properties = [
(PropertyIds.OBJECT_TYPE_ID): inboxFileType,
(PropertyIds.NAME): file.name,
(propertyId): propertyValue
]
def contentStream = ContentStreamUtils.createFileContentStream(file)
session.createDocument(properties, null , contentStream, VersioningState.NONE)
ext-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 filePath = "path/to/file.txt"
String propertyId = "ext:customNumber"
def propertyValue = 7
String inboxFileType = "komx:inboxFileCustomType"
File file = new File(filePath)
def properties = [
(PropertyIds.OBJECT_TYPE_ID): inboxFileType,
(PropertyIds.NAME): file.name,
(propertyId): propertyValue
]
def contentStream = ContentStreamUtils.createFileContentStream(file)
session.createDocument(properties, null , contentStream, VersioningState.NONE)
ext-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 filePath = "path/to/file.txt"
String propertyId = "ext:customDate"
def ldt = LocalDateTime.parse("2025-01-08T10:15:30")
def propertyValue = Date.from(ldt.atZone(ZoneId.systemDefault()).toInstant())
String inboxFileType = "komx:inboxFileCustomType"
File file = new File(filePath)
def properties = [
(PropertyIds.OBJECT_TYPE_ID): inboxFileType,
(PropertyIds.NAME): file.name,
(propertyId): propertyValue
]
def contentStream = ContentStreamUtils.createFileContentStream(file)
session.createDocument(properties, null , contentStream, VersioningState.NONE)