1 23 24 package org.apache.slide.structure; 25 26 import java.util.Enumeration ; 27 import java.util.List ; 28 import org.apache.slide.common.ServiceAccessException; 29 import org.apache.slide.common.SlideToken; 30 import org.apache.slide.lock.ObjectLockedException; 31 import org.apache.slide.security.AccessDeniedException; 32 import org.apache.slide.event.VetoException; 33 34 41 public interface Structure { 42 43 44 46 57 String generateUniqueUri(SlideToken token, String parentUri) throws ServiceAccessException; 58 59 74 Enumeration getChildren(SlideToken token, ObjectNode object) 75 throws ServiceAccessException, ObjectNotFoundException, 76 LinkedObjectNotFoundException, VetoException; 77 78 79 98 ObjectNode getParent(SlideToken token, ObjectNode object) 99 throws ServiceAccessException, ObjectNotFoundException, 100 LinkedObjectNotFoundException, AccessDeniedException, VetoException; 101 102 128 List getParents(SlideToken token, ObjectNode object, boolean pathOnly, boolean storeOnly, boolean includeSelf) 129 throws ServiceAccessException, ObjectNotFoundException, 130 LinkedObjectNotFoundException, AccessDeniedException, VetoException; 131 132 148 ObjectNode retrieve(SlideToken token, String strUri) 149 throws ServiceAccessException, ObjectNotFoundException, 150 LinkedObjectNotFoundException, AccessDeniedException, VetoException; 151 152 153 172 ObjectNode retrieve(SlideToken token, String strUri, 173 boolean translateLastUriElement) 174 throws ServiceAccessException, ObjectNotFoundException, 175 LinkedObjectNotFoundException, AccessDeniedException, VetoException; 176 177 178 197 void create(SlideToken token, ObjectNode object, String strUri) 198 throws ServiceAccessException, ObjectAlreadyExistsException, 199 ObjectNotFoundException, LinkedObjectNotFoundException, 200 AccessDeniedException, ObjectLockedException, VetoException; 201 202 203 223 void createLink(SlideToken token, LinkNode link, String linkUri, 224 ObjectNode linkedObject) 225 throws ServiceAccessException, ObjectAlreadyExistsException, 226 ObjectNotFoundException, LinkedObjectNotFoundException, 227 AccessDeniedException, ObjectLockedException, VetoException; 228 229 230 244 void store(SlideToken token, ObjectNode object) 245 throws ServiceAccessException, ObjectNotFoundException, 246 AccessDeniedException, LinkedObjectNotFoundException, VetoException; 247 248 249 265 void remove(SlideToken token, ObjectNode object) 266 throws ServiceAccessException, ObjectNotFoundException, 267 ObjectHasChildrenException, AccessDeniedException, 268 LinkedObjectNotFoundException, ObjectLockedException, VetoException; 269 270 271 286 void addBinding( SlideToken token, ObjectNode collectionNode, String segment, ObjectNode sourceNode ) 287 throws ServiceAccessException, ObjectNotFoundException, 288 AccessDeniedException, LinkedObjectNotFoundException, ObjectLockedException, CrossServerBindingException, VetoException; 289 290 305 void removeBinding( SlideToken token, ObjectNode collectionNode, String segment ) 306 throws ServiceAccessException, ObjectNotFoundException, 307 AccessDeniedException, LinkedObjectNotFoundException, ObjectLockedException, VetoException; 308 } 309 310 | Popular Tags |