<commit_before>/*
 * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2016, Gluu
 */
package org.gluu.oxtrust.util;

import java.io.File;

/**
 * Action class for updating and adding the SAML IDP to Asimba.
 * 
 * @author <NAME>
 */
public class ProductInstallationChecker {
    
    public static final String GLUU_CE_PATH = "/install/community-edition-setup";
    
    public static final String OXASIMBA_PATH = "/opt/web/jetty/asimba/webapps/asimba.war";
    public static final String OXAUTH_PATH = "/opt/web/jetty/oxauth/webapps/oxauth.war";
    public static final String OXTRUST_PATH = "/opt/web/identity/webapps/identity.war";
    public static final String SHIBBOLETH_IDP2_PATH = "/opt/idp/war/idp.war";
    public static final String SHIBBOLETH_IDP3_PATH = "/opt/web/jetty/idp/webapps/idp.war";
    public static final String CAS_PATH = "/opt/web/jetty/cas/webapps/cas.war";
    
    public static boolean isGluuCE() {
        return new File(GLUU_CE_PATH).exists();
    }
    
    public static boolean isOxAsimbaInstalled() {
        return new File(OXASIMBA_PATH).exists();
    }
    
    public static boolean isOxAuthInstalled() {
        return new File(OXAUTH_PATH).exists();
    }
    
    public static boolean isOxTrustInstalled() {
        return new File(OXASIMBA_PATH).exists();
    }
    
    public static boolean isShibbolethIDP2Installed() {
        return new File(SHIBBOLETH_IDP2_PATH).exists();
    }
    
    public static boolean isShibbolethIDP3Installed() {<commit_msg>SAML submenu is hidden #391 - other products<commit_after>/*
 * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2016, Gluu
 */
package org.gluu.oxtrust.util;

import java.io.File;

/**
 * Action class for updating and adding the SAML IDP to Asimba.
 * 
 * @author <NAME>
 */
public class ProductInstallationChecker {
    
    public static final String GLUU_CE_PATH = "/install/community-edition-setup";
    
    public static final String OXASIMBA_PATH = "/opt/web/jetty/asimba/webapps/asimba.war";
    public static final String OXAUTH_PATH = "/opt/web/jetty/oxauth/webapps/oxauth.war";
    public static final String OXTRUST_PATH = "/opt/web/jetty/identity/webapps/identity.war";
    public static final String SHIBBOLETH_IDP2_PATH = "/opt/idp/war/idp.war";
    public static final String SHIBBOLETH_IDP3_PATH = "/opt/web/jetty/idp/webapps/idp.war";
    public static final String CAS_PATH = "/opt/web/jetty/cas/webapps/cas.war";
    
    public static boolean isGluuCE() {
        return new File(GLUU_CE_PATH).exists();
    }
    
    public static boolean isOxAsimbaInstalled() {
        return new File(OXASIMBA_PATH).exists();
    }
    
    public static boolean isOxAuthInstalled() {
        return new File(OXAUTH_PATH).exists();
    }
    
    public static boolean isOxTrustInstalled() {
        return new File(OXASIMBA_PATH).exists();
    }
    
    public static boolean isShibbolethIDP2Installed() {
        return new File(SHIBBOLETH_IDP2_PATH).exists();
    }
    
    public static boolean isShibbolethIDP3Installed() {
{'fraction_non_alphanumeric': 0.1054773082942097, 'fraction_numerical': 0.009076682316118936, 'mean_word_length': 3.216358839050132, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3874807', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1051, 'n_words': 244}