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 createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
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 nullpartial - if false the stream represents the full content,
if true the stream is only a part of the contentContentStream objectContentStream convertContentStream(ContentStream contentStream)
ContentStream object into a low 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, Collection<SecondaryType> secondaryTypes, Properties properties)
Properties convertProperties(Map<String,?> properties, ObjectType type, Collection<SecondaryType> secondaryTypes, 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–2016 The Apache Software Foundation. All rights reserved.