public class ObjectFactoryImpl extends Object implements ObjectFactory, Serializable
Constructor and Description |
---|
ObjectFactoryImpl()
Default constructor.
|
public void initialize(Session session, Map<String,String> parameters)
initialize
in interface ObjectFactory
protected BindingsObjectFactory getBindingsObjectFactory()
public RepositoryInfo convertRepositoryInfo(RepositoryInfo repositoryInfo)
convertRepositoryInfo
in interface ObjectFactory
public Acl convertAces(List<Ace> aces)
convertAces
in interface ObjectFactory
public Ace createAce(String principal, List<String> permissions)
createAce
in interface ObjectFactory
public Acl createAcl(List<Ace> aces)
createAcl
in interface ObjectFactory
public List<String> convertPolicies(List<Policy> policies)
convertPolicies
in interface ObjectFactory
public Rendition convertRendition(String objectId, RenditionData rendition)
convertRendition
in interface ObjectFactory
public ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream)
ObjectFactory
ContentStream
interface.createContentStream
in interface ObjectFactory
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 null
ContentStream
objectpublic ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
ObjectFactory
ContentStream
interface.createContentStream
in interface ObjectFactory
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 null
partial
- if false
the stream represents the full content,
if true
the stream is only a part of the contentContentStream
objectpublic ContentStream convertContentStream(ContentStream contentStream)
ObjectFactory
ContentStream
object into a low level
ContentStream
object.convertContentStream
in interface ObjectFactory
contentStream
- the original ContentStream
objectContentStream
objectpublic ObjectType convertTypeDefinition(TypeDefinition typeDefinition)
convertTypeDefinition
in interface ObjectFactory
public ObjectType getTypeFromObjectData(ObjectData objectData)
getTypeFromObjectData
in interface ObjectFactory
public <T> Property<T> createProperty(PropertyDefinition<T> type, List<T> values)
createProperty
in interface ObjectFactory
protected <T> Property<T> convertProperty(ObjectType objectType, Collection<SecondaryType> secondaryTypes, PropertyData<T> pd)
public Map<String,Property<?>> convertProperties(ObjectType objectType, Collection<SecondaryType> secondaryTypes, Properties properties)
convertProperties
in interface ObjectFactory
public Properties convertProperties(Map<String,?> properties, ObjectType type, Collection<SecondaryType> secondaryTypes, Set<Updatability> updatabilityFilter)
convertProperties
in interface ObjectFactory
public List<PropertyData<?>> convertQueryProperties(Properties properties)
convertQueryProperties
in interface ObjectFactory
public CmisObject convertObject(ObjectData objectData, OperationContext context)
convertObject
in interface ObjectFactory
public QueryResult convertQueryResult(ObjectData objectData)
convertQueryResult
in interface ObjectFactory
public ChangeEvent convertChangeEvent(ObjectData objectData)
convertChangeEvent
in interface ObjectFactory
public ChangeEvents convertChangeEvents(String changeLogToken, ObjectList objectList)
convertChangeEvents
in interface ObjectFactory
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.