|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs2.MCRObjectMetadataStoreIFS2
public class MCRObjectMetadataStoreIFS2
Stores XML metadata of MCRObject in IFS2
| Nested Class Summary | |
|---|---|
(package private) class |
MCRObjectMetadataStoreIFS2.MyMCRObjectIDDate
|
| Constructor Summary | |
|---|---|
MCRObjectMetadataStoreIFS2()
|
|
| Method Summary | |
|---|---|
void |
create(String mcrid,
byte[] xml,
Date lastModified)
The method create a new item in the datastore. |
void |
delete(String mcrid)
The method remove a item for the MCRObjectID from the datastore. |
boolean |
exists(String mcrid)
This method check that the MCRObjectID exist in this store. |
int |
getHighestStoredID()
This method returns the highest stored ID number, or 0 if no object is stored for this type and project. |
void |
init(String type)
Reads the configuration and initializes the store. |
List<MCRObjectIDDate> |
listObjectDates(String type)
lists objects of the specified type and their last modified date. |
InputStream |
retrieve(String mcrid)
The method retrieve a dataset for the given MCRObjectID and returns the corresponding XML file as InputStream. |
List<String> |
retrieveAllIDs()
The method return a Array list with all stored MCRObjectID's of the XML table. |
void |
update(String mcrid,
byte[] xml,
Date lastModified)
The method update an item in the datastore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRObjectMetadataStoreIFS2()
| Method Detail |
|---|
public void init(String type)
init in interface MCRXMLTableInterfacetype - the MCRObjectID type
public void create(String mcrid,
byte[] xml,
Date lastModified)
MCRXMLTableInterface
create in interface MCRXMLTableInterfacemcrid - a MCRObjectIDxml - a byte array with the XML filepublic void delete(String mcrid)
MCRXMLTableInterface
delete in interface MCRXMLTableInterfacemcrid - a MCRObjectID
public void update(String mcrid,
byte[] xml,
Date lastModified)
MCRXMLTableInterface
update in interface MCRXMLTableInterfacemcrid - a MCRObjectIDxml - a byte array with the XML filepublic InputStream retrieve(String mcrid)
MCRXMLTableInterface
retrieve in interface MCRXMLTableInterfacemcrid - a MCRObjectIDpublic int getHighestStoredID()
MCRXMLTableInterface
getHighestStoredID in interface MCRXMLTableInterfacepublic boolean exists(String mcrid)
MCRXMLTableInterface
exists in interface MCRXMLTableInterfacemcrid - a MCRObjectID
public List<String> retrieveAllIDs()
MCRXMLTableInterface
retrieveAllIDs in interface MCRXMLTableInterfacepublic List<MCRObjectIDDate> listObjectDates(String type)
MCRXMLTableInterfacetype and their last modified date.
listObjectDates in interface MCRXMLTableInterfacetype - type of object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||