1 17 package org.alfresco.service.cmr.view; 18 19 import java.io.InputStream ; 20 import java.util.Collection ; 21 22 import org.alfresco.service.cmr.repository.ContentData; 23 import org.alfresco.service.cmr.repository.NodeRef; 24 import org.alfresco.service.cmr.security.AccessPermission; 25 import org.alfresco.service.namespace.QName; 26 27 28 34 public interface Exporter 35 { 36 39 public void start(ExporterContext context); 40 41 47 public void startNamespace(String prefix, String uri); 48 49 54 public void endNamespace(String prefix); 55 56 61 public void startNode(NodeRef nodeRef); 62 63 68 public void endNode(NodeRef nodeRef); 69 70 75 public void startReference(NodeRef nodeRef, QName childName); 76 77 82 public void endReference(NodeRef nodeRef); 83 84 89 public void startAspects(NodeRef nodeRef); 90 91 97 public void startAspect(NodeRef nodeRef, QName aspect); 98 99 105 public void endAspect(NodeRef nodeRef, QName aspect); 106 107 112 public void endAspects(NodeRef nodeRef); 113 114 119 public void startACL(NodeRef nodeRef); 120 121 127 public void permission(NodeRef nodeRef, AccessPermission permission); 128 129 134 public void endACL(NodeRef nodeRef); 135 136 141 public void startProperties(NodeRef nodeRef); 142 143 149 public void startProperty(NodeRef nodeRef, QName property); 150 151 157 public void endProperty(NodeRef nodeRef, QName property); 158 159 164 public void endProperties(NodeRef nodeRef); 165 166 173 public void value(NodeRef nodeRef, QName property, Object value); 174 175 182 public void value(NodeRef nodeRef, QName property, Collection values); 183 184 192 public void content(NodeRef nodeRef, QName property, InputStream content, ContentData contentData); 193 194 199 public void startAssocs(NodeRef nodeRef); 200 201 207 public void startAssoc(NodeRef nodeRef, QName assoc); 208 209 215 public void endAssoc(NodeRef nodeRef, QName assoc); 216 217 222 public void endAssocs(NodeRef nodeRef); 223 224 229 public void warning(String warning); 230 231 234 public void end(); 235 236 } 237 | Popular Tags |