1 23 24 package org.apache.slide.common; 25 26 import java.io.IOException ; 27 import java.io.Reader ; 28 import java.io.Writer ; 29 30 import javax.transaction.TransactionManager ; 31 import javax.transaction.UserTransaction ; 32 33 import org.apache.slide.content.Content; 34 import org.apache.slide.lock.Lock; 35 import org.apache.slide.macro.Macro; 36 import org.apache.slide.search.Search; 37 import org.apache.slide.security.Security; 38 import org.apache.slide.structure.Structure; 39 import org.apache.slide.util.conf.Configuration; 40 import org.apache.slide.util.conf.ConfigurationException; 41 import org.apache.slide.util.logger.Logger; 42 import org.xml.sax.SAXException ; 43 44 63 public interface NamespaceAccessToken extends UserTransaction { 64 65 66 68 69 74 NamespaceConfig getNamespaceConfig(); 75 76 77 87 void importData(SlideToken token, 88 Configuration objectNodeConfiguration) 89 throws ConfigurationException, UnknownObjectClassException, 90 ServiceAccessException; 91 92 93 103 void importData(SlideToken token, Reader reader) 104 throws ConfigurationException, UnknownObjectClassException, 105 ServiceAccessException, SAXException , IOException ; 106 107 108 114 void exportData(SlideToken token, Writer writer) 115 throws SlideException; 116 117 118 125 void exportData(SlideToken token, Writer writer, String startNode) 126 throws SlideException; 127 128 129 134 Structure getStructureHelper(); 135 136 137 142 Content getContentHelper(); 143 144 145 150 Lock getLockHelper(); 151 152 153 158 Search getSearchHelper(); 159 160 161 166 Security getSecurityHelper(); 167 168 169 174 Macro getMacroHelper(); 175 176 177 180 void disconnect(); 181 182 183 188 String getName(); 189 190 197 public Uri getUri(SlideToken token, String uri); 198 199 200 205 Logger getLogger(); 206 207 public TransactionManager getTransactionManager(); 208 209 } 210 | Popular Tags |