org.pentaho.platform.plugin.services.metadata
Class MetadataDomainRepository

java.lang.Object
  extended by org.pentaho.metadata.repository.FileBasedMetadataDomainRepository
      extended by org.pentaho.platform.plugin.services.metadata.MetadataDomainRepository
All Implemented Interfaces:
org.pentaho.metadata.repository.IMetadataDomainRepository
Direct Known Subclasses:
MetadataDomainRepositoryTestWrapper, SecurityAwareMetadataDomainRepository

public class MetadataDomainRepository
extends org.pentaho.metadata.repository.FileBasedMetadataDomainRepository

This is the platform implementation of the IMetadataDomainRepository. TODO: Update this class to use CacheControl, getting created per session per Marc's input

Author:
Will Gorman (wgorman@pentaho.com)

Field Summary
static int[] ACCESS_TYPE_MAP
           
static String PROPERTIES_FILE_EXTENSION
           
 
Fields inherited from interface org.pentaho.metadata.repository.IMetadataDomainRepository
ACCESS_TYPE_ADMIN, ACCESS_TYPE_DELETE, ACCESS_TYPE_READ, ACCESS_TYPE_SCHEMA_ADMIN, ACCESS_TYPE_UPDATE, ACCESS_TYPE_WRITE
 
Constructor Summary
MetadataDomainRepository()
           
 
Method Summary
 org.pentaho.metadata.model.Domain getDomain(String id)
           
 Set<String> getDomainIds()
           
 IPentahoSession getSession()
           
 void reloadDomains()
           
 void removeDomain(String domainId)
           
 void storeDomain(org.pentaho.metadata.model.Domain domain, boolean overwrite)
           
 
Methods inherited from class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository
flushDomains, generateRowLevelSecurityConstraint, hasAccess, removeModel, setDomainFolder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTIES_FILE_EXTENSION

public static String PROPERTIES_FILE_EXTENSION

ACCESS_TYPE_MAP

public static final int[] ACCESS_TYPE_MAP
Constructor Detail

MetadataDomainRepository

public MetadataDomainRepository()
Method Detail

getSession

public IPentahoSession getSession()

getDomainIds

public Set<String> getDomainIds()
Specified by:
getDomainIds in interface org.pentaho.metadata.repository.IMetadataDomainRepository
Overrides:
getDomainIds in class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository

reloadDomains

public void reloadDomains()
Specified by:
reloadDomains in interface org.pentaho.metadata.repository.IMetadataDomainRepository
Overrides:
reloadDomains in class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository

removeDomain

public void removeDomain(String domainId)
Specified by:
removeDomain in interface org.pentaho.metadata.repository.IMetadataDomainRepository
Overrides:
removeDomain in class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository

getDomain

public org.pentaho.metadata.model.Domain getDomain(String id)
Specified by:
getDomain in interface org.pentaho.metadata.repository.IMetadataDomainRepository
Overrides:
getDomain in class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository

storeDomain

public void storeDomain(org.pentaho.metadata.model.Domain domain,
                        boolean overwrite)
                 throws org.pentaho.metadata.repository.DomainIdNullException,
                        org.pentaho.metadata.repository.DomainAlreadyExistsException,
                        org.pentaho.metadata.repository.DomainStorageException
Specified by:
storeDomain in interface org.pentaho.metadata.repository.IMetadataDomainRepository
Overrides:
storeDomain in class org.pentaho.metadata.repository.FileBasedMetadataDomainRepository
Throws:
org.pentaho.metadata.repository.DomainIdNullException
org.pentaho.metadata.repository.DomainAlreadyExistsException
org.pentaho.metadata.repository.DomainStorageException