|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.bfs.DocumentHeaderImpl
public class DocumentHeaderImpl
Flyweight DocumentHeader implementation.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
log
|
| Constructor Summary | |
|---|---|
DocumentHeaderImpl()
Create a new empty document. |
|
DocumentHeaderImpl(DocumentHeader header)
Copy constructor for header information. |
|
DocumentHeaderImpl(Map<String,Object> metadata)
|
|
| Method Summary | |
|---|---|
Map<String,Object> |
asMap()
Returns a read-only view of the document metadata. |
boolean |
exists()
Always returns false. |
String |
getContentEncoding()
The character set encoding that MUST be used to interpret the byte[] returned by Document#getContent(). |
String |
getContentType()
The MIME type for the document. |
long |
getEarliestVersionCreateTime()
The time at which the earliest version of this file still on record was created (historical file metadata can be eradicated through compacting merges). |
String |
getId()
The unique identifier for the document within the IContentRepository. |
long |
getMetadataUpdateTime()
The time at which the metadata for the current version of this file was last updated. |
Object |
getProperty(String name)
Get an arbitrary property value. |
int |
getVersion()
Return the version identifier. |
long |
getVersionCreateTime()
The time at which the current version of this file was created. |
void |
setContentEncoding(String contentEncoding)
|
void |
setContentType(String contentType)
|
void |
setId(String id)
|
void |
setProperty(String name,
Object newValue)
Set an arbitrary property value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
| Constructor Detail |
|---|
public DocumentHeaderImpl()
public DocumentHeaderImpl(DocumentHeader header)
header - to copypublic DocumentHeaderImpl(Map<String,Object> metadata)
| Method Detail |
|---|
public void setId(String id)
public void setContentType(String contentType)
public void setContentEncoding(String contentEncoding)
public String getId()
DocumentHeaderIContentRepository.
getId in interface DocumentHeaderpublic int getVersion()
DocumentHeader
getVersion in interface DocumentHeaderpublic String getContentType()
DocumentHeader
getContentType in interface DocumentHeaderpublic String getContentEncoding()
DocumentHeaderDocument#getContent().
getContentEncoding in interface DocumentHeader
public void setProperty(String name,
Object newValue)
property - The property name.value - The value.public Object getProperty(String name)
DocumentHeader
getProperty in interface DocumentHeaderpublic Map<String,Object> asMap()
DocumentHeader
asMap in interface DocumentHeaderpublic boolean exists()
false.
exists in interface DocumentHeaderpublic long getEarliestVersionCreateTime()
DocumentHeader
getEarliestVersionCreateTime in interface DocumentHeaderIllegalStateException - always.public long getMetadataUpdateTime()
DocumentHeader
getMetadataUpdateTime in interface DocumentHeaderIllegalStateException - always.public long getVersionCreateTime()
DocumentHeader
getVersionCreateTime in interface DocumentHeaderIllegalStateException - always.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||