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 forNuxeoObject
and its related classes.
-
-
Constructor Summary
Constructors Constructor Description NuxeoObjectFactory(NuxeoSession session)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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)
NuxeoObject
convertObject(org.apache.chemistry.opencmis.commons.data.ObjectData data, org.apache.chemistry.opencmis.client.api.OperationContext context)
List<String>
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)
-
-
-
Constructor Detail
-
NuxeoObjectFactory
public NuxeoObjectFactory(NuxeoSession session)
-
-
Method Detail
-
initialize
public void initialize(org.apache.chemistry.opencmis.client.api.Session session, Map<String,String> parameters)
- Specified by:
initialize
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.ObjectFactory
-
convertPolicies
public List<String> convertPolicies(List<org.apache.chemistry.opencmis.client.api.Policy> policies)
- Specified by:
convertPolicies
in interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.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 interfaceorg.apache.chemistry.opencmis.client.api.ObjectFactory
-
-