1 17 18 19 20 package org.apache.lenya.cms.publication; 21 22 public interface SiteTree { 23 24 public static final String NAMESPACE_URI = "http://apache.org/cocoon/lenya/sitetree/1.0"; 25 26 35 void addNode(String parentid, String id, Label[] labels, boolean visibleInNav) 36 throws SiteTreeException; 37 38 51 void addNode( 52 String parentid, 53 String id, 54 Label[] labels, 55 boolean visibleInNav, 56 String href, 57 String suffix, 58 boolean link) 59 throws SiteTreeException; 60 61 75 void addNode( 76 String parentid, 77 String id, 78 Label[] labels, 79 boolean visibleInNav, 80 String href, 81 String suffix, 82 boolean link, 83 String refDocumentId) 84 throws SiteTreeException; 85 86 99 void addNode( 100 String documentid, 101 Label[] labels, 102 boolean visibleInNav, 103 String href, 104 String suffix, 105 boolean link) 106 throws SiteTreeException; 107 108 122 void addNode( 123 String documentid, 124 Label[] labels, 125 boolean visibleInNav, 126 String href, 127 String suffix, 128 boolean link, 129 String refDocumentId) 130 throws SiteTreeException; 131 132 144 void addNode(SiteTreeNode node) throws SiteTreeException; 145 146 159 void addNode(SiteTreeNode node, String refDocumentId) 160 throws SiteTreeException; 161 162 168 void addLabel(String documentId, Label label); 169 170 177 void setLabel(String documentId, Label label); 178 179 185 void removeLabel(String documentId, Label label); 186 187 196 SiteTreeNode removeNode(String documentId); 197 198 204 void deleteNode(String documentId) throws SiteTreeException; 205 206 214 SiteTreeNode getNode(String documentId); 215 216 220 SiteTreeNode[] getTopNodes(); 221 222 228 void moveUp(String documentid) throws SiteTreeException; 229 230 235 void moveDown(String documentid) throws SiteTreeException; 236 237 245 void copy(SiteTreeNode src, SiteTreeNode dst, String newId, String followingSibling) 246 throws SiteTreeException; 247 248 256 void move(SiteTreeNode src, SiteTreeNode dst, String newId, String followingSibling) 257 throws SiteTreeException; 258 259 270 void importSubtree( 271 SiteTreeNode subtreeRoot, 272 SiteTreeNode newParent, 273 String newid, 274 String refDocumentId) 275 throws SiteTreeException; 276 277 282 void save() throws SiteTreeException; 283 } 284 | Popular Tags |