Skip to main content
summaryrefslogblamecommitdiffstats
blob: 8c5160fb2e4e94ce875641f3011dd4f48e8c17a4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                 
                                                                       









                                                                      
                                                                                  




                                                                  


                                                                                       
 
                                                                                 




                                                                                         

                                                                     

                                                


                                             
/*******************************************************************************
 * 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 org.eclipse.osee.framework.messaging.Message;
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;

}

Back to the top