01: /**
02: * LibreSource
03: * Copyright (C) 2004-2008 Artenum SARL / INRIA
04: * http://www.libresource.org - contact@artenum.com
05: *
06: * This file is part of the LibreSource software,
07: * which can be used and distributed under license conditions.
08: * The license conditions are provided in the LICENSE.TXT file
09: * at the root path of the packaging that enclose this file.
10: * More information can be found at
11: * - http://dev.libresource.org/home/license
12: *
13: * Initial authors :
14: *
15: * Guillaume Bort / INRIA
16: * Francois Charoy / Universite Nancy 2
17: * Julien Forest / Artenum
18: * Claude Godart / Universite Henry Poincare
19: * Florent Jouille / INRIA
20: * Sebastien Jourdain / INRIA / Artenum
21: * Yves Lerumeur / Artenum
22: * Pascal Molli / Universite Henry Poincare
23: * Gerald Oster / INRIA
24: * Mariarosa Penzi / Artenum
25: * Gerard Sookahet / Artenum
26: * Raphael Tani / INRIA
27: *
28: * Contributors :
29: *
30: * Stephane Bagnier / Artenum
31: * Amadou Dia / Artenum-IUP Blois
32: * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
33: */package org.libresource;
34:
35: import org.libresource.search.LibresourceIndexableContent;
36:
37: import org.libresource.xml.LibresourceExportHandler;
38: import org.libresource.xml.LibresourceImportHandler;
39:
40: import java.net.URI;
41:
42: import java.rmi.RemoteException;
43:
44: import javax.ejb.EJBObject;
45:
46: /**
47: * LibreSource
48: *
49: * @author <a href="mailto:bort@loria.fr">Guillaume Bort</a> - <a
50: * href="http://www.inria.fr">INRIA Lorraine</a>
51: */
52: public interface LibresourceService extends EJBObject {
53: public String getLibresourceServiceName() throws RemoteException;
54:
55: public String[] getLibresourceServiceDepends()
56: throws RemoteException;
57:
58: public boolean canMapResourceForSecurity(URI fromResource,
59: URI toResource) throws LibresourceException,
60: RemoteException;
61:
62: public LibresourceIndexableContent getIndexableContent(
63: LibresourceResourceIdentifier resourceIdentifier)
64: throws LibresourceException, RemoteException;
65:
66: public LibresourceExportHandler getXmlExportHandlerForResource(
67: URI uri) throws LibresourceException, RemoteException;
68:
69: public LibresourceImportHandler getXmlImportHandler(String type)
70: throws LibresourceException, RemoteException;
71:
72: public String getShortResourceName(
73: LibresourceResourceIdentifier resourceIdentifier)
74: throws LibresourceException, RemoteException;
75:
76: public String[] listAvailablesPermissions(
77: LibresourceResourceIdentifier resourceIdentifier)
78: throws LibresourceException, RemoteException;
79:
80: public String[] listAvailablesEvents(
81: LibresourceResourceIdentifier resourceIdentifier)
82: throws LibresourceException, RemoteException;
83: }
|