blob: 7919f1ab375323607319f48ca30c627984dfd22e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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;
}
|