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

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

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.Company updateLogo(long companyId, java.io.InputStream is)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Update the company's logo.

Usage

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

License:Open Source License

@Override
public Company updateLogo(long companyId, byte[] bytes) throws PortalException {

    _log.info("Updating company logo for company with id: " + companyId);

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

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

    _log.info("    ... updating logo ...");

    return CompanyLocalServiceUtil.updateLogo(companyId, bytes);

}