@Override public com.liferay.portal.kernel.model.Group updateGroup(long groupId, long parentGroupId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, int type, boolean manualMembership, int membershipRestriction, String friendlyURL, boolean inheritContent, boolean active, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.updateGroup(groupId, parentGroupId, nameMap, descriptionMap, type, manualMembership, membershipRestriction, friendlyURL, inheritContent, active, serviceContext); }
/** * Updates the group's type settings. * * @param groupId the primary key of the group * @param typeSettings the group's new type settings (optionally <code>null</code>) * @return the group * @throws PortalException if a portal exception occurred */ @Override public com.liferay.portal.kernel.model.Group updateGroup(long groupId, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.updateGroup(groupId, typeSettings); }
public static com.liferay.portal.kernel.model.Group updateGroup( long groupId, long parentGroupId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, int type, boolean manualMembership, int membershipRestriction, String friendlyURL, boolean inheritContent, boolean active, ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateGroup(groupId, parentGroupId, nameMap, descriptionMap, type, manualMembership, membershipRestriction, friendlyURL, inheritContent, active, serviceContext); }
ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.updateGroup(groupId, parentGroupId, name, description, type, manualMembership, membershipRestriction, friendlyURL, inheritContent, active, serviceContext);
/** * Updates the group's type settings. * * @param groupId the primary key of the group * @param typeSettings the group's new type settings (optionally <code>null</code>) * @return the group * @throws PortalException if a portal exception occurred */ public static com.liferay.portal.kernel.model.Group updateGroup( long groupId, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException { return getService().updateGroup(groupId, typeSettings); }
throws com.liferay.portal.kernel.exception.PortalException { return getService() .updateGroup(groupId, parentGroupId, name, description, type, manualMembership, membershipRestriction, friendlyURL, inheritContent, active, serviceContext);
private void _setGroupTypeSetting(long groupId, String key, String value) { Group group = _groupLocalService.fetchGroup(groupId); if (group == null) { return; } UnicodeProperties typeSettingsProperties = group.getTypeSettingsProperties(); if (Validator.isNotNull(value)) { typeSettingsProperties.setProperty(key, value); } else { typeSettingsProperties.remove(key); } group.setTypeSettingsProperties(typeSettingsProperties); group.setTypeSettings(typeSettingsProperties.toString()); _groupLocalService.updateGroup(group); }
oldScopeGroup.getGroupId()); _groupLocalService.updateGroup(scopeGroup); scopeGroup.getGroupId()); _groupLocalService.updateGroup(oldScopeGroup);