public interface ObjectFactory
ObjectFactory implementations may use the convert methods to
inject specific implementations of the interfaces when the data is transfered
from the low level API to the high level API.Session.getObjectFactory()RepositoryInfo convertRepositoryInfo(RepositoryInfo repositoryInfo)
Rendition convertRendition(String objectId, RenditionData rendition)
ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream)
ContentStream interface.filename - the filename, should be setlength - the length of the stream or -1 if the length is unknownmimetype - the MIME type, if unknown "application/octet-stream" should be
usedstream - the stream, should not be nullContentStream objectContentStream convertContentStream(ContentStream contentStream)
ContentStream object into a high level
ContentStream object.contentStream - the original ContentStream objectContentStream objectObjectType convertTypeDefinition(TypeDefinition typeDefinition)
ObjectType getTypeFromObjectData(ObjectData objectData)
<T> Property<T> createProperty(PropertyDefinition<T> type, List<T> values)
Map<String,Property<?>> convertProperties(ObjectType objectType, Properties properties)
Properties convertProperties(Map<String,?> properties, ObjectType type, Set<Updatability> updatabilityFilter)
List<PropertyData<?>> convertQueryProperties(Properties properties)
CmisObject convertObject(ObjectData objectData, OperationContext context)
QueryResult convertQueryResult(ObjectData objectData)
ChangeEvent convertChangeEvent(ObjectData objectData)
ChangeEvents convertChangeEvents(String changeLogToken, ObjectList objectList)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.