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

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

Introduction

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

Prototype

public static void updateSecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword,
        boolean strangers, boolean strangersWithMx, boolean strangersVerify, boolean siteLogo) 

Source Link

Document

Updates the company's security properties.

Usage

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

License:Open Source License

@Override
public void updateCompanySecurity(long companyId, String authType, boolean autoLogin, boolean sendPassword,
        boolean strangers, boolean strangesWithMx, boolean strangersVerify, boolean siteLogo)
        throws PortalException {

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

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

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

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

    CompanyLocalServiceUtil.updateSecurity(companyId, authType, autoLogin, sendPassword, strangers,
            strangesWithMx, strangersVerify, siteLogo);
}