本文整理汇总了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();
}
示例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 );
}
示例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 );
}
示例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 );
}
示例5: tearDownClass
import org.pentaho.platform.engine.core.system.PentahoSessionHolder; //导入方法依赖的package包/类
@AfterClass
public static void tearDownClass() throws Exception {
PentahoSessionHolder.setStrategyName( PentahoSessionHolder.MODE_INHERITABLETHREADLOCAL );
}