KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > jcr > storage > Container


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.services.jcr.storage;
7
8 import java.util.List JavaDoc;
9 import javax.jcr.RepositoryException;
10 import javax.jcr.ItemExistsException;
11 import javax.jcr.Node;
12 import org.exoplatform.services.jcr.core.NodeData;
13
14
15 /**
16  * Created by The eXo Platform SARL .
17  *
18  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
19  * @version $Id: Container.java,v 1.10 2004/11/02 18:29:51 geaz Exp $
20  */

21
22 public interface Container {
23
24   public static final String JavaDoc DEFAULT_WORKSPACE = "dafault_workspace";
25
26   public NodeData getRootNode() throws RepositoryException;
27
28   public List JavaDoc getChildren(String JavaDoc absPath) throws RepositoryException;
29
30   public NodeData getNodeByPath(String JavaDoc absPath) throws RepositoryException;
31
32   public void add(Node node) throws ItemExistsException, RepositoryException;
33
34   public void update(Node node) throws RepositoryException;
35
36   public void delete(String JavaDoc absPath) throws RepositoryException;
37
38 }
39
Popular Tags