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, writeFileDerivateMetaData
public WGDocumentImplRSS1(WGDatabase db, java.lang.String key, org.dom4j.Element channel, org.dom4j.Element item)
public int getType()
WGDocumentCore
getType
in interface WGDocumentCore
getType
in class WGFakeDocument
public java.lang.Object getFastAccessKey()
WGDocumentCore
getFastAccessKey
in interface WGDocumentCore
getFastAccessKey
in class WGFakeDocument
public boolean isDeleted()
WGDocumentCore
isDeleted
in interface WGDocumentCore
isDeleted
in class WGFakeDocument
public boolean isTemporary()
WGDocumentCore
isTemporary
in interface WGDocumentCore
isTemporary
in class WGFakeDocument
public boolean hasItem(java.lang.String strName)
WGDocumentCore
hasItem
in interface WGDocumentCore
hasItem
in class WGFakeDocument
public java.lang.Object getItemValue(java.lang.String strName)
WGDocumentCore
getItemValue
in interface WGDocumentCore
getItemValue
in class WGFakeDocument
strName
- Name of the requested content item.public java.lang.Object getMetaData(java.lang.String type) throws WGSystemException, WGIllegalArgumentException, WGBackendException
WGDocumentCore
getMetaData
in interface WGDocumentCore
getMetaData
in class WGFakeDocument
type
- The type of the meta data. See constants META_ of the specific WGDocument subclass for this doc class.WGSystemException
WGIllegalArgumentException
WGBackendException
public java.util.List getFileNames()
WGDocumentCore
getFileNames
in interface WGDocumentCore
getFileNames
in class WGFakeDocument
public java.io.InputStream getFileData(java.lang.String strFile)
WGDocumentCore
getFileData
in interface WGDocumentCore
getFileData
in class WGFakeDocument
strFile
- The name of the filepublic int getFileSize(java.lang.String strFile)
WGDocumentCore
getFileSize
in interface WGDocumentCore
getFileSize
in class WGFakeDocument
strFile
- The name of the file, whose size is requested.public java.util.Date getCreated()
WGDocumentCore
getCreated
in interface WGDocumentCore
getCreated
in class WGFakeDocument
public java.util.Date getLastModified()
WGDocumentCore
getLastModified
in interface WGDocumentCore
getLastModified
in class WGFakeDocument
public boolean setItemValue(java.lang.String strName, java.lang.Object value)
WGDocumentCore
setItemValue
in interface WGDocumentCore
setItemValue
in class WGFakeDocument
strName
- Name of the item to be modified.value
- New value of the itempublic boolean setMetaData(java.lang.String strName, java.lang.Object value)
WGDocumentCore
setMetaData
in interface WGDocumentCore
setMetaData
in class WGFakeDocument
strName
- 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)
WGDocumentCore
save
in interface WGDocumentCore
save
in class WGFakeDocument
public java.lang.Object evaluateExpression(java.lang.String expression) throws WGExpressionException
WGDocumentCore
evaluateExpression
in interface WGDocumentCore
evaluateExpression
in class WGFakeDocument
expression
- The expression to be evaluatedWGExpressionException
public void setWGDocument(WGDocument doc)
WGDocumentCore
setWGDocument
in interface WGDocumentCore
setWGDocument
in class WGFakeDocument
doc
- The WGDocument object, that wraps this document core.public java.util.List getItemNames()
WGDocumentCore
getItemNames
in interface WGDocumentCore
getItemNames
in class WGFakeDocument
public boolean removeItem(java.lang.String Name)
WGDocumentCore
removeItem
in interface WGDocumentCore
removeItem
in class WGFakeDocument
Name
- Name of the item to remove