当前位置: 首页>>代码示例>>Java>>正文


Java PentahoSessionHolder.setStrategyName方法代码示例

本文整理汇总了Java中org.pentaho.platform.engine.core.system.PentahoSessionHolder.setStrategyName方法的典型用法代码示例。如果您正苦于以下问题:Java PentahoSessionHolder.setStrategyName方法的具体用法?Java PentahoSessionHolder.setStrategyName怎么用?Java PentahoSessionHolder.setStrategyName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.platform.engine.core.system.PentahoSessionHolder的用法示例。


在下文中一共展示了PentahoSessionHolder.setStrategyName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@Before
public void setUp() throws Exception {
  this.testContextManager = new TestContextManager( getClass() );
  this.testContextManager.prepareTestInstance( this );

  KettleEnvironment.init();
  PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_GLOBAL );

  mockVersionManager();
  removePentahoRootFolder();
  startMicroPlatform();

  createSystemUser();
  createTester();

  createPurRepository();
  loginAsTester();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:19,代码来源:PurRepositoryTestBase.java

示例2: tearDown

import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@After
public void tearDown() throws Exception {
  cleanupUserAndRoles( testingTenant );
  cleanupUserAndRoles( systemTenant );

  unifiedRepository = null;
  purRepository = null;
  superAdminRole = repositoryAdmin = systemAdmin = tenantAdminRole = tenantAuthenticatedRole = null;
  tenantManager = null;
  userRoleDao = null;
  authorizationPolicy = null;
  roleBindingDaoTarget = null;
  testJcrTemplate = null;
  repositoryFileDao = null;
  txnTemplate = null;
  systemTenant = testingTenant = null;

  mp.stop();
  mp = null;

  JcrRepositoryFileUtils.setRepositoryVersionManager( existingVersionManager );
  PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_INHERITABLETHREADLOCAL );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:24,代码来源:PurRepositoryTestBase.java

示例3: setUpClass

import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@BeforeClass
public static void setUpClass() throws Exception {
  System.out.println( "Repository: "
      + PurRepositoryIT.class.getClassLoader().getResource( "repository.spring.xml" ).getPath() );

  // folder cannot be deleted at teardown shutdown hooks have not yet necessarily completed
  // parent folder must match jcrRepository.homeDir bean property in repository-test-override.spring.xml
  FileUtils.deleteDirectory( new File( "/tmp/jackrabbit-test-TRUNK" ) );
  PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_GLOBAL );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:PurRepositoryIT.java

示例4: setUpClass

import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@BeforeClass
public static void setUpClass() throws Exception {
  System.out.println( "Repository: "
      + UIEERepositoryDirectoryIT.class.getClassLoader().getResource( "repository.spring.xml" ).getPath() );

  // folder cannot be deleted at teardown shutdown hooks have not yet necessarily completed
  // parent folder must match jcrRepository.homeDir bean property in repository-test-override.spring.xml
  FileUtils.deleteDirectory( new File( "/tmp/jackrabbit-test-TRUNK" ) );
  PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_GLOBAL );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:11,代码来源:UIEERepositoryDirectoryIT.java

示例5: tearDownClass

import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@AfterClass
public static void tearDownClass() throws Exception {
  PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_INHERITABLETHREADLOCAL );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:5,代码来源:PurRepositoryIT.java


注:本文中的org.pentaho.platform.engine.core.system.PentahoSessionHolder.setStrategyName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。