Class 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
    • 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

      All Methods Instance Methods Concrete Methods 
      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 newTenant()  
      void newTenant​(org.pentaho.platform.api.mt.ITenant tenant)  
      void newUser()  
      void newUser​(org.pentaho.platform.api.mt.ITenant tenant, String username)  
      void shutdown()  
      void startup()  
      • Methods inherited from class org.pentaho.platform.repository2.unified.lifecycle.AbstractBackingRepositoryLifecycleManager

        addMetadataToRepository, doesMetadataExists, initTransactionTemplate
    • Field Detail

      • 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 Detail

      • 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 Detail

      • 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)