本文整理汇总了Java中org.modeshape.jcr.federation.spi.PageKey类的典型用法代码示例。如果您正苦于以下问题:Java PageKey类的具体用法?Java PageKey怎么用?Java PageKey使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PageKey类属于org.modeshape.jcr.federation.spi包,在下文中一共展示了PageKey类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getChildren
import org.modeshape.jcr.federation.spi.PageKey; //导入依赖的package包/类
/**
* Return a document which represents a page of children. The document for
* the parent node should include as many children as desired, and then
* include a reference to the next page of children with the {{PageWriter#
* addPage(String, String, long, long)}} method. Each page returned by this
* method should also include a reference to the next page.
*
* @param pageKey a non-null {@link PageKey} instance, which offers
* information about the page that should be retrieved.
* @return either a non-null page document or {@code null} indicating that
* such a page doesn't exist
*/
@Override
public Document getChildren(final PageKey pageKey) {
final String parentId = pageKey.getParentId();
final File folder = fileFor(parentId);
assert folder.isDirectory();
if (!folder.canRead()) {
getLogger().debug("Cannot read the {0} folder",
folder.getAbsolutePath());
return null;
}
return newFolderWriter(parentId, folder, pageKey.getOffsetInt())
.document();
}
开发者ID:nigelgbanks,项目名称:fcrepo-filesystem-modeshape-federation-connector,代码行数:26,代码来源:FileSystemConnector.java
示例2: getChildren
import org.modeshape.jcr.federation.spi.PageKey; //导入依赖的package包/类
@Override
public Document getChildren(final PageKey arg0) {
// TODO Auto-generated method stub
return null;
}