1 16 package org.outerj.daisy.navigation.impl; 17 18 import org.outerj.daisy.repository.VariantKey; 19 import org.outerj.daisy.repository.RepositoryException; 20 import org.xml.sax.ContentHandler ; 21 import org.xml.sax.SAXException ; 22 23 import java.util.List ; 24 import java.util.Map ; 25 26 public interface Node { 27 35 void searchPath(String [] path, int pos, long branchId, long languageId, Node[] foundPath) throws RepositoryException; 36 37 List searchDocument(VariantKey document) throws RepositoryException; 38 39 46 void populateNodeLookupMap(Map map, String path) throws RepositoryException; 47 48 51 boolean checkId(String id, long branchId, long languageId) throws RepositoryException; 52 53 58 boolean isExpandable() throws RepositoryException; 59 60 66 List getExpandedChildList() throws RepositoryException; 67 68 void generateXml(ContentHandler contentHandler, Node[] activeNodePath, int pos, boolean contextualized, 69 String path, long userId, long[] roleIds) throws RepositoryException, SAXException ; 70 71 75 void generateXml(ContentHandler contentHandler, int depth, String path, long userId, long[] roleIds) throws RepositoryException, SAXException ; 76 77 81 boolean isIdentifiable() throws RepositoryException; 82 83 87 String getId() throws RepositoryException; 88 89 95 boolean isVisible(long userId, long[] roleIds, Node[] activeNodePath, int activeNodePathPos) throws RepositoryException; 96 97 public static final String NAVIGATION_NS = "http://outerx.org/daisy/1.0#navigation"; 98 } 99 | Popular Tags |