本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例6: setSmartStore
import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public void setSmartStore(VirtualStore smartStore)
{
this.smartStore = smartStore;
}
示例7: GetPathMethod
import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
public GetPathMethod(VirtualStore smartStore, ActualEnvironment actualEnvironment)
{
super();
this.smartStore = smartStore;
this.environment = actualEnvironment;
}
示例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;
}
};
}
示例9: getSmartStore
import org.alfresco.repo.virtual.store.VirtualStore; //导入依赖的package包/类
protected VirtualStore getSmartStore()
{
return smartStore;
}