Class NuxeoObjectFactory

java.lang.Object
org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObjectFactory
All Implemented Interfaces:
org.apache.chemistry.opencmis.client.api.ObjectFactory

public class NuxeoObjectFactory extends Object implements org.apache.chemistry.opencmis.client.api.ObjectFactory
Factory for NuxeoObject and its related classes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.chemistry.opencmis.commons.data.Acl
    convertAces(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
     
    org.apache.chemistry.opencmis.client.api.ChangeEvent
    convertChangeEvent(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
     
    org.apache.chemistry.opencmis.client.api.ChangeEvents
    convertChangeEvents(String changeLogToken, org.apache.chemistry.opencmis.commons.data.ObjectList objectList)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    convertContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
     
    convertObject(org.apache.chemistry.opencmis.commons.data.ObjectData data, org.apache.chemistry.opencmis.client.api.OperationContext context)
     
    convertPolicies(List<org.apache.chemistry.opencmis.client.api.Policy> policies)
     
    org.apache.chemistry.opencmis.commons.data.Properties
    convertProperties(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectType type, Collection<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes, Set<org.apache.chemistry.opencmis.commons.enums.Updatability> updatabilityFilter)
     
    Map<String,org.apache.chemistry.opencmis.client.api.Property<?>>
    convertProperties(org.apache.chemistry.opencmis.client.api.ObjectType objectType, Collection<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes, org.apache.chemistry.opencmis.commons.data.Properties properties)
     
    protected static org.apache.chemistry.opencmis.commons.data.PropertyData<?>
    convertProperty(String key, Object value, org.apache.chemistry.opencmis.client.api.ObjectType type)
     
    List<org.apache.chemistry.opencmis.commons.data.PropertyData<?>>
    convertQueryProperties(org.apache.chemistry.opencmis.commons.data.Properties properties)
     
    org.apache.chemistry.opencmis.client.api.QueryResult
    convertQueryResult(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
     
    org.apache.chemistry.opencmis.client.api.Rendition
    convertRendition(String objectId, org.apache.chemistry.opencmis.commons.data.RenditionData rendition)
     
    org.apache.chemistry.opencmis.commons.data.RepositoryInfo
    convertRepositoryInfo(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repositoryInfo)
     
    org.apache.chemistry.opencmis.client.api.ObjectType
    convertTypeDefinition(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)
     
    org.apache.chemistry.opencmis.commons.data.Ace
    createAce(String principal, List<String> permissions)
     
    org.apache.chemistry.opencmis.commons.data.Acl
    createAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    createContentStream(String filename, long length, String mimetype, InputStream stream)
     
    org.apache.chemistry.opencmis.commons.data.ContentStream
    createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
     
    <T> org.apache.chemistry.opencmis.client.api.Property<T>
    createProperty(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> type, List<T> values)
     
    org.apache.chemistry.opencmis.client.api.ObjectType
    getTypeFromObjectData(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
     
    void
    initialize(org.apache.chemistry.opencmis.client.api.Session session, Map<String,String> parameters)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NuxeoObjectFactory

      public NuxeoObjectFactory(NuxeoSession session)
  • Method Details

    • initialize

      public void initialize(org.apache.chemistry.opencmis.client.api.Session session, Map<String,String> parameters)
      Specified by:
      initialize in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertRepositoryInfo

      public org.apache.chemistry.opencmis.commons.data.RepositoryInfo convertRepositoryInfo(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repositoryInfo)
      Specified by:
      convertRepositoryInfo in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertObject

      public NuxeoObject convertObject(org.apache.chemistry.opencmis.commons.data.ObjectData data, org.apache.chemistry.opencmis.client.api.OperationContext context)
      Specified by:
      convertObject in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • getTypeFromObjectData

      public org.apache.chemistry.opencmis.client.api.ObjectType getTypeFromObjectData(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
      Specified by:
      getTypeFromObjectData in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • createAce

      public org.apache.chemistry.opencmis.commons.data.Ace createAce(String principal, List<String> permissions)
      Specified by:
      createAce in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • createAcl

      public org.apache.chemistry.opencmis.commons.data.Acl createAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
      Specified by:
      createAcl in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • createProperty

      public <T> org.apache.chemistry.opencmis.client.api.Property<T> createProperty(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> type, List<T> values)
      Specified by:
      createProperty in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • createContentStream

      public org.apache.chemistry.opencmis.commons.data.ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream)
      Specified by:
      createContentStream in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • createContentStream

      public org.apache.chemistry.opencmis.commons.data.ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
      Specified by:
      createContentStream in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertAces

      public org.apache.chemistry.opencmis.commons.data.Acl convertAces(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
      Specified by:
      convertAces in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertContentStream

      public org.apache.chemistry.opencmis.commons.data.ContentStream convertContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
      Specified by:
      convertContentStream in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertPolicies

      public List<String> convertPolicies(List<org.apache.chemistry.opencmis.client.api.Policy> policies)
      Specified by:
      convertPolicies in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertProperties

      public Map<String,org.apache.chemistry.opencmis.client.api.Property<?>> convertProperties(org.apache.chemistry.opencmis.client.api.ObjectType objectType, Collection<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes, org.apache.chemistry.opencmis.commons.data.Properties properties)
      Specified by:
      convertProperties in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertProperties

      public org.apache.chemistry.opencmis.commons.data.Properties convertProperties(Map<String,?> properties, org.apache.chemistry.opencmis.client.api.ObjectType type, Collection<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes, Set<org.apache.chemistry.opencmis.commons.enums.Updatability> updatabilityFilter)
      Specified by:
      convertProperties in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertProperty

      protected static org.apache.chemistry.opencmis.commons.data.PropertyData<?> convertProperty(String key, Object value, org.apache.chemistry.opencmis.client.api.ObjectType type)
    • convertQueryProperties

      public List<org.apache.chemistry.opencmis.commons.data.PropertyData<?>> convertQueryProperties(org.apache.chemistry.opencmis.commons.data.Properties properties)
      Specified by:
      convertQueryProperties in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertQueryResult

      public org.apache.chemistry.opencmis.client.api.QueryResult convertQueryResult(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
      Specified by:
      convertQueryResult in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertRendition

      public org.apache.chemistry.opencmis.client.api.Rendition convertRendition(String objectId, org.apache.chemistry.opencmis.commons.data.RenditionData rendition)
      Specified by:
      convertRendition in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertTypeDefinition

      public org.apache.chemistry.opencmis.client.api.ObjectType convertTypeDefinition(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)
      Specified by:
      convertTypeDefinition in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertChangeEvent

      public org.apache.chemistry.opencmis.client.api.ChangeEvent convertChangeEvent(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
      Specified by:
      convertChangeEvent in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
    • convertChangeEvents

      public org.apache.chemistry.opencmis.client.api.ChangeEvents convertChangeEvents(String changeLogToken, org.apache.chemistry.opencmis.commons.data.ObjectList objectList)
      Specified by:
      convertChangeEvents in interface org.apache.chemistry.opencmis.client.api.ObjectFactory