Example usage for com.liferay.portal.kernel.service GroupLocalServiceUtil getUserPersonalSiteGroup

List of usage examples for com.liferay.portal.kernel.service GroupLocalServiceUtil getUserPersonalSiteGroup

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service GroupLocalServiceUtil getUserPersonalSiteGroup.

Prototype

public static com.liferay.portal.kernel.model.Group getUserPersonalSiteGroup(long companyId)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Returns the default user's personal site group.

Usage

From source file:com.liferay.roles.admin.internal.exportimport.data.handler.test.RoleStagedModelDataHandlerTest.java

License:Open Source License

@Override
protected void initExport() throws Exception {
    super.initExport();

    Group companyGroup = GroupLocalServiceUtil.getCompanyGroup(portletDataContext.getCompanyId());

    rootElement.addAttribute("company-group-id", String.valueOf(companyGroup.getGroupId()));

    Group userPersonalSiteGroup = GroupLocalServiceUtil
            .getUserPersonalSiteGroup(portletDataContext.getCompanyId());

    rootElement.addAttribute("user-personal-site-group-id", String.valueOf(userPersonalSiteGroup.getGroupId()));
}