Example usage for com.liferay.portal.kernel.service LayoutLocalServiceUtil updateName

List of usage examples for com.liferay.portal.kernel.service LayoutLocalServiceUtil updateName

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.Layout updateName(long plid, String name, String languageId)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Updates the name of the layout matching the primary key.

Usage

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

License:Open Source License

@Override
public Layout updateName(long layoutId, String name, String languageId) throws PortalException {

    _log.info("Updating name of layout with id " + layoutId);

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

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

    // TODO: Check if plId = layoutID; @see LayoutLocalServiceUtil#updateName
    com.liferay.portal.kernel.model.Layout layout = LayoutLocalServiceUtil.updateName(layoutId, name,
            languageId);//from  ww  w  . jav  a  2s  . c o  m

    return layout;
}