palio.admin
Class CrossInstanceSession

java.lang.Object
  extended by palio.admin.CrossInstanceSession
All Implemented Interfaces:
Constants

public class CrossInstanceSession
extends java.lang.Object
implements Constants

Assumptions: Login to instance means assigning exact role (id=1) to exact region (name=instance). Login to server means assigning exact role (id=2) to exact region (name=_Admin). Name _Admin is reserved as it's impossible to log to instance of that name (_Admin is reserved name of administration panel) Role (id=1) has one fixed priv(id=1) added at the moment of creation administration panel. Role (id=2) has one fixed priv(id=2) added at the moment of creation administration panel.


Field Summary
 
Fields inherited from interface palio.Constants
DECIMAL_ZERO, INTEGER_ONE, LONG_MINUS_ONE, LONG_ONE, LONG_THREE, LONG_TWO, LONG_ZERO, STRING_EMPTY
 
Constructor Summary
CrossInstanceSession()
           
 
Method Summary
static boolean isUserLoggedToInstance(java.lang.String instance)
           
static boolean isUserLoggedToServer()
           
static void logout()
           
static boolean logToInstance(java.lang.String instance, java.lang.String user, java.lang.String password)
           
static boolean logToServer(java.lang.String user, java.lang.String password)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrossInstanceSession

public CrossInstanceSession()
Method Detail

isUserLoggedToServer

public static boolean isUserLoggedToServer()
                                    throws palio.PalioException
Throws:
palio.PalioException

isUserLoggedToInstance

public static boolean isUserLoggedToInstance(java.lang.String instance)
                                      throws palio.PalioException
Throws:
palio.PalioException

logToInstance

public static boolean logToInstance(java.lang.String instance,
                                    java.lang.String user,
                                    java.lang.String password)
                             throws palio.PalioException
Throws:
palio.PalioException

logToServer

public static boolean logToServer(java.lang.String user,
                                  java.lang.String password)
                           throws palio.PalioException
Throws:
palio.PalioException

logout

public static void logout()
                   throws palio.PalioException
Throws:
palio.PalioException