本文整理匯總了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" );
}