public SessionSettingResp properties()

in manager/manager-server/src/main/java/org/apache/doris/stack/service/PropertyService.java [50:71]


    public SessionSettingResp properties() throws Exception {
        SessionSettingResp resp = new SessionSettingResp();

        // authentication type
        SettingEntity authType = settingComponent.readSetting(ConfigConstant.AUTH_TYPE_KEY);
        if (authType != null) {
            resp.setAuthType(authType.getValue());
        }

        // What is the current step to system initialization
        SettingEntity initStep = settingComponent.readSetting(ConfigConstant.INIT_STEP_KEY);
        if (initStep != null) {
            resp.setInitStep(Integer.parseInt(initStep.getValue()));
        }
        if (authType != null && initStep != null) {
            if ((authType.getValue().equals("studio") && initStep.getValue().equals("2")) || (
                    authType.getValue().equals("ldap") && initStep.getValue().equals("3"))) {
                resp.setCompleted(1);
            }
        }
        return resp;
    }