1 23 24 package org.apache.slide.content; 25 26 import org.apache.slide.common.ServiceAccessException; 27 import org.apache.slide.common.SlideToken; 28 import org.apache.slide.lock.ObjectLockedException; 29 import org.apache.slide.security.AccessDeniedException; 30 import org.apache.slide.structure.LinkedObjectNotFoundException; 31 import org.apache.slide.structure.ObjectNotFoundException; 32 import org.apache.slide.event.VetoException; 33 34 39 public interface Content { 40 41 42 44 45 51 NodeRevisionDescriptors retrieve(SlideToken token, String strUri) 52 throws ObjectNotFoundException, AccessDeniedException, 53 LinkedObjectNotFoundException, ServiceAccessException, 54 ObjectLockedException, VetoException; 55 56 57 63 NodeRevisionDescriptor retrieve 64 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 65 NodeRevisionNumber revisionNumber) 66 throws ObjectNotFoundException, AccessDeniedException, 67 LinkedObjectNotFoundException, ServiceAccessException, 68 RevisionDescriptorNotFoundException, ObjectLockedException, VetoException; 69 70 71 77 NodeRevisionDescriptor retrieve 78 (SlideToken token, NodeRevisionDescriptors revisionDescriptors) 79 throws ObjectNotFoundException, AccessDeniedException, 80 LinkedObjectNotFoundException, ServiceAccessException, 81 RevisionDescriptorNotFoundException, ObjectLockedException, VetoException; 82 83 84 91 NodeRevisionDescriptor retrieve 92 (SlideToken token, NodeRevisionDescriptors revisionDescriptors, 93 String branch) 94 throws ObjectNotFoundException, AccessDeniedException, 95 LinkedObjectNotFoundException, ServiceAccessException, 96 RevisionDescriptorNotFoundException, ObjectLockedException, 97 BranchNotFoundException, NodeNotVersionedException, VetoException; 98 99 100 106 NodeRevisionContent retrieve(SlideToken token, 107 NodeRevisionDescriptors revisionDescriptors, 108 NodeRevisionDescriptor revisionDescriptor) 109 throws ObjectNotFoundException, AccessDeniedException, 110 RevisionNotFoundException, LinkedObjectNotFoundException, 111 ServiceAccessException, RevisionContentNotFoundException, 112 ObjectLockedException, VetoException; 113 114 115 121 NodeRevisionContent retrieve(SlideToken token, String strUri, 122 NodeRevisionDescriptor revisionDescriptor) 123 throws ObjectNotFoundException, AccessDeniedException, 124 RevisionNotFoundException, LinkedObjectNotFoundException, 125 ServiceAccessException, RevisionContentNotFoundException, 126 ObjectLockedException, VetoException; 127 128 129 135 public void create(SlideToken token, String strUri, 136 boolean isVersioned) 137 throws ObjectNotFoundException, AccessDeniedException, 138 LinkedObjectNotFoundException, ServiceAccessException, 139 ObjectLockedException, VetoException; 140 141 142 149 void create(SlideToken token, String strUri, 150 NodeRevisionDescriptor revisionDescriptor, 151 NodeRevisionContent revisionContent) 152 throws ObjectNotFoundException, AccessDeniedException, 153 RevisionAlreadyExistException, LinkedObjectNotFoundException, 154 ServiceAccessException, ObjectLockedException, VetoException; 155 156 157 165 void create(SlideToken token, String strUri, String branch, 166 NodeRevisionDescriptor newRevisionDescriptor, 167 NodeRevisionContent revisionContent) 168 throws ObjectNotFoundException, AccessDeniedException, 169 RevisionAlreadyExistException, LinkedObjectNotFoundException, 170 ServiceAccessException, RevisionDescriptorNotFoundException, 171 ObjectLockedException, NodeNotVersionedException, 172 BranchNotFoundException, VetoException; 173 174 175 186 NodeRevisionNumber fork(SlideToken token, String strUri, String branchName, 187 NodeRevisionDescriptor basedOnRevisionDescriptor) 188 throws ObjectNotFoundException, AccessDeniedException, 189 LinkedObjectNotFoundException, ServiceAccessException, 190 RevisionDescriptorNotFoundException, ObjectLockedException, 191 NodeNotVersionedException, RevisionAlreadyExistException, VetoException; 192 193 194 205 NodeRevisionNumber fork(SlideToken token, String strUri, String branchName, 206 NodeRevisionNumber basedOnRevisionNumber) 207 throws ObjectNotFoundException, AccessDeniedException, 208 LinkedObjectNotFoundException, ServiceAccessException, 209 RevisionDescriptorNotFoundException, ObjectLockedException, 210 NodeNotVersionedException, RevisionAlreadyExistException, VetoException; 211 212 213 222 void merge(SlideToken token, String strUri, 223 NodeRevisionDescriptor mainBranch, 224 NodeRevisionDescriptor branch, 225 NodeRevisionDescriptor newRevisionDescriptor, 226 NodeRevisionContent revisionContent) 227 throws ObjectNotFoundException, AccessDeniedException, 228 LinkedObjectNotFoundException, ServiceAccessException, 229 RevisionDescriptorNotFoundException, ObjectLockedException, 230 NodeNotVersionedException, BranchNotFoundException, 231 RevisionAlreadyExistException, VetoException; 232 233 234 243 void merge(SlideToken token, String strUri, 244 String mainBranch, String branch, 245 NodeRevisionDescriptor newRevisionDescriptor, 246 NodeRevisionContent revisionContent) 247 throws ObjectNotFoundException, AccessDeniedException, 248 LinkedObjectNotFoundException, ServiceAccessException, 249 RevisionDescriptorNotFoundException, ObjectLockedException, 250 NodeNotVersionedException, BranchNotFoundException, 251 RevisionAlreadyExistException, VetoException; 252 253 254 261 void store(SlideToken token, String strUri, 262 NodeRevisionDescriptor revisionDescriptor, 263 NodeRevisionContent revisionContent) 264 throws ObjectNotFoundException, AccessDeniedException, 265 LinkedObjectNotFoundException, ServiceAccessException, 266 RevisionDescriptorNotFoundException, ObjectLockedException, 267 RevisionNotFoundException, VetoException; 268 269 270 275 void remove(SlideToken token, 276 NodeRevisionDescriptors revisionDescriptors) 277 throws ObjectNotFoundException, AccessDeniedException, 278 LinkedObjectNotFoundException, ServiceAccessException, 279 RevisionDescriptorNotFoundException, ObjectLockedException, VetoException; 280 281 282 288 void remove(SlideToken token, String strUri, 289 NodeRevisionDescriptor revisionDescriptor) 290 throws ObjectNotFoundException, AccessDeniedException, 291 LinkedObjectNotFoundException, ServiceAccessException, 292 RevisionDescriptorNotFoundException, ObjectLockedException, VetoException; 293 294 295 301 void remove(SlideToken token, String strUri, 302 NodeRevisionNumber revisionNumber) 303 throws ObjectNotFoundException, AccessDeniedException, 304 LinkedObjectNotFoundException, ServiceAccessException, 305 RevisionDescriptorNotFoundException, ObjectLockedException, VetoException; 306 307 } 308 | Popular Tags |