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


Java Session类代码示例

本文整理汇总了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);
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:9,代码来源:SpringEntityManagerSessionFactory.java

示例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);
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:9,代码来源:GenericManagerFactory.java

示例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);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:8,代码来源:SpringEntityManagerSessionFactory.java

示例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);
  }
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:8,代码来源:GenericManagerFactory.java

示例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;
    }
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:15,代码来源:BPSGroupManagerFactory.java

示例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;
    }
}
 
开发者ID:wso2,项目名称:carbon-business-process,代码行数:11,代码来源:BPSUserManagerFactory.java

示例7: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
    return groupEntityManager;
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:4,代码来源:CustomGroupEntityManagerFactory.java

示例8: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
    // 返回自定义的GroupEntityManager实例
    return customGroupEntityManager;
}
 
开发者ID:hs-web,项目名称:hsweb-framework,代码行数:6,代码来源:CustomGroupEntityManagerFactory.java

示例9: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
    return customUserEntityManager;
}
 
开发者ID:hs-web,项目名称:hsweb-framework,代码行数:5,代码来源:CustomUserEntityManagerFactory.java

示例10: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
	// 返回自定义的GroupEntityManager实例
	return actUserEntityService;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:5,代码来源:ActUserEntityServiceFactory.java

示例11: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
	// 返回自定义的GroupEntityManager实例
	return actGroupEntityService;
}
 
开发者ID:EleTeam,项目名称:Shop-for-JavaWeb,代码行数:5,代码来源:ActGroupEntityServiceFactory.java

示例12: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
@Override
public Session openSession() {
    return new MidPointUserManager();
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:5,代码来源:MidPointUserManagerFactory.java

示例13: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
	return new UserEntityManagerImpl();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:4,代码来源:UserEntityManagerFactory.java

示例14: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
	return new GroupEntityManagerImpl();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:4,代码来源:GroupEntityManagerFactory.java

示例15: openSession

import org.activiti.engine.impl.interceptor.Session; //导入依赖的package包/类
public Session openSession() {
	return new MembershipEntityManagerImpl();
}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:4,代码来源:MembershipEntityManagerFactory.java


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