9293949596979899100101102
public static Database getInstance() { return database; } public void setConfig(Configuration config) throws dbXMLException { magicUser = new User(); userStack = new UserStack(); try { userStack.pushCurrentUser(magicUser);
6061626364656667686970
else throw new SecurityException(FaultCodes.SEC_INVALID_ACCESS, "Can't overwrite User Stack"); } public String getCurrentUserID() { User user = userStack.getCurrentUser(); if ( user != null ) return user.getId(); else return null; }