public class WGDocumentImplRSS1 extends WGFakeDocument
| Constructor and Description |
|---|
WGDocumentImplRSS1(WGDatabase db,
java.lang.String key,
org.dom4j.Element channel,
org.dom4j.Element item) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluateExpression(java.lang.String expression)
Evaluates an expression in a database-native expression language on this document core.
|
java.util.Date |
getCreated()
Retrieves the creation date of this document.
|
java.lang.Object |
getFastAccessKey()
Can provide an fast access key, that the corresponding database core implementation can use to re-retrieve an instance of this core.
|
java.io.InputStream |
getFileData(java.lang.String strFile)
Retrieves an input stream to the data of an embedded file.
|
java.util.List |
getFileNames()
Returns a list of the names of embedded files.
|
int |
getFileSize(java.lang.String strFile)
Returns the size of an embedded file in bytes.
|
java.util.List |
getItemNames()
Returns the names of all items in this document
|
java.lang.Object |
getItemValue(java.lang.String strName)
Returns the value of an content item.
|
java.util.Date |
getLastModified()
Returns the date of the last modification of this document.
|
java.lang.Object |
getMetaData(java.lang.String type)
Retrieves various meta data for the document core.
|
int |
getType()
Returns the type of this document.
|
boolean |
hasItem(java.lang.String strName)
Tests, if the content contains an item of the given name.
|
boolean |
isDeleted()
Tests, if this document is marked as deleted.
|
boolean |
isTemporary()
Should return true, if this document core cannot be re-retrieved by it's individual key.
|
boolean |
removeItem(java.lang.String Name)
Removes an item from the document
|
WGDatabaseRevision |
save(java.util.Date lastModified)
Called to save modifications to this document core.
|
boolean |
setItemValue(java.lang.String strName,
java.lang.Object value)
Sets a new value for a content item.
|
boolean |
setMetaData(java.lang.String strName,
java.lang.Object value)
Modifies various meta data for the document core.
|
void |
setWGDocument(WGDocument doc)
Called by the WGAPI after instantiation of this document core to provide a reference to the wrapping WGDocument object.
|
attachFile, createFileDerivate, dispose, getExtensionData, getExtensionDataNames, getFileDerivateData, getFileDerivateMetaData, getFileDerivates, getFileMetaData, getLastUpdates, getMetaDataDefault, getNativeObject, getOriginDatabase, getRelation, getRelationData, getRelationNames, getRelationNamesOfGroup, hasFile, hasFileMetadata, isDataCacheable, isFake, isSaved, markFileMetaDataModified, remove, removeExtensionData, removeFile, removeFileDerivate, removeRelation, renameFile, retrieveFileExtensionDataHandler, setCacheable, setDeleted, setRelation, setRelation, writeExtensionData, writeFileDerivateMetaDatapublic WGDocumentImplRSS1(WGDatabase db, java.lang.String key, org.dom4j.Element channel, org.dom4j.Element item)
public int getType()
WGDocumentCoregetType in interface WGDocumentCoregetType in class WGFakeDocumentpublic java.lang.Object getFastAccessKey()
WGDocumentCoregetFastAccessKey in interface WGDocumentCoregetFastAccessKey in class WGFakeDocumentpublic boolean isDeleted()
WGDocumentCoreisDeleted in interface WGDocumentCoreisDeleted in class WGFakeDocumentpublic boolean isTemporary()
WGDocumentCoreisTemporary in interface WGDocumentCoreisTemporary in class WGFakeDocumentpublic boolean hasItem(java.lang.String strName)
WGDocumentCorehasItem in interface WGDocumentCorehasItem in class WGFakeDocumentpublic java.lang.Object getItemValue(java.lang.String strName)
WGDocumentCoregetItemValue in interface WGDocumentCoregetItemValue in class WGFakeDocumentstrName - Name of the requested content item.public java.lang.Object getMetaData(java.lang.String type)
throws WGSystemException,
WGIllegalArgumentException,
WGBackendException
WGDocumentCoregetMetaData in interface WGDocumentCoregetMetaData in class WGFakeDocumenttype - The type of the meta data. See constants META_ of the specific WGDocument subclass for this doc class.WGSystemExceptionWGIllegalArgumentExceptionWGBackendExceptionpublic java.util.List getFileNames()
WGDocumentCoregetFileNames in interface WGDocumentCoregetFileNames in class WGFakeDocumentpublic java.io.InputStream getFileData(java.lang.String strFile)
WGDocumentCoregetFileData in interface WGDocumentCoregetFileData in class WGFakeDocumentstrFile - The name of the filepublic int getFileSize(java.lang.String strFile)
WGDocumentCoregetFileSize in interface WGDocumentCoregetFileSize in class WGFakeDocumentstrFile - The name of the file, whose size is requested.public java.util.Date getCreated()
WGDocumentCoregetCreated in interface WGDocumentCoregetCreated in class WGFakeDocumentpublic java.util.Date getLastModified()
WGDocumentCoregetLastModified in interface WGDocumentCoregetLastModified in class WGFakeDocumentpublic boolean setItemValue(java.lang.String strName,
java.lang.Object value)
WGDocumentCoresetItemValue in interface WGDocumentCoresetItemValue in class WGFakeDocumentstrName - Name of the item to be modified.value - New value of the itempublic boolean setMetaData(java.lang.String strName,
java.lang.Object value)
WGDocumentCoresetMetaData in interface WGDocumentCoresetMetaData in class WGFakeDocumentstrName - The name of the meta data. See constants META_ of the specific WGDocument subclass for this doc class.public WGDatabaseRevision save(java.util.Date lastModified)
WGDocumentCoresave in interface WGDocumentCoresave in class WGFakeDocumentpublic java.lang.Object evaluateExpression(java.lang.String expression)
throws WGExpressionException
WGDocumentCoreevaluateExpression in interface WGDocumentCoreevaluateExpression in class WGFakeDocumentexpression - The expression to be evaluatedWGExpressionExceptionpublic void setWGDocument(WGDocument doc)
WGDocumentCoresetWGDocument in interface WGDocumentCoresetWGDocument in class WGFakeDocumentdoc - The WGDocument object, that wraps this document core.public java.util.List getItemNames()
WGDocumentCoregetItemNames in interface WGDocumentCoregetItemNames in class WGFakeDocumentpublic boolean removeItem(java.lang.String Name)
WGDocumentCoreremoveItem in interface WGDocumentCoreremoveItem in class WGFakeDocumentName - Name of the item to remove