Example usage for com.liferay.portal.kernel.model LayoutSet getGroup

List of usage examples for com.liferay.portal.kernel.model LayoutSet getGroup

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.model LayoutSet getGroup.

Prototype

public Group getGroup() throws com.liferay.portal.kernel.exception.PortalException;

Source Link

Document

Returns the layout set's group.

Usage

From source file:com.liferay.layout.admin.web.internal.servlet.taglib.ui.LayoutSetAdvancedFormNavigatorEntry.java

License:Open Source License

@Override
public boolean isVisible(User user, LayoutSet layoutSet) {
    try {//  w  w  w. j  a  v a2s  . c o m
        Group group = layoutSet.getGroup();

        if (group.isGuest()) {
            return false;
        }
    } catch (PortalException pe) {
        _log.error(pe, pe);
    }

    return true;
}