Class SecurityAwarePentahoMetadataDomainRepository
java.lang.Object
org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository
org.pentaho.platform.plugin.services.metadata.SecurityAwarePentahoMetadataDomainRepository
- All Implemented Interfaces:
org.pentaho.metadata.repository.IMetadataDomainRepository
,IAclAwarePentahoMetadataDomainRepositoryImporter
,IDataSourceAwareMetadataDomainRepository
,IModelAnnotationsAwareMetadataDomainRepositoryImporter
,IPentahoMetadataDomainRepositoryExporter
,IPentahoMetadataDomainRepositoryImporter
This is the platform implementation which implements security. NOTE: this class will be moved after integration
testing
- Author:
- David Kincade
-
Field Summary
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
Fields inherited from interface org.pentaho.platform.plugin.services.metadata.IModelAnnotationsAwareMetadataDomainRepositoryImporter
ANNOTATIONS_FILE_ID_POSTFIX, PROPERTY_NAME_ANNOTATIONS
-
Constructor Summary
ConstructorDescriptionSecurityAwarePentahoMetadataDomainRepository
(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository) -
Method Summary
Modifier and TypeMethodDescriptiongenerateRowLevelSecurityConstraint
(org.pentaho.metadata.model.LogicalModel model) org.pentaho.platform.api.engine.IPentahoSession
boolean
hasAccess
(int accessType, org.pentaho.metadata.model.concept.IConcept aclHolder) The aclHolder cannot be null unless the access type requested is ACCESS_TYPE_SCHEMA_ADMIN.Methods inherited from class org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository
addDataSourceType, addLocalizationFile, addLocalizationFile, createOrUpdateAnnotationsXml, createUniqueFile, createUniqueFile, endsWithXmi, flushDomains, getAclFor, getAclHelper, getAnnotationsXmlFile, getDataSourceWizardDomainIds, getDomain, getDomainFilesData, getDomainIdFromXmi, getDomainIds, getFileMetadataHelper, getLocalizationUtil, getLogger, getMetadataDir, getMetadataDomainIds, getMetadataRepositoryFile, getRepository, getRepositoryUtils, getXmiParser, hasAccessFor, isDomainIdXmiEqualsOrNotPresent, loadAnnotationsXml, loadLocaleStrings, loadProperties, noXmi, reloadDomains, removeDomain, removeModel, replaceDomainId, resolveAnnotationsFilePath, setAclFor, setLocalizationUtil, setRepository, setRepositoryUtils, setXmiParser, storeAnnotationsXml, storeDomain, storeDomain, storeDomain, toString, updateFile
-
Field Details
-
ACCESS_TYPE_MAP
public static final int[] ACCESS_TYPE_MAP
-
-
Constructor Details
-
SecurityAwarePentahoMetadataDomainRepository
public SecurityAwarePentahoMetadataDomainRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
-
-
Method Details
-
getSession
public org.pentaho.platform.api.engine.IPentahoSession getSession() -
generateRowLevelSecurityConstraint
- Specified by:
generateRowLevelSecurityConstraint
in interfaceorg.pentaho.metadata.repository.IMetadataDomainRepository
- Overrides:
generateRowLevelSecurityConstraint
in classPentahoMetadataDomainRepository
-
hasAccess
public boolean hasAccess(int accessType, org.pentaho.metadata.model.concept.IConcept aclHolder) Description copied from class:PentahoMetadataDomainRepository
The aclHolder cannot be null unless the access type requested is ACCESS_TYPE_SCHEMA_ADMIN.- Specified by:
hasAccess
in interfaceorg.pentaho.metadata.repository.IMetadataDomainRepository
- Overrides:
hasAccess
in classPentahoMetadataDomainRepository
-