Example usage for com.liferay.portal.service.http ClassNameServiceHttp fetchByClassNameId

List of usage examples for com.liferay.portal.service.http ClassNameServiceHttp fetchByClassNameId

Introduction

In this page you can find the example usage for com.liferay.portal.service.http ClassNameServiceHttp fetchByClassNameId.

Prototype

public static com.liferay.portal.kernel.model.ClassName fetchByClassNameId(HttpPrincipal httpPrincipal,
            long classNameId) 

Source Link

Usage

From source file:com.liferay.exportimport.staging.StagingImpl.java

License:Open Source License

protected boolean isCompanyGroup(HttpPrincipal httpPrincipal, Group group) {
    ClassName className = ClassNameServiceHttp.fetchByClassNameId(httpPrincipal, group.getClassNameId());

    if (Objects.equals(className.getClassName(), Company.class.getName())) {
        return true;
    }//  w  ww . j a  v  a  2s.  c o  m

    return false;
}