Example usage for com.liferay.portal.kernel.model GroupConstants FORMS

List of usage examples for com.liferay.portal.kernel.model GroupConstants FORMS

Introduction

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

Prototype

String FORMS

To view the source code for com.liferay.portal.kernel.model GroupConstants FORMS.

Click Source Link

Usage

From source file:com.liferay.dynamic.data.lists.internal.instance.lifecycle.AddDefaultSharedFormLayoutPortalInstanceLifecycleListener.java

License:Open Source License

protected Group addFormsGroup(long companyId) throws PortalException {
    long defaultUserId = _userLocalService.getDefaultUserId(companyId);

    Map<Locale, String> nameMap = new HashMap<>();

    nameMap.put(LocaleUtil.getDefault(), GroupConstants.FORMS);

    return _groupLocalService.addGroup(defaultUserId, GroupConstants.DEFAULT_PARENT_GROUP_ID, null, 0,
            GroupConstants.DEFAULT_LIVE_GROUP_ID, nameMap, null, GroupConstants.TYPE_SITE_PRIVATE, true,
            GroupConstants.DEFAULT_MEMBERSHIP_RESTRICTION, GroupConstants.FORMS_FRIENDLY_URL, false, false,
            true, null);/*from   ww w .  j a  v a 2 s. c om*/
}