org.apache.chemistry.opencmis.inmemory.storedobj.impl
Class DocumentImpl
java.lang.Object
org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.AbstractMultiFilingImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.DocumentImpl
- All Implemented Interfaces:
- Content, Document, Filing, MultiFiling, StoredObject
public class DocumentImpl
- extends AbstractMultiFilingImpl
- implements Document
InMemory Stored Document A document is a stored object that has a path and
(optional) content
- Author:
- Jens
Fields inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.Filing |
PATH_SEPARATOR |
Methods inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
createSystemBasePropertiesWhenCreated, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getTypeId, persist, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, updateSystemBasePropertiesWhenModified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.StoredObject |
createSystemBasePropertiesWhenCreated, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified |
getContent
public ContentStream getContent(long offset,
long length)
- Description copied from interface:
Content
- retrieve the content of a document
- Specified by:
getContent
in interface Content
- Returns:
- object containing mime-type, length and a stream with content
setContent
public void setContent(ContentStream content,
boolean mustPersist)
- Description copied from interface:
Content
- Assign content do a document. Existing content gets overwritten. The
document is not yet persisted in the new state.
- Specified by:
setContent
in interface Content
- Parameters:
content
- content to be assigned to the document.mustPersist
- persist document (set to false if content is set during
creation of a document)
fillProperties
public void fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds)
- Specified by:
fillProperties
in interface StoredObject
- Overrides:
fillProperties
in class StoredObjectImpl
hasContent
public boolean hasContent()
- Description copied from interface:
Content
- return true if this object has content or false if there is no content
attached.
- Specified by:
hasContent
in interface Content
- Returns:
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.