Changeset 1327 for trunk


Ignore:
Timestamp:
04/26/19 13:13:30 (5 years ago)
Author:
bln4
Message:

Updated all calls to Boolean.get("expeditee.authentication") to point to AuthenticatorBrowser.isAuthenticationRequired so that they all pipe through exact same check. Also fixed up some old references to Boolean.get("auth") in the apollo sections that I missed.

Location:
trunk/src/org
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/apollo/ApolloSystem.java

    r1270 r1327  
    2424import org.apollo.widgets.FramePlayer;
    2525import org.expeditee.actions.Actions;
     26import org.expeditee.auth.AuthenticatorBrowser;
    2627import org.expeditee.core.BlockingRunnable;
    2728import org.expeditee.gio.EcosystemManager;
     
    261262                Browser.main(args);
    262263               
    263                 if (!Boolean.getBoolean("auth")) {
     264                if (!AuthenticatorBrowser.isAuthenticationRequired()) {
    264265                        // If not running with authentication/login, then proceed with initializing Apollo
    265266                        EcosystemManager.getMiscManager().runOnGIOThread(new BlockingRunnable() {
  • trunk/src/org/apollo/io/AudioPathManager.java

    r1303 r1327  
    4545        public static void changeParentAndSubFolders(String newFolder) {
    4646               
    47                 if (Boolean.getBoolean("auth") && System.getProperty("user.name").equals(AuthenticatorBrowser.USER_NOBODY)) {
     47                if (AuthenticatorBrowser.isAuthenticationRequired() && System.getProperty("user.name").equals(AuthenticatorBrowser.USER_NOBODY)) {
    4848                        System.err.println("**** AudioPathManager::changeParentAndSubFolder(): Nothing to do for user '" + AuthenticatorBrowser.USER_NOBODY + "'");
    4949                        return;
     
    5454                        String userName = UserSettings.UserName.get();
    5555                        //String resourcesPrivateIndividualPath = FrameIO.PARENT_FOLDER + "resources-" + userName + File.separator;
    56                         if (Boolean.getBoolean("auth")) {
     56                        if (AuthenticatorBrowser.isAuthenticationRequired()) {
    5757                                System.err.println("**** AudioPathManager::changeParentAndSubFolder(): Setting 'audio' folder to resources-" + userName);
    5858                        }
  • trunk/src/org/expeditee/gui/Browser.java

    r1303 r1327  
    163163         */
    164164        public static void main(String[] args) {
    165                 if (Boolean.getBoolean("expeditee.authentication")) {
     165                if (AuthenticatorBrowser.isAuthenticationRequired()) {
    166166                        String starting_user_name = System.getProperty("user.name");
    167167                        System.setProperty("startinguser.name", starting_user_name);
     
    201201       
    202202        public static void init() {
    203                 if (Boolean.getBoolean("expeditee.authentication")) {
     203                if (AuthenticatorBrowser.isAuthenticationRequired()) {
    204204                        try {
    205205                                _theBrowser = AuthenticatorBrowser.getInstance();
     
    272272                Frame userProfile = loadProfiles();
    273273
    274                 if (!Boolean.getBoolean("expeditee.authentication")) {
     274                if (!AuthenticatorBrowser.isAuthenticationRequired()) {
    275275                        String userName = UserSettings.ProfileName.get();
    276276                        FrameIO.setupPersonalResources(userName);
Note: See TracChangeset for help on using the changeset viewer.