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

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

Introduction

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

Prototype

int TYPE_SITE_PRIVATE

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

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);/*  www  .  java2s  .  com*/
}

From source file:com.liferay.tool.datamanipulator.handler.portal.SiteHandler.java

License:Open Source License

private List<KeyValuePair> _getSiteTypes() throws SystemException {
    List<KeyValuePair> siteTypes = new ArrayList<KeyValuePair>();

    siteTypes.add(new KeyValuePair(GroupConstants.TYPE_SITE_OPEN_LABEL,
            String.valueOf(GroupConstants.TYPE_SITE_OPEN)));

    siteTypes.add(new KeyValuePair(GroupConstants.TYPE_SITE_PRIVATE_LABEL,
            String.valueOf(GroupConstants.TYPE_SITE_PRIVATE)));

    siteTypes.add(new KeyValuePair(GroupConstants.TYPE_SITE_RESTRICTED_LABEL,
            String.valueOf(GroupConstants.TYPE_SITE_RESTRICTED)));

    return siteTypes;
}