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 ObjectFactoryprotected BindingsObjectFactory getBindingsObjectFactory()
public RepositoryInfo convertRepositoryInfo(RepositoryInfo repositoryInfo)
convertRepositoryInfo in interface ObjectFactorypublic Acl convertAces(List<Ace> aces)
convertAces in interface ObjectFactorypublic Ace createAce(String principal, List<String> permissions)
createAce in interface ObjectFactorypublic Acl createAcl(List<Ace> aces)
createAcl in interface ObjectFactorypublic List<String> convertPolicies(List<Policy> policies)
convertPolicies in interface ObjectFactorypublic Rendition convertRendition(String objectId, RenditionData rendition)
convertRendition in interface ObjectFactorypublic ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream)
ObjectFactoryContentStream interface.createContentStream in interface ObjectFactoryfilename - 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 objectpublic ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream, boolean partial)
ObjectFactoryContentStream interface.createContentStream in interface ObjectFactoryfilename - 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 objectpublic ContentStream convertContentStream(ContentStream contentStream)
ObjectFactoryContentStream object into a low level
ContentStream object.convertContentStream in interface ObjectFactorycontentStream - the original ContentStream objectContentStream objectpublic ObjectType convertTypeDefinition(TypeDefinition typeDefinition)
convertTypeDefinition in interface ObjectFactorypublic ObjectType getTypeFromObjectData(ObjectData objectData)
getTypeFromObjectData in interface ObjectFactorypublic <T> Property<T> createProperty(PropertyDefinition<T> type, List<T> values)
createProperty in interface ObjectFactoryprotected <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 ObjectFactorypublic Properties convertProperties(Map<String,?> properties, ObjectType type, Collection<SecondaryType> secondaryTypes, Set<Updatability> updatabilityFilter)
convertProperties in interface ObjectFactorypublic List<PropertyData<?>> convertQueryProperties(Properties properties)
convertQueryProperties in interface ObjectFactorypublic CmisObject convertObject(ObjectData objectData, OperationContext context)
convertObject in interface ObjectFactorypublic QueryResult convertQueryResult(ObjectData objectData)
convertQueryResult in interface ObjectFactorypublic ChangeEvent convertChangeEvent(ObjectData objectData)
convertChangeEvent in interface ObjectFactorypublic ChangeEvents convertChangeEvents(String changeLogToken, ObjectList objectList)
convertChangeEvents in interface ObjectFactoryCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.