KickJava   Java API By Example, From Geeks To Geeks.

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


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
9 import java.util.Calendar JavaDoc;
10 import java.util.Set JavaDoc;
11
12 import javax.jcr.PathNotFoundException;
13 import javax.jcr.ItemExistsException;
14 import org.exoplatform.services.jcr.core.NodeData;
15 import org.exoplatform.services.jcr.core.ReferenceableNodeLocation;
16
17 /**
18  * Created by The eXo Platform SARL .
19  *
20  * @author <a HREF="mailto:geaz@users.sourceforge.net">Gennady Azarenkov</a>
21  * @version $Id: RepositoryManager.java,v 1.5 2004/11/02 18:29:51 geaz Exp $
22  */

23
24 public interface RepositoryManager {
25
26   Calendar JavaDoc getCurrentTime();
27
28   String JavaDoc generateUUID(NodeData context);
29
30   ReferenceableNodeLocation getLocationByUUID(String JavaDoc workspaceContainerName, String JavaDoc UUID) throws PathNotFoundException;
31
32   ReferenceableNodeLocation getLocationByPath(String JavaDoc workspaceContainerName, String JavaDoc path) throws PathNotFoundException;
33
34   void addLocation(String JavaDoc workspaceContainerName, String JavaDoc UUID, String JavaDoc path, boolean isNew) throws PathNotFoundException, ItemExistsException;
35
36   void deleteLocationByPath(String JavaDoc workspaceContainerName, String JavaDoc path);
37
38   void deleteLocationByUUID(String JavaDoc workspaceContainerName, String JavaDoc UUID);
39
40   void addWorkspaceContainer(String JavaDoc workspaceContainerName);
41 }
42
Popular Tags