Example usage for com.liferay.portal.kernel.settings TypedSettings TypedSettings

List of usage examples for com.liferay.portal.kernel.settings TypedSettings TypedSettings

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.settings TypedSettings TypedSettings.

Prototype

public TypedSettings(Settings settings) 

Source Link

Usage

From source file:blade.document.action.displaycontext.BladeActionDisplayContext.java

License:Apache License

/**
 * Read settings from page Documents And Media portlet "Show Actions" portlet configuration.<br/>
 * But for Documents And Media admin portlet, it will always be true.
 *//*ww w .j a v a2s  .c  o  m*/
private boolean _showAction() throws SettingsException {
    PortletDisplay portletDisplay = _themeDisplay.getPortletDisplay();

    String portletName = portletDisplay.getPortletName();

    if (portletName.equals(PortletKeys.DOCUMENT_LIBRARY_ADMIN)) {
        return true;
    }

    Settings settings = SettingsFactoryUtil
            .getSettings(new PortletInstanceSettingsLocator(_themeDisplay.getLayout(), portletDisplay.getId()));

    TypedSettings typedSettings = new TypedSettings(settings);

    return typedSettings.getBooleanValue("showActions");
}

From source file:com.liferay.blogs.settings.BlogsGroupServiceSettings.java

License:Open Source License

public BlogsGroupServiceSettings(Settings settings) {
    _typedSettings = new TypedSettings(settings);
}

From source file:com.liferay.document.library.web.internal.settings.DLPortletInstanceSettings.java

License:Open Source License

public DLPortletInstanceSettings(Settings settings) {
    _typedSettings = new TypedSettings(settings);
}