Example usage for com.liferay.portal.kernel.util PortalUtil getCurrentAndAncestorSiteGroupIds

List of usage examples for com.liferay.portal.kernel.util PortalUtil getCurrentAndAncestorSiteGroupIds

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PortalUtil getCurrentAndAncestorSiteGroupIds.

Prototype

public static long[] getCurrentAndAncestorSiteGroupIds(long[] groupIds,
            boolean checkContentSharingWithChildrenEnabled) throws PortalException 

Source Link

Usage

From source file:com.liferay.asset.publisher.web.display.context.AssetPublisherDisplayContext.java

License:Open Source License

public long[] getReferencedModelsGroupIds() throws PortalException {

    // Referenced models are asset subtypes, tags or categories that
    // are used to filter assets and can belong to a different scope of
    // the asset they are associated to

    if (_referencedModelsGroupIds != null) {
        return _referencedModelsGroupIds;
    }/*from w  ww  .jav a2s  .  com*/

    _referencedModelsGroupIds = PortalUtil.getCurrentAndAncestorSiteGroupIds(getGroupIds(), true);

    return _referencedModelsGroupIds;
}