au.edu.archer.mde
Class MDEUtil

java.lang.Object
  extended by au.edu.archer.mde.MDEUtil

public class MDEUtil
extends java.lang.Object

Utilility class for MetadataStoreProviderImpl.


Constructor Summary
MDEUtil()
           
 
Method Summary
static void doBindForCrystal(org.w3c.dom.Document metarecord, java.lang.String xdmsId, DDMService ddmService)
          Persist metadata values for Crystal.
static void doBindForDatafile(org.w3c.dom.Document metarecord, java.lang.String xdmsId, DDMService ddmService)
          Persist metadata values for Datafile.
static void doBindForDataset(org.w3c.dom.Document metarecord, java.lang.String xdmsId, DDMService ddmService)
          Persist metadata values for Dataset.
static org.w3c.dom.Document lookUpDatafileParameters(java.lang.String key, java.io.File repositoryPath, DDMService ddmService)
          Look up Datafile parameters.
static org.w3c.dom.Document lookUpDatasetParameters(java.lang.String key, java.io.File repositoryPath, DDMService ddmService)
          Look up Dataset parameters.
static org.w3c.dom.Document lookUpSampleParameters(java.lang.String key, java.io.File repositoryPath, DDMService ddmService)
          Look up sample parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDEUtil

public MDEUtil()
Method Detail

doBindForCrystal

public static void doBindForCrystal(org.w3c.dom.Document metarecord,
                                    java.lang.String xdmsId,
                                    DDMService ddmService)
                             throws au.edu.archer.metadata.spi.MetadataProviderException
Persist metadata values for Crystal.

Parameters:
metarecord - XML document received from UQ MDE.
xdmsId - xdms system id.
ddmService - DDMService reference.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.

doBindForDataset

public static void doBindForDataset(org.w3c.dom.Document metarecord,
                                    java.lang.String xdmsId,
                                    DDMService ddmService)
                             throws au.edu.archer.metadata.spi.MetadataProviderException
Persist metadata values for Dataset.

Parameters:
metarecord - XML document received from UQ MDE.
xdmsId - xdms system id.
ddmService - DDMService reference.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.

doBindForDatafile

public static void doBindForDatafile(org.w3c.dom.Document metarecord,
                                     java.lang.String xdmsId,
                                     DDMService ddmService)
                              throws au.edu.archer.metadata.spi.MetadataProviderException
Persist metadata values for Datafile.

Parameters:
metarecord - XML document received from UQ MDE.
xdmsId - xdms system id.
ddmService - DDMService reference.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.

lookUpSampleParameters

public static org.w3c.dom.Document lookUpSampleParameters(java.lang.String key,
                                                          java.io.File repositoryPath,
                                                          DDMService ddmService)
                                                   throws au.edu.archer.metadata.spi.MetadataProviderException
Look up sample parameters.

Parameters:
key - key.
repositoryPath - repositoryPath.
ddmService - DDMService.
Returns:
XML Document.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if lookp up fails.

lookUpDatasetParameters

public static org.w3c.dom.Document lookUpDatasetParameters(java.lang.String key,
                                                           java.io.File repositoryPath,
                                                           DDMService ddmService)
                                                    throws au.edu.archer.metadata.spi.MetadataProviderException
Look up Dataset parameters.

Parameters:
key - key.
repositoryPath - repositoryPath.
ddmService - DDMService.
Returns:
XML Document.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if lookp up fails.

lookUpDatafileParameters

public static org.w3c.dom.Document lookUpDatafileParameters(java.lang.String key,
                                                            java.io.File repositoryPath,
                                                            DDMService ddmService)
                                                     throws au.edu.archer.metadata.spi.MetadataProviderException
Look up Datafile parameters.

Parameters:
key - key.
repositoryPath - repositoryPath.
ddmService - DDMService.
Returns:
XML Document.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if lookp up fails.


Copyright © 2008-09 Monash University. All Rights Reserved.