|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.metadata.MCRBase
org.mycore.datamodel.metadata.MCRDerivate
public final class MCRDerivate
This class implements all methode for handling one derivate object. Methodes of this class can read the XML metadata by using a XML parser, manipulate the data in the abstract persistence data store and return the XML stream to the user application.
| Field Summary |
|---|
| Fields inherited from class org.mycore.datamodel.metadata.MCRBase |
|---|
importMode, jdom_document, LOGGER, MAX_LABEL_LENGTH, mcr_conf, mcr_encoding, mcr_id, mcr_label, mcr_schema, mcr_service, mcr_version, NL, SLASH |
| Constructor Summary | |
|---|---|
MCRDerivate()
This is the constructor of the MCRDerivate class. |
|
| Method Summary | |
|---|---|
void |
createInDatastore()
The methode create the object in the data store. |
Document |
createXML()
This methode create a XML stream for all object data. |
void |
debug()
The method print all informations about this MCRObject. |
void |
deleteFromDatastore(String id)
The methode delete the object in the data store. |
static boolean |
existInDatastore(MCRObjectID id)
The methode return true if the derivate is in the data store, else return false. |
static boolean |
existInDatastore(String id)
The methode return true if the derivate is in the data store, else return false. |
MCRObjectDerivate |
getDerivate()
This methode return the instance of the MCRObjectDerivate class. |
boolean |
isValid()
This method check the validation of the content of this class. |
MCRDirectory |
receiveDirectoryFromIFS(String id)
The methode receive the multimedia object(s) for the given MCRObjectID and returned it as MCRDirectory. |
void |
receiveFromDatastore(MCRObjectID id)
The methode receive the derivate for the given MCRObjectID and stored it in this MCRDerivate |
void |
receiveFromDatastore(String id)
The methode receive the derivate for the given MCRObjectID and stored it in this MCRDerivate |
static byte[] |
receiveXMLFromDatastore(MCRObjectID id)
The methode receive the derivate for the given MCRObjectID and returned it as XML stream. |
static byte[] |
receiveXMLFromDatastore(String id)
The methode receive the derivate for the given MCRObjectID and returned it as XML stream. |
void |
repairPersitenceDatastore(MCRObjectID id)
The method updates the indexer of content. |
void |
repairPersitenceDatastore(String id)
The method updates the indexer of content. |
void |
setDerivate(MCRObjectDerivate derivate)
This methode set the object MCRObjectDerivate. |
void |
setFromURI(URI uri)
This methode read the XML input stream from an URI into a temporary DOM and check it with XSchema file. |
void |
setFromXML(byte[] xml,
boolean valid)
This methode read the XML input stream from a byte array into JDOM and check it with XSchema file. |
void |
updateInDatastore()
The methode update the object in the data store. |
void |
updateXMLInDatastore()
The methode update only the XML part of the object in the data store. |
| Methods inherited from class org.mycore.datamodel.metadata.MCRBase |
|---|
getId, getLabel, getSchema, getService, getVersion, isImportMode, setId, setImportMode, setLabel, setSchema, setService, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MCRDerivate()
throws MCRException,
MCRConfigurationException
MCRException - general Exception of MyCoRe
MCRConfigurationException - a special exception for configuartion data| Method Detail |
|---|
public final MCRObjectDerivate getDerivate()
public final void setFromURI(URI uri)
throws MCRException
setFromURI in class MCRBaseuri - an URI
MCRException - general Exception of MyCoRe
public final void setFromXML(byte[] xml,
boolean valid)
throws MCRException
setFromXML in class MCRBasexml - a XML string
MCRException - general Exception of MyCoRepublic final void setDerivate(MCRObjectDerivate derivate)
derivate - the object MCRObjectDerivate part
public final Document createXML()
throws MCRException
createXML in class MCRBaseMCRException - if the content of this class is not valid
public final void createInDatastore()
throws MCRPersistenceException
createInDatastore in class MCRBaseMCRPersistenceException - if a persistence problem is occured
public final void deleteFromDatastore(String id)
throws MCRPersistenceException
deleteFromDatastore in class MCRBaseid - the object ID
MCRPersistenceException - if a persistence problem is occured
public static final boolean existInDatastore(String id)
throws MCRPersistenceException
id - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public static final boolean existInDatastore(MCRObjectID id)
throws MCRPersistenceException
id - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public final void receiveFromDatastore(String id)
throws MCRPersistenceException
receiveFromDatastore in class MCRBaseid - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public final void receiveFromDatastore(MCRObjectID id)
throws MCRPersistenceException
id - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public static final byte[] receiveXMLFromDatastore(String id)
throws MCRPersistenceException
id - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public static final byte[] receiveXMLFromDatastore(MCRObjectID id)
throws MCRPersistenceException
id - the derivate ID
MCRPersistenceException - if a persistence problem is occured
public final MCRDirectory receiveDirectoryFromIFS(String id)
throws MCRPersistenceException
id - the object ID
MCRPersistenceException - if a persistence problem is occured
public final void updateInDatastore()
throws MCRPersistenceException
updateInDatastore in class MCRBaseMCRPersistenceException - if a persistence problem is occured
public final void updateXMLInDatastore()
throws MCRPersistenceException
MCRPersistenceException - if a persistence problem is occured
public final void repairPersitenceDatastore(String id)
throws MCRPersistenceException
repairPersitenceDatastore in class MCRBaseid - the MCRObjectID as string
MCRPersistenceException
public final void repairPersitenceDatastore(MCRObjectID id)
throws MCRPersistenceException
repairPersitenceDatastore in class MCRBaseid - the MCRObjectID
MCRPersistenceExceptionpublic final void debug()
public boolean isValid()
MCRBase
isValid in class MCRBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||