|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.datamodel.ifs.MCRFileMetadataManager
public class MCRFileMetadataManager
The single instance of this class is used by the other IFS classes to create, retrieve, update or delete the metadata of all MCRFilesystemNode objects in a persistent datastore. The manager holds a cache of all MCRFilesystemNodes most recently used. It creates the MCRFileMetadataStore instance as configured in the MyCoRe properties and hides its usage from the other classes. Configuration properties:
MCRFilesystemNode,
MCRFileMetadataStore| Method Summary | |
|---|---|
MCRFilesystemNode |
buildNode(String type,
String ID,
String parentID,
String ownerID,
String name,
String label,
long size,
GregorianCalendar date,
String storeID,
String storageID,
String fctID,
String md5,
int numchdd,
int numchdf,
int numchtd,
int numchtf)
Callback method for internal use by any MCRFileMetadataStore implementation, do not use. |
(package private) String |
createNodeID()
Creates a new, unique ID for each MCRFilesystemNode |
(package private) void |
deleteNode(String ID)
Deletes a MCRFilesystemNode in the persistent MCRFileMetadataStore. |
static MCRFileMetadataManager |
instance()
Returns the single instance of this class to use * |
MCRFilesystemNode |
retrieveChild(String parentID,
String name)
Retrieves a child node of a given MCRDirectory node. |
(package private) Vector |
retrieveChildrenIDs(String ID)
Retrieves a list of all IDs of the child MCRFilesystemNodes of a given MCRDirectory. |
(package private) MCRFilesystemNode |
retrieveNode(String ID)
Retrieves the MCRFilesystemNode with the given ID from the persistent MCRFileMetadataStore. |
(package private) MCRFilesystemNode |
retrieveRootNode(String ownerID)
Retrieves the first MCRFilesystemNode found in the persistent MCRFileMetadataStore, that has the given owner ID. |
(package private) void |
storeNode(MCRFilesystemNode node)
Creates or updates the data of the MCRFilesystemNode in the persistent MCRFileMetadataStore. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MCRFileMetadataManager instance()
String createNodeID()
void storeNode(MCRFilesystemNode node)
throws MCRPersistenceException
node - the MCRFilesystemNode to store
MCRPersistenceException
MCRFilesystemNode retrieveNode(String ID)
throws MCRPersistenceException
ID - the unique ID of the MCRFilesystemNode
MCRPersistenceException
MCRFilesystemNode retrieveRootNode(String ownerID)
throws MCRPersistenceException
ownerID - the ID of the owner of the MCRFilesystemNode to be retrieved
MCRPersistenceException
public MCRFilesystemNode retrieveChild(String parentID,
String name)
throws MCRPersistenceException
parentID - the ID of the parent MCRDirectoryname - the file name of the child in that directory
MCRPersistenceException
public MCRFilesystemNode buildNode(String type,
String ID,
String parentID,
String ownerID,
String name,
String label,
long size,
GregorianCalendar date,
String storeID,
String storageID,
String fctID,
String md5,
int numchdd,
int numchdf,
int numchtd,
int numchtf)
throws MCRPersistenceException
MCRPersistenceException
Vector retrieveChildrenIDs(String ID)
throws MCRPersistenceException
ID - the ID of the parent MCRDirectory
MCRPersistenceException
void deleteNode(String ID)
throws MCRPersistenceException
ID - the ID of the node to delete from the store
MCRPersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||