本文整理汇总了Java中org.activiti.engine.impl.interceptor.Session类的典型用法代码示例。如果您正苦于以下问题:Java Session类的具体用法?Java Session怎么用?Java Session使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Session类属于org.activiti.engine.impl.interceptor包,在下文中一共展示了Session类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
EntityManager entityManager = EntityManagerFactoryUtils.getTransactionalEntityManager(entityManagerFactory);
if (entityManager == null) {
return new EntityManagerSessionImpl(entityManagerFactory, handleTransactions, closeEntityManager);
}
return new EntityManagerSessionImpl(entityManagerFactory, entityManager, false, false);
}
示例2: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
try {
return managerImplementation.newInstance();
} catch (Exception e) {
throw new ActivitiException("couldn't instantiate " + managerImplementation.getName() + ": " + e.getMessage(), e);
}
}
示例3: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
EntityManager entityManager = EntityManagerFactoryUtils.getTransactionalEntityManager(entityManagerFactory);
if (entityManager == null) {
return new EntityManagerSessionImpl(entityManagerFactory, handleTransactions, closeEntityManager);
}
return new EntityManagerSessionImpl(entityManagerFactory, entityManager, false, false);
}
示例4: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
try {
return managerImplementation.newInstance();
} catch (Exception e) {
throw new ActivitiException("couldn't instantiate "+managerImplementation.getName()+": "+e.getMessage(), e);
}
}
示例5: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
try {
RegistryService registryService = BPMNServerHolder.getInstance().getRegistryService();
Integer tenantId = CarbonContext.getThreadLocalCarbonContext().getTenantId();
UserStoreManager userStoreManager = registryService.getUserRealm(tenantId).getUserStoreManager();
BPSGroupIdentityManager bpsGroupIdentityManager = new BPSGroupIdentityManager(userStoreManager);
return bpsGroupIdentityManager;
} catch (Exception e) {
String msg = "Failed to obtain a group identity manager.";
log.error(msg, e);
return null;
}
}
示例6: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
try {
return new BPSUserIdentityManager();
} catch (Exception e) {
String msg = "Failed to obtain an user identity manager.";
log.error(msg, e);
return null;
}
}
示例7: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
return groupEntityManager;
}
示例8: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
// 返回自定义的GroupEntityManager实例
return customGroupEntityManager;
}
示例9: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
return customUserEntityManager;
}
示例10: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
// 返回自定义的GroupEntityManager实例
return actUserEntityService;
}
示例11: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
// 返回自定义的GroupEntityManager实例
return actGroupEntityService;
}
示例12: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
return new MidPointUserManager();
}
示例13: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
return new UserEntityManagerImpl();
}
示例14: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
return new GroupEntityManagerImpl();
}
示例15: openSession
import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
return new MembershipEntityManagerImpl();
}