Class PentahoMetadataRepositoryLifecycleManager

java.lang.Object
org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager
org.pentaho.platform.plugin.services.metadata.PentahoMetadataRepositoryLifecycleManager
All Implemented Interfaces:
org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager

public class PentahoMetadataRepositoryLifecycleManager extends org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager
Initializes folders used by Pentaho Metadata
Author:
dkincade
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected org.pentaho.platform.repository2.unified.IRepositoryFileAclDao
     
    protected org.pentaho.platform.repository2.unified.IRepositoryFileDao
     
    protected String
     
    protected String
     

    Fields inherited from class org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager

    adminJcrTemplate, logger, pathConversionHelper, txnTemplate
  • Constructor Summary

    Constructors
    Constructor
    Description
    PentahoMetadataRepositoryLifecycleManager(org.pentaho.platform.repository2.unified.IRepositoryFileDao contentDao, org.pentaho.platform.repository2.unified.IRepositoryFileAclDao repositoryFileAclDao, org.springframework.transaction.support.TransactionTemplate txnTemplate, String repositoryAdminUsername, String tenantAuthenticatedAuthorityNamePattern, org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver userNameUtils, org.springframework.extensions.jcr.JcrTemplate adminJcrTemplate, org.pentaho.platform.repository2.unified.jcr.IPathConversionHelper pathConversionHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    createEtcMetadaFolder(org.pentaho.platform.api.mt.ITenant tenant)
     
    void
    doNewTenant(String tenantPath)
     
    protected org.pentaho.platform.api.repository2.unified.RepositoryFile
    internalCreateFolder(Serializable parentFolderId, org.pentaho.platform.api.repository2.unified.RepositoryFile file, boolean inheritAces, org.pentaho.platform.api.repository2.unified.RepositoryFileSid ownerSid, String versionMessage)
     
    protected org.pentaho.platform.api.repository2.unified.RepositoryFileAcl
    makeAcl(boolean inheritAces, org.pentaho.platform.api.repository2.unified.RepositoryFileSid ownerSid)
     
    void
     
    void
    newTenant(org.pentaho.platform.api.mt.ITenant tenant)
     
    void
     
    void
    newUser(org.pentaho.platform.api.mt.ITenant tenant, String username)
     
    void
     
    void
     

    Methods inherited from class org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager

    addMetadataToRepository, doesMetadataExists, initTransactionTemplate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • repositoryAdminUsername

      protected String repositoryAdminUsername
    • tenantAuthenticatedAuthorityNamePattern

      protected String tenantAuthenticatedAuthorityNamePattern
    • singleTenantAuthenticatedAuthorityName

      protected String singleTenantAuthenticatedAuthorityName
    • repositoryFileDao

      protected org.pentaho.platform.repository2.unified.IRepositoryFileDao repositoryFileDao
    • repositoryFileAclDao

      protected org.pentaho.platform.repository2.unified.IRepositoryFileAclDao repositoryFileAclDao
  • Constructor Details

    • PentahoMetadataRepositoryLifecycleManager

      public PentahoMetadataRepositoryLifecycleManager(org.pentaho.platform.repository2.unified.IRepositoryFileDao contentDao, org.pentaho.platform.repository2.unified.IRepositoryFileAclDao repositoryFileAclDao, org.springframework.transaction.support.TransactionTemplate txnTemplate, String repositoryAdminUsername, String tenantAuthenticatedAuthorityNamePattern, org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver userNameUtils, org.springframework.extensions.jcr.JcrTemplate adminJcrTemplate, org.pentaho.platform.repository2.unified.jcr.IPathConversionHelper pathConversionHelper)
  • Method Details

    • doNewTenant

      public void doNewTenant(String tenantPath)
    • startup

      public void startup()
    • shutdown

      public void shutdown()
    • newTenant

      public void newTenant(org.pentaho.platform.api.mt.ITenant tenant)
    • newTenant

      public void newTenant()
    • newUser

      public void newUser(org.pentaho.platform.api.mt.ITenant tenant, String username)
    • newUser

      public void newUser()
    • createEtcMetadaFolder

      protected void createEtcMetadaFolder(org.pentaho.platform.api.mt.ITenant tenant)
    • internalCreateFolder

      protected org.pentaho.platform.api.repository2.unified.RepositoryFile internalCreateFolder(Serializable parentFolderId, org.pentaho.platform.api.repository2.unified.RepositoryFile file, boolean inheritAces, org.pentaho.platform.api.repository2.unified.RepositoryFileSid ownerSid, String versionMessage)
    • makeAcl

      protected org.pentaho.platform.api.repository2.unified.RepositoryFileAcl makeAcl(boolean inheritAces, org.pentaho.platform.api.repository2.unified.RepositoryFileSid ownerSid)