當前位置: 首頁>>代碼示例>>Java>>正文


Java IBackingRepositoryLifecycleManager類代碼示例

本文整理匯總了Java中org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager的典型用法代碼示例。如果您正苦於以下問題:Java IBackingRepositoryLifecycleManager類的具體用法?Java IBackingRepositoryLifecycleManager怎麽用?Java IBackingRepositoryLifecycleManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IBackingRepositoryLifecycleManager類屬於org.pentaho.platform.api.repository2.unified包,在下文中一共展示了IBackingRepositoryLifecycleManager類的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setApplicationContext

import org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager; //導入依賴的package包/類
@Override
public void setApplicationContext( final ApplicationContext applicationContext ) throws BeansException {
  SessionFactory jcrSessionFactory = (SessionFactory) applicationContext.getBean( "jcrSessionFactory" );
  testJcrTemplate = new JcrTemplate( jcrSessionFactory );
  testJcrTemplate.setAllowCreate( true );
  testJcrTemplate.setExposeNativeSession( true );
  repositoryAdminUsername = (String) applicationContext.getBean( "repositoryAdminUsername" );
  superAdminRoleName = (String) applicationContext.getBean( "superAdminAuthorityName" );
  sysAdminUserName = (String) applicationContext.getBean( "superAdminUserName" );
  tenantAuthenticatedRoleName = (String) applicationContext.getBean( "singleTenantAuthenticatedAuthorityName" );
  singleTenantAdminRoleName = (String) applicationContext.getBean( "singleTenantAdminAuthorityName" );
  tenantManager = (ITenantManager) applicationContext.getBean( "tenantMgrProxy" );
  roleBindingDaoTarget =
      (IRoleAuthorizationPolicyRoleBindingDao) applicationContext
          .getBean( "roleAuthorizationPolicyRoleBindingDaoTarget" );
  authorizationPolicy = (IAuthorizationPolicy) applicationContext.getBean( "authorizationPolicy" );
  repo = (IUnifiedRepository) applicationContext.getBean( "unifiedRepository" );
  userRoleDao = (IUserRoleDao) applicationContext.getBean( "userRoleDao" );
  repositoryFileDao = (IRepositoryFileDao) applicationContext.getBean( "repositoryFileDao" );
  testUserRoleDao = userRoleDao;
  repositoryLifecyleManager =
      (IBackingRepositoryLifecycleManager) applicationContext.getBean( "defaultBackingRepositoryLifecycleManager" );
  txnTemplate = (TransactionTemplate) applicationContext.getBean( "jcrTransactionTemplate" );
  TestPrincipalProvider.userRoleDao = testUserRoleDao;
  TestPrincipalProvider.adminCredentialsStrategy =
      (CredentialsStrategy) applicationContext.getBean( "jcrAdminCredentialsStrategy" );
  TestPrincipalProvider.repository = (Repository) applicationContext.getBean( "jcrRepository" );
}
 
開發者ID:pentaho,項目名稱:pentaho-kettle,代碼行數:29,代碼來源:PurRepositoryIT.java


注:本文中的org.pentaho.platform.api.repository2.unified.IBackingRepositoryLifecycleManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。