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


Java TypeMappingService类代码示例

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


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

示例1: mostViewedItems

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
@Override
public List<RankedItemVO<Integer, String>> mostViewedItems(Integer tenant, String itemType,
                                                           Integer cluster, Integer numberOfResults,
                                                           TimeConstraintVO timeRange,
                                                           Boolean sortDescending) {
    if (cluster == null) {
        return typedActionDAO
            .getRankedItemsByActionType(tenant, TypeMappingService.ACTION_TYPE_VIEW, itemType, numberOfResults,
                    timeRange, sortDescending);
    } else {
        return typedActionDAO
                .getRankedItemsByActionTypeAndCluster(tenant, TypeMappingService.ACTION_TYPE_VIEW, cluster,
                        itemType, numberOfResults,
                        timeRange, sortDescending);
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:17,代码来源:DomainActionServiceImpl.java

示例2: mostSearchedItems

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
@Override
public List<RankedItemVO<Integer, String>> mostSearchedItems(Integer tenant, String itemType,
                                                             Integer cluster, Integer numberOfResults,
                                                             TimeConstraintVO timeRange,
                                                             Boolean sortDescending) {

    if (cluster == null) {
        return typedActionDAO
            .getRankedItemsByActionType(tenant, TypeMappingService.ACTION_TYPE_SEARCH, itemType, numberOfResults,
                    timeRange, sortDescending);
    } else {
        return typedActionDAO
                .getRankedItemsByActionTypeAndCluster(tenant, TypeMappingService.ACTION_TYPE_SEARCH, cluster, itemType, numberOfResults,
                        timeRange, sortDescending);
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:17,代码来源:DomainActionServiceImpl.java

示例3: ProfileServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public ProfileServiceImpl(ProfileDAO profileDAO,
                          String docBuilderFactory, IDMappingDAO idMappingDAO, TypeMappingService typeMappingService) {

    this.profileDAO = profileDAO;
    this.idMappingDAO = idMappingDAO;
    this.typeMappingService = typeMappingService;
    if (docBuilderFactory != null)
        System.setProperty("javax.xml.parsers.DocumentBuilderFactory", docBuilderFactory);
    dbf = DocumentBuilderFactory.newInstance();
    dbf.setNamespaceAware(true);
    sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    if (logger.isDebugEnabled()) {
        logger.debug("DocumentBuilderFactory: " + dbf.getClass().getName());
        ClassLoader cl = Thread.currentThread().getContextClassLoader().getSystemClassLoader();
        URL url = cl.getResource("org/apache/xerces/jaxp/DocumentBuilderFactoryImpl.class");
        logger.debug("Parser loaded from: " + url);
    }

    TransformerFactory tf = TransformerFactory.newInstance();
    try {
        trans = tf.newTransformer();
        trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
    } catch (Exception e) {
        logger.warn("An error occurred!", e);
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:27,代码来源:ProfileServiceImpl.java

示例4: TypedRecommendedItemDAOMysqlImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public TypedRecommendedItemDAOMysqlImpl(DataSource dataSource, RecommendedItemDAO recommendedItemDAO,
                                        TypeMappingService typeMappingService, SqlScriptService sqlScriptService) {
    super(sqlScriptService);
    setDataSource(dataSource);
    this.recommendedItemDAO = recommendedItemDAO;
    this.typeMappingService = typeMappingService;

    // output connection information
    if (logger.isInfoEnabled()) {
        try {
            logger.info(DaoUtils.getDatabaseURLAndUserName(dataSource));
        } catch (Exception e) {
            logger.error(e);
        }
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:17,代码来源:TypedRecommendedItemDAOMysqlImpl.java

示例5: TypedActionDAOMysqlImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public TypedActionDAOMysqlImpl(DataSource dataSource, ActionDAO actionDAO, TypeMappingService typeMappingService,
                               SqlScriptService sqlScriptService) {
    super(sqlScriptService);
    setDataSource(dataSource);
    this.actionDAO = actionDAO;
    this.typeMappingService = typeMappingService;

    // output connection information
    if (logger.isInfoEnabled()) {
        try {
            logger.info(DaoUtils.getDatabaseURLAndUserName(dataSource));
        } catch (Exception e) {
            logger.error(e);
        }
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:17,代码来源:TypedActionDAOMysqlImpl.java

示例6: TypedItemAssocDAOMysqlImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public TypedItemAssocDAOMysqlImpl(DataSource dataSource, ItemAssocDAO itemAssocDAO,
                                  TypeMappingService typeMappingService, SqlScriptService sqlScriptService) {
    super(sqlScriptService);
    setDataSource(dataSource);
    this.itemAssocDAO = itemAssocDAO;
    this.typeMappingService = typeMappingService;

    // output connection information
    if (logger.isInfoEnabled()) {
        try {
            logger.info(DaoUtils.getDatabaseURLAndUserName(dataSource));
        } catch (Exception e) {
            logger.error(e);
        }
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:17,代码来源:TypedItemAssocDAOMysqlImpl.java

示例7: TypedRecommendationDAOMysqlImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public TypedRecommendationDAOMysqlImpl(DataSource dataSource, RecommendationDAO recommendationDAO,
                                       RecommendedItemDAO recommendedItemDAO, TypeMappingService typeMappingService,
                                       SqlScriptService sqlScriptService) {
    super(sqlScriptService);
    setDataSource(dataSource);
    this.recommendationDAO = recommendationDAO;
    this.recommendedItemDAO = recommendedItemDAO;
    this.typeMappingService = typeMappingService;

    // output connection information
    if (logger.isInfoEnabled()) {
        try {
            logger.info(DaoUtils.getDatabaseURLAndUserName(dataSource));
        } catch (Exception e) {
            logger.error(e);
        }
    }
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:19,代码来源:TypedRecommendationDAOMysqlImpl.java

示例8: NamedConfigurationServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public NamedConfigurationServiceImpl(TypeMappingService typeMappingService, SourceTypeDAO sourceTypeDAO,
                                     PluginRegistry pluginRegistry, NamedConfigurationDAO namedConfigurationDAO,
                                     EasyRecSettings easyrecSettings, RemoteTenantDAO remoteTenantDAO,
                                     RemoteTenantService remoteTenantService,
                                     ShopRecommenderService shopRecommenderService,
                                     GeneratorContainer generatorContainer,
                                     JSONProfileServiceImpl jsonProfileService) {
    this.typeMappingService = typeMappingService;
    this.sourceTypeDAO = sourceTypeDAO;
    this.pluginRegistry = pluginRegistry;
    this.namedConfigurationDAO = namedConfigurationDAO;
    this.easyrecSettings = easyrecSettings;
    this.remoteTenantDAO = remoteTenantDAO;
    this.remoteTenantService = remoteTenantService;
    this.shopRecommenderService = shopRecommenderService;
    this.generatorContainer = generatorContainer;
    this.jsonProfileService = jsonProfileService;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:19,代码来源:NamedConfigurationServiceImpl.java

示例9: PearsonServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public PearsonServiceImpl(final Settings settings, final WeightDAO weightDao, final UserAssocDAO userAssocDao,
                          final UserDAO userDao, final LatestActionDAO latestActionDao,
                          final TenantService tenantService, final TypeMappingService typeMappingService) {
    this.settings = settings;
    this.weightDao = weightDao;
    this.userAssocDao = userAssocDao;
    this.userDao = userDao;
    this.latestActionDao = latestActionDao;
    this.tenantService = tenantService;
    this.typeMappingService = typeMappingService;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:12,代码来源:PearsonServiceImpl.java

示例10: AggregatorServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public AggregatorServiceImpl(TypeMappingService typeMappingService, TenantService tenantService, AggregatorActionDAO aggregatorActionDAO, JSONProfileServiceImpl jsonProfileService, ItemDAO itemDAO, IDMappingDAO idMappingDAO, ItemTypeDAO itemTypeDAO, AggregatorLogEntryDAO logEntryDAO, ActionTypeDAO actionTypeDAO) {
    this.typeMappingService = typeMappingService;
    this.tenantService = tenantService;
    this.aggregatorActionDAO = aggregatorActionDAO;
    this.jsonProfileService = jsonProfileService;
    this.itemDAO = itemDAO;   
    this.idMappingDAO = idMappingDAO;
    this.itemTypeDAO = itemTypeDAO;
    this.logEntryDAO = logEntryDAO;
    this.actionTypeDAO = actionTypeDAO;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:12,代码来源:AggregatorServiceImpl.java

示例11: JSONProfileWebService

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public JSONProfileWebService(JSONProfileServiceImpl profileService, OperatorDAO operatorDAO, ObjectMapper objectMapper, TypeMappingService typeMappingService, ItemDAO itemDAO) {
    this.profileService = profileService;
    this.operatorDAO = operatorDAO;
    this.objectMapper = objectMapper;
    this.typeMappingService = typeMappingService;
    this.itemDAO = itemDAO;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:8,代码来源:JSONProfileWebService.java

示例12: AssocRuleMiningServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public AssocRuleMiningServiceImpl(TypeMappingService typeMappingService, TenantService tenantService,
                                  RuleminingActionDAO ruleminingActionDAO, RuleminingItemAssocDAO itemAssocDAO) {
    this.typeMappingService = typeMappingService;
    this.tenantService = tenantService;
    this.ruleminingActionDAO = ruleminingActionDAO;
    this.itemAssocDAO = itemAssocDAO;

}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:9,代码来源:AssocRuleMiningServiceImpl.java

示例13: SolrSimilarityServiceImpl

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
public SolrSimilarityServiceImpl(ItemTypeDAO itemTypeDAO, TypeMappingService typeMappingService, SolrItemDAO solrItemDAO, IDMappingDAO idMappingDAO, RuleminingItemAssocDAO itemAssocDAO) {
    this.itemTypeDAO = itemTypeDAO;
    this.typeMappingService = typeMappingService;
    this.solrItemDAO = solrItemDAO;
    this.idMappingDAO = idMappingDAO;
    this.itemAssocDAO = itemAssocDAO;
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:8,代码来源:SolrSimilarityServiceImpl.java

示例14: previewTrack

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
@Override
public void previewTrack(Integer tenant, Integer user, String sessionId, String ip, Integer trackId,
                         String description) {
    insertAction(new ActionVO<>(tenant, user, sessionId, ip,
            new ItemVO<>(tenant, trackId, TypeMappingService.ITEM_TYPE_TRACK),
            TypeMappingService.ACTION_TYPE_PREVIEW, null, description));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:8,代码来源:MusicActionServiceImpl.java

示例15: addTrackToPlaylist

import org.easyrec.service.domain.TypeMappingService; //导入依赖的package包/类
@Override
public void addTrackToPlaylist(Integer tenant, Integer user, String sessionId, String ip, Integer trackId,
                               String description) {
    insertAction(new ActionVO<>(tenant, user, sessionId, ip,
            new ItemVO<>(tenant, trackId, TypeMappingService.ITEM_TYPE_TRACK),
            TypeMappingService.ACTION_TYPE_ADD_TO_PLAYLIST, null, description));
}
 
开发者ID:major2015,项目名称:easyrec_major,代码行数:8,代码来源:MusicActionServiceImpl.java


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