Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/IUserSession.java')
-rw-r--r--org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/IUserSession.java53
1 files changed, 53 insertions, 0 deletions
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/IUserSession.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/IUserSession.java
new file mode 100644
index 000000000..7919f1ab3
--- /dev/null
+++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/IUserSession.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ote.core;
+
+import java.util.UUID;
+
+import org.eclipse.osee.ote.core.framework.prompt.IPassFailPromptResponse;
+import org.eclipse.osee.ote.core.framework.prompt.IResumeResponse;
+import org.eclipse.osee.ote.core.framework.prompt.IUserInputPromptResponse;
+import org.eclipse.osee.ote.core.framework.prompt.IYesNoPromptResponse;
+
+public interface IUserSession {
+
+ public OSEEPerson1_4 getUser() throws Exception;
+
+ public String getAddress() throws Exception;
+
+ /**
+ * returns the contents of the requested file on the client session
+ *
+ * @return the byte contents of the requested file or null if it does not exist
+ */
+ public byte[] getFile(String workspacePath) throws Exception;
+
+ public long getFileDate(String workspacePath) throws Exception;
+
+ public void initiateInformationalPrompt(String message) throws Exception;
+
+ public void initiatePassFailPrompt(IPassFailPromptResponse prompt) throws Exception;
+
+ public void initiateYesNoPrompt(IYesNoPromptResponse prompt) throws Exception;
+
+ public void initiateUserInputPrompt(IUserInputPromptResponse prompt) throws Exception;
+
+ public void initiateResumePrompt(IResumeResponse prompt) throws Exception;
+
+// public void sendMessageToClient(Message message) throws Exception;
+
+ public void cancelPrompts() throws Exception;
+
+ public boolean isAlive() throws Exception;
+
+ public UUID getUserId() throws Exception;
+
+}

Back to the top