public class NuxeoObjectFactory extends Object implements org.apache.chemistry.opencmis.client.api.ObjectFactory
NuxeoObject
and its related classes.Constructor and Description |
---|
NuxeoObjectFactory(NuxeoSession session) |
Modifier and Type | Method and 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) |
public NuxeoObjectFactory(NuxeoSession session)
public void initialize(org.apache.chemistry.opencmis.client.api.Session session, Map<String,String> parameters)
initialize
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo convertRepositoryInfo(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repositoryInfo)
convertRepositoryInfo
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public NuxeoObject convertObject(org.apache.chemistry.opencmis.commons.data.ObjectData data, org.apache.chemistry.opencmis.client.api.OperationContext context)
convertObject
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.ObjectType getTypeFromObjectData(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
getTypeFromObjectData
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.Ace createAce(String principal, List<String> permissions)
createAce
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.Acl createAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
createAcl
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public <T> org.apache.chemistry.opencmis.client.api.Property<T> createProperty(org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition<T> type, List<T> values)
createProperty
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream)
createContentStream
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
createContentStream
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.Acl convertAces(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)
convertAces
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.commons.data.ContentStream convertContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)
convertContentStream
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public List<String> convertPolicies(List<org.apache.chemistry.opencmis.client.api.Policy> policies)
convertPolicies
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
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)
convertProperties
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
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)
convertProperties
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
protected static org.apache.chemistry.opencmis.commons.data.PropertyData<?> convertProperty(String key, Object value, org.apache.chemistry.opencmis.client.api.ObjectType type)
public List<org.apache.chemistry.opencmis.commons.data.PropertyData<?>> convertQueryProperties(org.apache.chemistry.opencmis.commons.data.Properties properties)
convertQueryProperties
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.QueryResult convertQueryResult(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
convertQueryResult
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.Rendition convertRendition(String objectId, org.apache.chemistry.opencmis.commons.data.RenditionData rendition)
convertRendition
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.ObjectType convertTypeDefinition(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)
convertTypeDefinition
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.ChangeEvent convertChangeEvent(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)
convertChangeEvent
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
public org.apache.chemistry.opencmis.client.api.ChangeEvents convertChangeEvents(String changeLogToken, org.apache.chemistry.opencmis.commons.data.ObjectList objectList)
convertChangeEvents
in interface org.apache.chemistry.opencmis.client.api.ObjectFactory
Copyright © 2017 Nuxeo. All rights reserved.