Class CmisUtils
java.lang.Object
org.frankframework.extensions.cmis.CmisUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XmlBuilder
static void
closeBindingSession
(org.apache.chemistry.opencmis.client.bindings.spi.CmisSpi owner, org.apache.chemistry.opencmis.client.bindings.spi.BindingSession bindingSession) static void
cmisObject2Xml
(XmlBuilder cmisXml, org.apache.chemistry.opencmis.client.api.CmisObject object) static XmlBuilder
getPropertyXml
(org.apache.chemistry.opencmis.commons.data.PropertyData<?> property) static XmlBuilder
objectData2Xml
(org.apache.chemistry.opencmis.commons.data.ObjectData object) static XmlBuilder
objectData2Xml
(org.apache.chemistry.opencmis.commons.data.ObjectData object, XmlBuilder cmisXml) static XmlBuilder
objectInFolderList2xml
(org.apache.chemistry.opencmis.commons.data.ObjectInFolderList oifs) static XmlBuilder
objectList2xml
(org.apache.chemistry.opencmis.commons.data.ObjectList result) static void
populateCmisAttributes
(PipeLineSession session) static org.apache.chemistry.opencmis.commons.data.Properties
processProperties
(Element cmisElement) static XmlBuilder
propertyDefintions2Xml
(Map<String, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> propertyDefinitions) static XmlBuilder
repositoryInfo2xml
(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repository) static XmlBuilder
typeDefinition2Xml
(org.apache.chemistry.opencmis.client.api.ObjectType objectType) static XmlBuilder
typeDescendants2Xml
(List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> objectTypes) static XmlBuilder
typeDescendants2Xml
(List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> objectTypes, XmlBuilder parent) static org.apache.chemistry.opencmis.commons.data.ObjectData
xml2ObjectData
(Element cmisElement, PipeLineSession context) static org.apache.chemistry.opencmis.commons.data.ObjectList
xml2ObjectList
(Element result, PipeLineSession context) static org.apache.chemistry.opencmis.commons.data.ObjectInFolderList
xml2ObjectsInFolderList
(Element result) static org.apache.chemistry.opencmis.commons.data.RepositoryInfo
xml2repositoryInfo
(Element cmisResult) static org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
xml2TypeDefinition
(Element typeXml, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion) static List
<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> xml2TypeDescendants
(Element typeDefinitionsXml, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
-
Field Details
-
FORMATSTRING_BY_DEFAULT
-
ORIGINAL_OBJECT_KEY
- See Also:
-
CMIS_VERSION_KEY
- See Also:
-
CMIS_BINDING_KEY
- See Also:
-
CMIS_CALLCONTEXT_KEY
- See Also:
-
-
Constructor Details
-
CmisUtils
public CmisUtils()
-
-
Method Details
-
populateCmisAttributes
-
closeBindingSession
public static void closeBindingSession(org.apache.chemistry.opencmis.client.bindings.spi.CmisSpi owner, org.apache.chemistry.opencmis.client.bindings.spi.BindingSession bindingSession) -
buildXml
-
getPropertyXml
public static XmlBuilder getPropertyXml(org.apache.chemistry.opencmis.commons.data.PropertyData<?> property) -
processProperties
public static org.apache.chemistry.opencmis.commons.data.Properties processProperties(Element cmisElement) -
propertyDefintions2Xml
public static XmlBuilder propertyDefintions2Xml(Map<String, org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<?>> propertyDefinitions) -
typeDefinition2Xml
public static XmlBuilder typeDefinition2Xml(org.apache.chemistry.opencmis.client.api.ObjectType objectType) -
xml2TypeDefinition
public static org.apache.chemistry.opencmis.commons.definitions.TypeDefinition xml2TypeDefinition(Element typeXml, org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion) -
repositoryInfo2xml
public static XmlBuilder repositoryInfo2xml(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repository) -
xml2repositoryInfo
public static org.apache.chemistry.opencmis.commons.data.RepositoryInfo xml2repositoryInfo(Element cmisResult) -
typeDescendants2Xml
public static XmlBuilder typeDescendants2Xml(List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> objectTypes) -
typeDescendants2Xml
public static XmlBuilder typeDescendants2Xml(List<org.apache.chemistry.opencmis.client.api.Tree<org.apache.chemistry.opencmis.client.api.ObjectType>> objectTypes, XmlBuilder parent) -
xml2TypeDescendants
-
cmisObject2Xml
public static void cmisObject2Xml(XmlBuilder cmisXml, org.apache.chemistry.opencmis.client.api.CmisObject object) -
objectData2Xml
public static XmlBuilder objectData2Xml(org.apache.chemistry.opencmis.commons.data.ObjectData object) -
objectData2Xml
public static XmlBuilder objectData2Xml(org.apache.chemistry.opencmis.commons.data.ObjectData object, XmlBuilder cmisXml) - Parameters:
object
- to translate to xmlcmisXml
- root XML element (defaults to creating a new 'objectData' element)- Returns:
- the root XML element
-
xml2ObjectData
public static org.apache.chemistry.opencmis.commons.data.ObjectData xml2ObjectData(Element cmisElement, PipeLineSession context) -
xml2ObjectList
public static org.apache.chemistry.opencmis.commons.data.ObjectList xml2ObjectList(Element result, PipeLineSession context) -
objectList2xml
public static XmlBuilder objectList2xml(org.apache.chemistry.opencmis.commons.data.ObjectList result) -
xml2ObjectsInFolderList
public static org.apache.chemistry.opencmis.commons.data.ObjectInFolderList xml2ObjectsInFolderList(Element result) -
objectInFolderList2xml
public static XmlBuilder objectInFolderList2xml(org.apache.chemistry.opencmis.commons.data.ObjectInFolderList oifs)
-