本文整理汇总了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();
}
示例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;
}
示例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");
}
示例4: UpgradeAddonNodeType
import org.exoplatform.services.jcr.RepositoryService; //导入依赖的package包/类
public UpgradeAddonNodeType(ThreadLocalSessionProviderService providerService, RepositoryService repoService,
DMSConfiguration dmsConfiguration, InitParams initParams) {
this.repositoryService = repoService;
}