au.edu.archer.mde
Class MetadataStoreProviderImpl

java.lang.Object
  extended by au.edu.archer.mde.MetadataStoreProviderImpl
All Implemented Interfaces:
au.edu.archer.metadata.spi.MetadataStoreProvider

public class MetadataStoreProviderImpl
extends java.lang.Object
implements au.edu.archer.metadata.spi.MetadataStoreProvider

UQ Metadata Store Provider Implementation.


Constructor Summary
MetadataStoreProviderImpl()
           
 
Method Summary
 java.lang.String bind(org.w3c.dom.Document arg0)
          Not yet implemented.
 DDMService getDdmService()
          Get DDM service.
static MetadataStoreProviderImpl getInstance()
          Provider is implemented as a Singleton that persists records to a directory.
 java.io.File getRepositoryPath()
           
 java.lang.String[] list()
          Not yet implemented.
 org.w3c.dom.Document lookup(java.lang.String key)
          Retrieve variable metadata for an entity.
 void rebind(org.w3c.dom.Document metarecord, java.lang.String key)
          Persist metadata.
 void remove(java.lang.String arg0)
          Not yet implemented.
 void setDdmService(DDMService ddmService)
          Set DDMService.
 void setRepositoryPath(java.io.File repositoryPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataStoreProviderImpl

public MetadataStoreProviderImpl()
Method Detail

setDdmService

public void setDdmService(DDMService ddmService)
Set DDMService. Set by Spring Framework.

Parameters:
ddmService - ICATService object to set.

getDdmService

public DDMService getDdmService()
Get DDM service.

Returns:
DDMService reference.

getRepositoryPath

public java.io.File getRepositoryPath()
Returns:
the repositoryPath

setRepositoryPath

public void setRepositoryPath(java.io.File repositoryPath)
Parameters:
repositoryPath - the repositoryPath to set

getInstance

public static final MetadataStoreProviderImpl getInstance()
Provider is implemented as a Singleton that persists records to a directory.

Returns:
The Instance.

rebind

public void rebind(org.w3c.dom.Document metarecord,
                   java.lang.String key)
            throws au.edu.archer.metadata.spi.MetadataProviderException
Persist metadata.

Specified by:
rebind in interface au.edu.archer.metadata.spi.MetadataStoreProvider
Parameters:
metarecord - Document object.
key - UQ MDE key.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.

lookup

public org.w3c.dom.Document lookup(java.lang.String key)
                            throws au.edu.archer.metadata.spi.MetadataProviderException
Retrieve variable metadata for an entity.

Specified by:
lookup in interface au.edu.archer.metadata.spi.MetadataStoreProvider
Parameters:
key - Entity id.
Returns:
Document XML document containing entity parameters.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if exception occurs.

list

public java.lang.String[] list()
Not yet implemented.

Specified by:
list in interface au.edu.archer.metadata.spi.MetadataStoreProvider
Returns:
String array.

bind

public java.lang.String bind(org.w3c.dom.Document arg0)
                      throws au.edu.archer.metadata.spi.MetadataProviderException
Not yet implemented.

Specified by:
bind in interface au.edu.archer.metadata.spi.MetadataStoreProvider
Parameters:
arg0 - Document.
Returns:
String.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.

remove

public void remove(java.lang.String arg0)
            throws au.edu.archer.metadata.spi.MetadataProviderException
Not yet implemented.

Specified by:
remove in interface au.edu.archer.metadata.spi.MetadataStoreProvider
Parameters:
arg0 - String.
Throws:
au.edu.archer.metadata.spi.MetadataProviderException - if error occurs.


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