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 forNuxeoObjectand 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.AclconvertAces(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)org.apache.chemistry.opencmis.client.api.ChangeEventconvertChangeEvent(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)org.apache.chemistry.opencmis.client.api.ChangeEventsconvertChangeEvents(String changeLogToken, org.apache.chemistry.opencmis.commons.data.ObjectList objectList)org.apache.chemistry.opencmis.commons.data.ContentStreamconvertContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream)NuxeoObjectconvertObject(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.PropertiesconvertProperties(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.QueryResultconvertQueryResult(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)org.apache.chemistry.opencmis.client.api.RenditionconvertRendition(String objectId, org.apache.chemistry.opencmis.commons.data.RenditionData rendition)org.apache.chemistry.opencmis.commons.data.RepositoryInfoconvertRepositoryInfo(org.apache.chemistry.opencmis.commons.data.RepositoryInfo repositoryInfo)org.apache.chemistry.opencmis.client.api.ObjectTypeconvertTypeDefinition(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition typeDefinition)org.apache.chemistry.opencmis.commons.data.AcecreateAce(String principal, List<String> permissions)org.apache.chemistry.opencmis.commons.data.AclcreateAcl(List<org.apache.chemistry.opencmis.commons.data.Ace> aces)org.apache.chemistry.opencmis.commons.data.ContentStreamcreateContentStream(String filename, long length, String mimetype, InputStream stream)org.apache.chemistry.opencmis.commons.data.ContentStreamcreateContentStream(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.ObjectTypegetTypeFromObjectData(org.apache.chemistry.opencmis.commons.data.ObjectData objectData)voidinitialize(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:
initializein 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:
convertRepositoryInfoin 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:
convertObjectin 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:
getTypeFromObjectDatain interfaceorg.apache.chemistry.opencmis.client.api.ObjectFactory
-
createAce
public org.apache.chemistry.opencmis.commons.data.Ace createAce(String principal, List<String> permissions)
- Specified by:
createAcein 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:
createAclin 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:
createPropertyin 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:
createContentStreamin 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:
createContentStreamin 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:
convertAcesin 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:
convertContentStreamin interfaceorg.apache.chemistry.opencmis.client.api.ObjectFactory
-
convertPolicies
public List<String> convertPolicies(List<org.apache.chemistry.opencmis.client.api.Policy> policies)
- Specified by:
convertPoliciesin 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:
convertPropertiesin 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:
convertPropertiesin 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:
convertQueryPropertiesin 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:
convertQueryResultin 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:
convertRenditionin 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:
convertTypeDefinitionin 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:
convertChangeEventin 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:
convertChangeEventsin interfaceorg.apache.chemistry.opencmis.client.api.ObjectFactory
-
-