Example usage for com.liferay.portal.kernel.service CompanyLocalServiceUtil updateCompany

List of usage examples for com.liferay.portal.kernel.service CompanyLocalServiceUtil updateCompany

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.Company updateCompany(long companyId, String virtualHostname,
        String mx, int maxUsers, boolean active) throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Updates the company.

Usage

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

License:Open Source License

@Override
public Company updateVirtualInstance(long companyId, String virtualHostname, String mx, int maxUsers,
        boolean active) throws PortalException {

    _log.info("Updating instance ...");

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

    PortalPermissionUtil.check(getPermissionChecker(), AngularActionKeys.UPDATE_VIRTUAL_INSTANCE);

    _log.debug(" .... updating company ...");

    return CompanyLocalServiceUtil.updateCompany(companyId, virtualHostname, mx, maxUsers, active);
}