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


Java VirtualStore类代码示例

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


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

示例1: asFileInfos

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public List<FileInfo> asFileInfos(List<Reference> references, VirtualStore smartStore,
            ActualEnvironment environment) throws VirtualizationException
{
    List<FileInfo> fileInfos = new LinkedList<>();
    for (Reference reference : references)
    {

        FileInfo fileInfo = asFileInfo(smartStore,
                                       environment,
                                       reference);

        fileInfos.add(fileInfo);
    }

    return fileInfos;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:17,代码来源:VirtualFileFolderServiceExtension.java

示例2: asFileInfo

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public FileInfo asFileInfo(VirtualStore smartStore, ActualEnvironment environment, Reference reference)
            throws VirtualizationException
{
    Map<QName, Serializable> properties = smartStore.getProperties(reference);
    QName qNameType = smartStore.getType(reference);
    FileFolderServiceType type = getTrait().getType(qNameType);

    boolean isFolder = type.equals(FileFolderServiceType.FOLDER);

    NodeRef nodeRef = reference.toNodeRef();

    return getTrait().createFileInfo(nodeRef,
                                     qNameType,
                                     isFolder,
                                     false,
                                     properties);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:18,代码来源:VirtualFileFolderServiceExtension.java

示例3: establishPermisisonAdherence

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
private NodeRef establishPermisisonAdherence(Reference reference)
{
    NodeRef nodeToAdhereTo = smartStore.adhere(reference,
                                               VirtualStore.FILING_OR_MATERIAL_ADHERENCE);
    if (logger.isDebugEnabled())
    {
        if (nodeToAdhereTo == null)
        {
            logger.debug("Could not establish permission adherence for " + reference.toString());
        }
    }

    return nodeToAdhereTo;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:VirtualPermissionServiceExtension.java

示例4: setUp

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
@Before
public void setUp() throws Exception
{
    // TODO:is the store really needed when testing node service ? why ?
    super.setUp();
    smartStore = ctx.getBean("smartStore",
                               VirtualStore.class);
    downloadStorage = ctx.getBean("downloadStorage",
                                  DownloadStorage.class);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:11,代码来源:VirtualNodeServiceExtensionTest.java

示例5: setUp

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
@Override
protected void setUp() throws Exception
{
    // TODO:is the store really needed when testing node service ? why ?
    super.setUp();
    smartStore = ctx.getBean("smartStore",
                               VirtualStore.class);
    downloadStorage = ctx.getBean("downloadStorage",
                                  DownloadStorage.class);
}
 
开发者ID:Alfresco,项目名称:community-edition-old,代码行数:11,代码来源:VirtualNodeServiceExtensionTest.java

示例6: setSmartStore

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public void setSmartStore(VirtualStore smartStore)
{
    this.smartStore = smartStore;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:5,代码来源:VirtualRatingServiceExtension.java

示例7: GetPathMethod

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public GetPathMethod(VirtualStore smartStore, ActualEnvironment actualEnvironment)
{
    super();
    this.smartStore = smartStore;
    this.environment = actualEnvironment;
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:7,代码来源:GetPathMethod.java

示例8: asFileInfoResults

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public PagingResults<FileInfo> asFileInfoResults(ActualEnvironment environment,
            final PagingResults<Reference> results, VirtualStore store)
                        throws ReferenceEncodingException, VirtualizationException
{

    List<Reference> virtualPage = results.getPage();

    final LinkedList<FileInfo> page = new LinkedList<FileInfo>();

    for (Reference ref : virtualPage)
    {

        FileInfo fileInfo = asFileInfo(store,
                                       environment,
                                       ref);
        page.add(fileInfo);
    }

    final boolean hasMoreItems = results.hasMoreItems();
    final Pair<Integer, Integer> totalResultCount = results.getTotalResultCount();
    final String queryExecutionId = results.getQueryExecutionId();

    return new PagingResults<FileInfo>()
    {

        @Override
        public List<FileInfo> getPage()
        {
            return page;
        }

        @Override
        public String getQueryExecutionId()
        {
            return queryExecutionId;
        }

        @Override
        public Pair<Integer, Integer> getTotalResultCount()
        {
            return totalResultCount;
        }

        @Override
        public boolean hasMoreItems()
        {
            return hasMoreItems;
        }
    };
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:51,代码来源:VirtualFileFolderServiceExtension.java

示例9: getSmartStore

import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
protected VirtualStore getSmartStore()
{
    return smartStore;
}
 
开发者ID:Alfresco,项目名称:alfresco-remote-api,代码行数:5,代码来源:NodesImpl.java


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