Example usage for com.liferay.portal.kernel.service UserGroupLocalServiceUtil updateUserGroup

List of usage examples for com.liferay.portal.kernel.service UserGroupLocalServiceUtil updateUserGroup

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.UserGroup updateUserGroup(long companyId, long userGroupId,
        String name, String description, ServiceContext serviceContext)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Updates the user group.

Usage

From source file:eu.gerhards.liferay.services.angular.service.impl.AngularUserGroupServiceImpl.java

License:Open Source License

@Override
public com.liferay.portal.kernel.model.UserGroup updateUserGroup(long companyId, long userGroupId, String name,
        String description) throws PortalException {

    _log.info("Updating user group with id " + userGroupId);

    _log.debug("    ... security check ... ");

    this.crossCompanyCheck(companyId);

    this.checkPersonalPermission(AngularActionKeys.UPDATE_USER_GROUP);

    this.hasResourcePermission(userGroupId, ActionKeys.UPDATE);

    return UserGroupLocalServiceUtil.updateUserGroup(companyId, userGroupId, name, description,
            new ServiceContext());
}