1 24 package javax.jcr; 25 26 import javax.jcr.access.AccessDeniedException; 27 import javax.jcr.lock.Lock; 28 29 36 public interface Item { 37 38 49 public String getPath(); 50 51 57 public StringIterator getPaths(); 58 59 71 public String getName(); 72 73 110 public Item getAncestor(int degree) throws ItemNotFoundException, AccessDeniedException, RepositoryException; 111 112 125 public Node getParent() throws ItemNotFoundException, AccessDeniedException, RepositoryException; 126 127 137 public NodeIterator getParents() throws ItemNotFoundException, AccessDeniedException, RepositoryException; 138 139 151 public Ticket getTicket(); 152 153 162 public void accept(ItemVisitor visitor) throws RepositoryException; 163 164 173 public boolean isNode(); 174 175 200 public boolean isGranted(long permissions) throws UnsupportedRepositoryOperationException, RepositoryException; 201 202 218 public int getDepth(); 219 220 282 public Lock lock(boolean recurse, boolean shared, int lockType) throws UnsupportedRepositoryOperationException, AccessDeniedException, RepositoryException; 283 284 300 public void unlock(Lock lock) throws UnsupportedRepositoryOperationException, AccessDeniedException; 301 302 314 public Lock[] getLocks() throws UnsupportedRepositoryOperationException; 315 316 322 public boolean hasLocks(); 323 324 338 public boolean isIdentical(Item otherItem); 339 } | Popular Tags |