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


Java RepositoryService类代码示例

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


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

示例1: FavoritesData

import org.exoplatform.services.jcr.RepositoryService; //导入依赖的package包/类
@Inject
public FavoritesData(RepositoryService repositoryService, SessionProviderService sessionProviderService, NodeHierarchyCreator nodeHierarchyCreator)
{
  repositoryService_ = repositoryService;
  nodeHierarchyCreator_= nodeHierarchyCreator;
  sessionProviderService_ = sessionProviderService;
  initFavoritesFolder();
}
 
开发者ID:exo-addons,项目名称:portlet-pack,代码行数:9,代码来源:FavoritesData.java

示例2: getRepositoryName

import org.exoplatform.services.jcr.RepositoryService; //导入依赖的package包/类
private static String getRepositoryName() throws RepositoryException, RepositoryConfigurationException {
  RepositoryService service = (RepositoryService) ExoContainerContext.getCurrentContainer().getComponentInstanceOfType(RepositoryService.class);
  
  String repositoryName = service.getCurrentRepository().getConfiguration().getName();
  if (repositoryName == null || repositoryName.length() <= 0) {
    repositoryName = service.getDefaultRepository().getConfiguration().getName();
  }
  return repositoryName;
}
 
开发者ID:exosocial,项目名称:addons-social-activity-mongodb,代码行数:10,代码来源:ActivityMongoStorageImpl.java

示例3: getSession

import org.exoplatform.services.jcr.RepositoryService; //导入依赖的package包/类
private Session getSession() throws RepositoryException {
  PortalContainer container = PortalContainer.getInstance();
  RepositoryService repositoryService = (RepositoryService) container.getComponentInstance(RepositoryService.class);
  ManageableRepository repository = repositoryService.getCurrentRepository();
  return repository.getSystemSession("portal-test");
}
 
开发者ID:exosocial,项目名称:addons-social-activity-mongodb,代码行数:7,代码来源:AbstractCoreTest.java

示例4: UpgradeAddonNodeType

import org.exoplatform.services.jcr.RepositoryService; //导入依赖的package包/类
public UpgradeAddonNodeType(ThreadLocalSessionProviderService providerService, RepositoryService repoService,
                            DMSConfiguration dmsConfiguration, InitParams initParams) {

    this.repositoryService = repoService;

}
 
开发者ID:exo-addons,项目名称:marketplace-extension,代码行数:7,代码来源:UpgradeAddonNodeType.java


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