*
* @author jimp
*
- * (it's VORBA, not CORBA!)
+ * @note (it's VORBA, not CORBA!)
+ * @history added additional sessionName argument for openAsNewSessionIClient method (v0.2)
*/
public interface IClientFactory {
/**
* Create a new session and import an existing vamsas document into it.
- *
+ * Session name will inherit from vamsasDocument path.
* @param applicationHandle
* @param vamsasDocument
* @return
File vamsasDocument) throws InvalidSessionDocumentException;
/**
+ * Create a new session and import an existing vamsas document into it.
+ *
+ * @param applicationHandle
+ * @param vamsasDocument
+ * @param sessionName - preferred session name (may be null)
+ * @return
+ */
+ IClient openAsNewSessionIClient(ClientHandle applicationHandle,
+ File vamsasDocument, String sessionName) throws InvalidSessionDocumentException;
+
+ /**
* Create a new session as a particular user and import an existing vamsas
* document into it.
*
*/
IClient openAsNewSessionIClient(ClientHandle applicationHandle,
UserHandle userId, File vamsasDocument)
- throws InvalidSessionDocumentException;
-
+ throws InvalidSessionDocumentException;
+ /**
+ * Create a new session as a particular user and import an existing vamsas
+ * document into it.
+ *
+ * @param applicationHandle
+ * @param userId
+ * @param vamsasDocument
+ * @param sessionName - preferred session name (may be null)
+ * @return
+ */
+ IClient openAsNewSessionIClient(ClientHandle applicationHandle,
+ UserHandle userId, File vamsasDocument, String sessionName)
+ throws InvalidSessionDocumentException;
/**
* enumerate the active sessions this IClientFactory instance knows about. Can
* be used by caller to pick a session on catching a