]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/ServerEx.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / ServerEx.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
3  * All rights reserved. This program and the accompanying materials\r
4  * are made available under the terms of the Eclipse Public License v1.0\r
5  * which accompanies this distribution, and is available at\r
6  * http://www.eclipse.org/legal/epl-v10.html\r
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.db;\r
12 \r
13 import java.util.Properties;\r
14 \r
15 import org.simantics.db.exception.DatabaseException;\r
16 \r
17 /**\r
18  * Extended Server Interface\r
19  *\r
20  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
21  */\r
22 public interface ServerEx extends ServerI {\r
23 \r
24         /**\r
25          * Create session with user given properties.\r
26          * Properties:\r
27          *   o user           - username\r
28          *   o password       - password\r
29          *\r
30          * @param info\r
31          * @return session\r
32          * @throws DatabaseException\r
33          */\r
34         public Session createSession(Properties info)\r
35         throws DatabaseException;\r
36 \r
37         /**\r
38          * Create session with user given properties.\r
39          * Properties:\r
40          *   o user           - username\r
41          *   o password       - password\r
42          *\r
43          * @param info\r
44          * @return service locator\r
45          * @throws DatabaseException\r
46          */\r
47         public ServiceLocator getServiceLocator(Properties info) throws DatabaseException;\r
48 }\r