|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs2.MCRStoredMetadata
public class MCRStoredMetadata
Represents an XML metadata document that is stored in MCRMetadataStore.
| Field Summary | |
|---|---|
protected org.apache.commons.vfs.FileObject |
fo
The file object in local filesystem storing the data |
protected int |
id
The ID of the metadata document |
protected MCRMetadataStore |
store
The store this document is stored in |
| Constructor Summary | |
|---|---|
MCRStoredMetadata(MCRMetadataStore store,
org.apache.commons.vfs.FileObject fo,
int id)
Creates a new stored metadata object |
|
| Method Summary | |
|---|---|
(package private) void |
create(MCRContent xml)
Creates a new local file to save XML to |
void |
delete()
Deletes the metadata document. |
int |
getID()
Returns the ID of this metadata document |
Date |
getLastModified()
Returns the date this metadata document was last modified |
MCRContent |
getMetadata()
Returns the stored XML document |
MCRMetadataStore |
getStore()
Returns the store this metadata document is stored in |
boolean |
isDeleted()
Returns true if this object is deleted |
void |
setLastModified(Date date)
Sets the date this metadata document was last modified |
void |
update(MCRContent xml)
Updates the stored XML document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int id
protected org.apache.commons.vfs.FileObject fo
protected MCRMetadataStore store
| Constructor Detail |
|---|
MCRStoredMetadata(MCRMetadataStore store,
org.apache.commons.vfs.FileObject fo,
int id)
store - the store this document is stored info - the file object storing the dataid - the ID of the metadata document| Method Detail |
|---|
void create(MCRContent xml)
throws Exception
xml - the XML to save to a new file
Exception
public void update(MCRContent xml)
throws Exception
xml - the XML document to be stored
Exception
public MCRContent getMetadata()
throws Exception
Exceptionpublic int getID()
public MCRMetadataStore getStore()
public Date getLastModified()
throws Exception
Exception
public void setLastModified(Date date)
throws Exception
date - the date this metadata document was last modified
Exception
public void delete()
throws Exception
Exception
public boolean isDeleted()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||