Example usage for com.liferay.portal.util PropsValues DEFAULT_ADMIN_SCREEN_NAME

List of usage examples for com.liferay.portal.util PropsValues DEFAULT_ADMIN_SCREEN_NAME

Introduction

In this page you can find the example usage for com.liferay.portal.util PropsValues DEFAULT_ADMIN_SCREEN_NAME.

Prototype

String DEFAULT_ADMIN_SCREEN_NAME

To view the source code for com.liferay.portal.util PropsValues DEFAULT_ADMIN_SCREEN_NAME.

Click Source Link

Usage

From source file:edu.jhu.cvrg.liferay.authentication.GlobusNexusAuthenticator.java

License:Apache License

private boolean isDefaultAdmin(String screenName, String password) {

    logger.info("Defaults are " + PropsValues.DEFAULT_ADMIN_SCREEN_NAME + " and "
            + PropsValues.DEFAULT_ADMIN_PASSWORD);

    try {/*from   w ww. ja  v  a2s . com*/
        if (PropsValues.DEFAULT_ADMIN_SCREEN_NAME.equals(screenName)
                && PropsValues.DEFAULT_ADMIN_PASSWORD.equals(password)) {
            logger.info("Default Admin match found.");
            return true;
        } else {
            logger.info("Default Admin match not found.");
            return false;
        }
    } catch (Exception e) {
        logger.info("Admin User config not found.");
        return false;
    }
}