• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ScopeType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.jboss.seam.ScopeType的典型用法代码示例。如果您正苦于以下问题:Java ScopeType类的具体用法?Java ScopeType怎么用?Java ScopeType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ScopeType类属于org.jboss.seam包,在下文中一共展示了ScopeType类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: initUmaMetadataConfiguration

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value ="umaMetadataConfiguration", scope=ScopeType.APPLICATION, autoCreate = true)
public UmaConfiguration initUmaMetadataConfiguration() throws OxIntializationException {
	String umaConfigurationEndpoint = getUmaConfigurationEndpoint();
	if (StringHelper.isEmpty(umaConfigurationEndpoint)) {
		return null;
	}

       UmaConfigurationService metaDataConfigurationService = UmaClientFactory.instance().createMetaDataConfigurationService(umaConfigurationEndpoint);
	UmaConfiguration metadataConfiguration = metaDataConfigurationService.getMetadataConfiguration();

       if (metadataConfiguration == null) {
		throw new OxIntializationException("UMA meta data configuration is invalid!");
       }
       
       return metadataConfiguration;
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:17,代码来源:AppInitializer.java


示例2: authenticate

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Transactional
public boolean authenticate()
{
   // Tests that the SFSB can be obtained in both ContextualHttpRequests (authentication and web service invocation)
   TestEjbLocal ejb = (TestEjbLocal) Component.getInstance("securedEjb", ScopeType.EVENT);
   ejb.foo();
   
   log.debug("Authenticating username/password: " + credentials.getUsername() + "/" + credentials.getPassword());
   if (credentials.getUsername().equals(credentials.getPassword())) {
      log.info("Authenticated {0}", credentials.getUsername());
      
      if (credentials.getUsername().equals("admin")) {
         identity.addRole("admin");
         log.info("Admin rights granted for {0}", credentials.getUsername());
      }
      log.debug("Authentication valid");
      return true;
   } else {
      log.debug("Authentication invalid");
      return false;
   }
}
 
开发者ID:windup,项目名称:windup-rulesets,代码行数:23,代码来源:TestAuthenticator.java


示例3: createLdapEntryManager

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value = LDAP_ENTRY_MANAGER_NAME, scope = ScopeType.APPLICATION, autoCreate = true)
public LdapEntryManager createLdapEntryManager() {
	LdapConnectionService connectionProvider = (LdapConnectionService) Contexts.getApplicationContext().get("connectionProvider");
	LdapEntryManager ldapEntryManager = new LdapEntryManager(new OperationsFacade(connectionProvider));
	log.debug("Created site LdapEntryManager: " + ldapEntryManager);

	return ldapEntryManager;
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:9,代码来源:AppInitializer.java


示例4: createCentralLdapEntryManager

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value = LDAP_CENTRAL_ENTRY_MANAGER_NAME, scope = ScopeType.APPLICATION, autoCreate = true)
public LdapEntryManager createCentralLdapEntryManager() {
	LdapConnectionService centralConnectionProvider = (LdapConnectionService) Contexts.getApplicationContext().get("centralConnectionProvider");
	if (centralConnectionProvider == null) {
		return null;
	}
	log.debug("Created central LdapEntryManager: " + centralConnectionProvider);

	LdapEntryManager centralLdapEntryManager = new LdapEntryManager(new OperationsFacade(centralConnectionProvider));
	log.debug("Created central LdapEntryManager: " + centralLdapEntryManager);

	return centralLdapEntryManager;
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:14,代码来源:AppInitializer.java


示例5: createLdapAuthEntryManager

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value = "ldapAuthEntryManager", scope = ScopeType.APPLICATION, autoCreate = true)
public LdapEntryManager createLdapAuthEntryManager() {
	LdapConnectionService connectionProvider = (LdapConnectionService) Contexts.getApplicationContext().get("authConnectionProvider");
	LdapEntryManager ldapAuthEntryManager = new LdapEntryManager(new OperationsFacade(connectionProvider, null));
	// LDAP_ENTRY_MANAGER_NAME.addDeleteSubscriber(new
	// LdifArchiver(LDAP_ENTRY_MANAGER_NAME));
	log.debug("Created site LdapAuthEntryManager: " + ldapAuthEntryManager);

	return ldapAuthEntryManager;
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:11,代码来源:AppInitializer.java


示例6: createTransactionContext

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value="transactionContext",autoCreate=true,scope=ScopeType.APPLICATION)
public ThreadLocal<TransactionContext> createTransactionContext() {
    return new ThreadLocal<TransactionContext>() {

        @Override
        protected TransactionContext initialValue() {
            TransactionContext context = new TransactionContext();
            log.debug("Starting transaction " + context.transactionId);
            return context;
        }
    };
}
 
开发者ID:workplacesystems,项目名称:queuj,代码行数:13,代码来源:SeamTransaction.java


示例7: createQuizSession

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value = "quizSession", scope = ScopeType.EVENT)
public QuizSessionBean createQuizSession() {

	return this;
}
 
开发者ID:play4science,项目名称:gwap,代码行数:6,代码来源:QuizSessionBean.java


示例8: getSearchPattern

import org.jboss.seam.ScopeType; //导入依赖的package包/类
@Factory(value="pattern", scope=ScopeType.EVENT)
public String getSearchPattern()
{
   return searchString==null ? 
         "%" : '%' + searchString.toLowerCase().replace('*', '%') + '%';
}
 
开发者ID:windup,项目名称:windup,代码行数:7,代码来源:HotelSearchingAction.java


示例9: getScopeTypes

import org.jboss.seam.ScopeType; //导入依赖的package包/类
/**
 * Get all available scope types
 * 
 * @return Array of scope types
 */
public org.xdi.oxauth.model.common.ScopeType[] getScopeTypes() {
	return org.xdi.oxauth.model.common.ScopeType.values();
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:9,代码来源:ScopeService.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java PipelineStage类代码示例发布时间:2022-05-22
下一篇:
Java ValueAggregatorJob类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap