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 48 public abstract class AbstractContentInterceptor 49 implements ContentInterceptor { 50 51 52 54 55 58 private NamespaceAccessToken nat; 59 60 61 64 private Hashtable parameters; 65 66 67 69 70 73 public AbstractContentInterceptor() { 74 75 } 76 77 78 80 81 84 public void preStoreContent 85 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 86 NodeRevisionDescriptor revisionDescriptor, 87 NodeRevisionContent revisionContent) 88 throws AccessDeniedException, ObjectNotFoundException, 89 LinkedObjectNotFoundException, ObjectLockedException, 90 ServiceAccessException { 91 92 } 93 94 95 98 public void postStoreContent 99 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 100 NodeRevisionDescriptor revisionDescriptor, 101 NodeRevisionContent revisionContent) 102 throws AccessDeniedException, ObjectNotFoundException, 103 LinkedObjectNotFoundException, ObjectLockedException, 104 ServiceAccessException { 105 106 } 107 108 109 112 public void preRetrieveContent 113 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 114 NodeRevisionNumber revisionNumber, 115 NodeRevisionDescriptor revisionDescriptor) 116 throws AccessDeniedException, ObjectNotFoundException, 117 LinkedObjectNotFoundException, ObjectLockedException, 118 ServiceAccessException { 119 120 } 121 122 123 126 public void postRetrieveContent 127 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 128 NodeRevisionDescriptor revisionDescriptor, 129 NodeRevisionContent revisionContent) 130 throws AccessDeniedException, ObjectNotFoundException, 131 LinkedObjectNotFoundException, ObjectLockedException, 132 ServiceAccessException { 133 134 } 135 136 137 140 public void preRemoveContent 141 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 142 NodeRevisionDescriptor revisionDescriptor) 143 throws AccessDeniedException, ObjectNotFoundException, 144 LinkedObjectNotFoundException, ObjectLockedException, 145 ServiceAccessException { 146 147 } 148 149 150 153 public void postRemoveContent 154 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 155 NodeRevisionDescriptor revisionDescriptor) 156 throws AccessDeniedException, ObjectNotFoundException, 157 LinkedObjectNotFoundException, ObjectLockedException, 158 ServiceAccessException { 159 160 } 161 162 163 166 public void setNamespace 167 (NamespaceAccessToken nat) { 168 169 this.nat = nat; 170 } 171 172 173 176 public void setParameters 177 (Hashtable parameters) { 178 179 this.parameters = parameters; 180 } 181 182 183 185 186 192 protected NamespaceAccessToken getNamespace() { 193 194 return nat; 195 } 196 197 198 205 protected String getParameter 206 (String name) { 207 208 return (String )parameters.get(name); 209 } 210 211 212 219 protected Hashtable getParameters() { 220 221 return parameters; 222 } 223 224 225 } 226 227 | Popular Tags |