Class CmisUtils


  • public class CmisUtils
    extends Object
    • Constructor Detail

      • CmisUtils

        public CmisUtils()
    • Method Detail

      • populateCmisAttributes

        public static void populateCmisAttributes​(PipeLineSession session)
      • closeBindingSession

        public static void closeBindingSession​(org.apache.chemistry.opencmis.client.bindings.spi.CmisSpi owner,
                                               org.apache.chemistry.opencmis.client.bindings.spi.BindingSession bindingSession)
      • 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

        public static List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> xml2TypeDescendants​(Element typeDefinitionsXml,
                                                                                                                          org.apache.chemistry.opencmis.commons.enums.CmisVersion cmisVersion)
      • 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 xml
        cmisXml - 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)