Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
Description
Suggestion from Bart:
public SortableDocumentsProvider(JcrNodeModel model) {
this.folder = new Folder(model);
setSort("name", true);
resources = folder.getSubFoldersAndDocuments();
Folder parentFolder = folder.getParentFolder();
if (parentFolder != null)
}
public Iterator<NodeModelWrapper> iterator(int first, int count)
{ sortResources(); List<NodeModelWrapper> list = Collections.unmodifiableList(resources.subList(first, first + count)); return list.iterator(); }public IModel model(Object object)
{ return (NodeModelWrapper) object; }public int size()
{ return resources.size(); }