public class CachingPentahoMetadataDomainRepository extends PentahoMetadataDomainRepository
ACCESS_TYPE_ADMIN, ACCESS_TYPE_DELETE, ACCESS_TYPE_READ, ACCESS_TYPE_SCHEMA_ADMIN, ACCESS_TYPE_UPDATE, ACCESS_TYPE_WRITE
ANNOTATIONS_FILE_ID_POSTFIX, PROPERTY_NAME_ANNOTATIONS
Constructor and Description |
---|
CachingPentahoMetadataDomainRepository(IUnifiedRepository repository) |
CachingPentahoMetadataDomainRepository(IUnifiedRepository repository,
RepositoryUtils repositoryUtils,
org.pentaho.metadata.util.XmiParser xmiParser,
org.pentaho.metadata.util.LocalizationUtil localizationUtil) |
Modifier and Type | Method and Description |
---|---|
void |
flushDomains()
flush the domains from memory
|
org.pentaho.metadata.model.Domain |
getDomain(String domainId)
retrieve a domain from the repo.
|
Set<String> |
getDomainIds()
Returns a list of all the domain ids in the repository.
|
void |
reloadDomains()
reload domains from disk
|
void |
storeDomain(org.pentaho.metadata.model.Domain domain,
boolean overwrite)
Store a domain to the repository.
|
addLocalizationFile, addLocalizationFile, createOrUpdateAnnotationsXml, createUniqueFile, endsWithXmi, generateRowLevelSecurityConstraint, getAclFor, getAclHelper, getAnnotationsXmlFile, getDomainFilesData, getDomainIdFromXmi, getLocalizationUtil, getLogger, getMetadataDir, getMetadataRepositoryFile, getRepository, getRepositoryUtils, getXmiParser, hasAccess, hasAccessFor, isDomainIdXmiEqualsOrNotPresent, loadAnnotationsXml, loadLocaleStrings, loadProperties, noXmi, removeDomain, removeModel, replaceDomainId, resolveAnnotationsFilePath, setAclFor, setLocalizationUtil, setRepository, setRepositoryUtils, setXmiParser, storeAnnotationsXml, storeDomain, storeDomain, toString
public CachingPentahoMetadataDomainRepository(IUnifiedRepository repository)
repository
- public CachingPentahoMetadataDomainRepository(IUnifiedRepository repository, RepositoryUtils repositoryUtils, org.pentaho.metadata.util.XmiParser xmiParser, org.pentaho.metadata.util.LocalizationUtil localizationUtil)
repository
- repositoryUtils
- xmiParser
- localizationUtil
- 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
storeDomain
in interface org.pentaho.metadata.repository.IMetadataDomainRepository
storeDomain
in class PentahoMetadataDomainRepository
domain
- domain object to storeoverwrite
- if true, overwrite existing domainorg.pentaho.metadata.repository.DomainIdNullException
- if domain id is nullorg.pentaho.metadata.repository.DomainAlreadyExistsException
- if domain exists and overwrite = falseorg.pentaho.metadata.repository.DomainStorageException
- if there is a problem storing the domainpublic org.pentaho.metadata.model.Domain getDomain(String domainId)
getDomain
in interface org.pentaho.metadata.repository.IMetadataDomainRepository
getDomain
in class PentahoMetadataDomainRepository
domainId
- domain to get from the repositorypublic Set<String> getDomainIds()
getDomainIds
in interface org.pentaho.metadata.repository.IMetadataDomainRepository
getDomainIds
in class PentahoMetadataDomainRepository
public void reloadDomains()
reloadDomains
in interface org.pentaho.metadata.repository.IMetadataDomainRepository
reloadDomains
in class PentahoMetadataDomainRepository
public void flushDomains()
flushDomains
in interface org.pentaho.metadata.repository.IMetadataDomainRepository
flushDomains
in class PentahoMetadataDomainRepository
Copyright © 2017 Hitachi Vantara. All rights reserved.