1 23 24 package org.apache.slide.content; 25 26 import java.util.Hashtable ; 27 import org.apache.slide.common.NamespaceAccessToken; 28 import org.apache.slide.common.SlideToken; 29 import org.apache.slide.common.ServiceAccessException; 30 import org.apache.slide.lock.ObjectLockedException; 31 import org.apache.slide.security.AccessDeniedException; 32 import org.apache.slide.structure.LinkedObjectNotFoundException; 33 import org.apache.slide.structure.ObjectNotFoundException; 34 35 87 public interface ContentInterceptor { 88 89 90 92 93 110 public void preStoreContent 111 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 112 NodeRevisionDescriptor revisionDescriptor, 113 NodeRevisionContent revisionContent) 114 throws AccessDeniedException, ObjectNotFoundException, 115 LinkedObjectNotFoundException, ObjectLockedException, 116 ServiceAccessException; 117 118 119 137 public void postStoreContent 138 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 139 NodeRevisionDescriptor revisionDescriptor, 140 NodeRevisionContent revisionContent) 141 throws AccessDeniedException, ObjectNotFoundException, 142 LinkedObjectNotFoundException, ObjectLockedException, 143 ServiceAccessException; 144 145 146 169 public void preRetrieveContent 170 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 171 NodeRevisionNumber revisionNumber, 172 NodeRevisionDescriptor revisionDescriptor) 173 throws AccessDeniedException, ObjectNotFoundException, 174 LinkedObjectNotFoundException, ObjectLockedException, 175 ServiceAccessException; 176 177 178 201 public void postRetrieveContent 202 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 203 NodeRevisionDescriptor revisionDescriptor, 204 NodeRevisionContent revisionContent) 205 throws AccessDeniedException, ObjectNotFoundException, 206 LinkedObjectNotFoundException, ObjectLockedException, 207 ServiceAccessException; 208 209 210 230 public void preRemoveContent 231 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 232 NodeRevisionDescriptor revisionDescriptor) 233 throws AccessDeniedException, ObjectNotFoundException, 234 LinkedObjectNotFoundException, ObjectLockedException, 235 ServiceAccessException; 236 237 238 258 public void postRemoveContent 259 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 260 NodeRevisionDescriptor revisionDescriptor) 261 throws AccessDeniedException, ObjectNotFoundException, 262 LinkedObjectNotFoundException, ObjectLockedException, 263 ServiceAccessException; 264 265 266 273 public void setNamespace 274 (NamespaceAccessToken nat); 275 276 277 286 public void setParameters 287 (Hashtable parameters); 288 289 290 } 291 292 | Popular Tags |