palio.admin
Class CrossInstanceSession
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrossInstanceSession
public CrossInstanceSession()
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