--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007 VTT Technical Research Centre of Finland and others.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.db;\r
+\r
+import java.util.Properties;\r
+\r
+import org.simantics.db.exception.DatabaseException;\r
+\r
+/**\r
+ * Extended Server Interface\r
+ *\r
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
+ */\r
+public interface ServerEx extends ServerI {\r
+\r
+ /**\r
+ * Create session with user given properties.\r
+ * Properties:\r
+ * o user - username\r
+ * o password - password\r
+ *\r
+ * @param info\r
+ * @return session\r
+ * @throws DatabaseException\r
+ */\r
+ public Session createSession(Properties info)\r
+ throws DatabaseException;\r
+\r
+ /**\r
+ * Create session with user given properties.\r
+ * Properties:\r
+ * o user - username\r
+ * o password - password\r
+ *\r
+ * @param info\r
+ * @return service locator\r
+ * @throws DatabaseException\r
+ */\r
+ public ServiceLocator getServiceLocator(Properties info) throws DatabaseException;\r
+}\r